Function at 0x140010773
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x328
mov rbx, r8
mov r15, rdx
mov rdi, rcx
lea rax, [rsp + 0x268]
mov qword [rax], r8
lea r14, [0x14000aee0]
mov qword [rax + 8], r14
lea rcx, str.failed_to_write_whole_buffer
lea rdx, [rsp + 0x130]
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], 2
mov qword [rdx], 0
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], 1
lea rsi, [rsp + 0x98]
mov rcx, rsi
call fcn.14003ff20
mov r13, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
lea rsi, [rsp + 0x130]
mov rcx, rsi
mov rdx, r13
mov r8, rbp
call fcn.1400f5a30
cmp dword [rsi], 2
jne 0x140010824
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x268], 2
jmp 0x140010850
lea r12, [rsp + 0x268]
lea rsi, [rsp + 0x130]
mov ecx, 9
mov qword [rsp + 0x30], rdi
mov rdi, r12
rep movsq qword [rdi], qword [rsi]
mov rdi, qword [rsp + 0x30]
cmp qword [r12], 2
jne 0x140010880
lea rcx, [rsp + 0x270]
call fcn.1400089cb
mov byte [rdi], 0x13
cmp qword [rsp + 0x98], 0
je 0x140010eb3
mov rcx, qword [0x1402fea40]
xor edx, edx
mov r8, r13
jmp 0x140010ead
lea rsi, [rsp + 0xb0]
mov rcx, rsi
call fcn.1400f1450
movups xmm0, xmmword [rsi + 8]
movups xmmword [rsp + 0x118], xmm0
mov rcx, r13
mov rdx, rbp
call fcn.1400f58d0
test rax, rax
je 0x140010ee1
mov rcx, rax
call fcn.1400f8600
test rax, rax
je 0x140010ef1
mov rcx, rax
call fcn.140109190
test rax, rax
je 0x140010f01
add r15, 0x18
lea rsi, [rsp + 0xd0]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
lea rdi, [rsp + 0x268]
mov qword [rdi], r15
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], rsi
lea rbp, [0x1400ecb90]
mov qword [rdi + 0x18], rbp
lea rax, str.failed_to_write_whole_buffer
lea r15, [rsp + 0x130]
mov qword [r15 + 0x10], rax
mov eax, 2
mov qword [r15 + 0x18], rax
xor r13d, r13d
mov qword [r15], r13
mov qword [r15 + 0x20], r12
mov qword [r15 + 0x28], rax
lea r12, [rsp + 0x1d0]
mov rcx, r12
mov rdx, r15
call fcn.14003ff20
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
mov rcx, rsi
call fcn.140040300
lea rax, [0x140238907]
mov qword [r15], rax
mov rax, qword [r15]
imul rcx, qword [0x1402f8178], 0x49447d6f
rol rcx, 0xa
movzx ecx, cx
movabs rdx, 0x1627c886fb0ab6a9
xor rdx, qword [rax + rcx]
lea rax, [rsp + 0x128]
mov qword [rax], rdx
lea rcx, [rsp + 0x88]
mov qword [rcx], rax
mov qword [rcx + 8], 8
lea rax, [rsp + 0x118]
mov qword [r15], rax
lea rax, [0x1400f8bf0]
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], r14
mov qword [r15 + 0x20], rcx
mov qword [r15 + 0x28], rbp
lea rax, str.failed_to_write_whole_buffer
mov qword [rdi + 0x10], rax
mov eax, 3
mov qword [rdi + 0x18], rax
mov qword [rdi], r13
mov qword [rdi + 0x20], r15
mov qword [rdi + 0x28], rax
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14003ff20
cmp qword [rsi], r13
je 0x140010a0b
mov r8, qword [rsp + 0xd8]
mov rcx, qword [0x1402fea40]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x1d0], 0
je 0x140010a2d
mov r8, qword [rsp + 0x1d8]
mov rcx, qword [0x1402fea40]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0xa8]
lea rdx, [rsp + 0x130]
mov qword [rdx + 0x10], rax
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rdx], xmm0
lea r12, [rsp + 0x268]
mov rcx, r12
mov r8, rdi
mov r9, r15
call fcn.1400059e1
cmp qword [r12], 0
je 0x140010ab8
mov rax, qword [rsp + 0x270]
lea rcx, [rsp + 0x130]
mov qword [rcx], rax
call fcn.1400089cb
mov rax, qword [rsp + 0x30]
mov byte [rax], 0x17
test r14, r14
je 0x140010e91
mov rcx, qword [0x1402fea40]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140010e91
lea rdx, [rsp + 0x308]
mov qword [rdx], r14
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], r15
mov byte [rdx + 0x18], 1
mov eax, dword [rsp + 0x39]
mov ecx, dword [rsp + 0x3c]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
lea rdi, [rsp + 0x130]
mov rcx, rdi
call fcn.14000e853
mov bpl, byte [rdi + 0x98]
cmp bpl, 3
jne 0x140010b53
movups xmm0, xmmword [rsp + 0x130]
movups xmm1, xmmword [rsp + 0x140]
movups xmm2, xmmword [rsp + 0x150]
movups xmm3, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x200], xmm3
movaps xmmword [rsp + 0x1f0], xmm2
movaps xmmword [rsp + 0x1e0], xmm1
movaps xmmword [rsp + 0x1d0], xmm0
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x140010e91
lea r15, [rsp + 0x1d0]
lea rdi, [rsp + 0x130]
mov r8d, 0x98
mov rcx, r15
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rdi + 0x99]
mov ecx, dword [rdi + 0x9c]
lea r12, [rsp + 0x268]
mov dword [r12 + 0x99], eax
mov dword [r12 + 0x9c], ecx
mov r8d, 0x98
mov rcx, r12
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [r12 + 0x98], bpl
lea rax, [0x14023b357]
mov qword [r15], rax
mov rcx, qword [r15]
mov eax, 0x7f56b89e
sub rax, qword [0x1402f8180]
rol rax, 0xc
movzx eax, ax
add rax, rcx
xorps xmm0, xmm0
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x40], xmm0
mov rcx, 0xfffffffffffffff8
lea rdx, [0x14023f648]
mov r8, qword [rcx + rdx + 8]
xor r8, qword [rax + rcx + 8]
mov qword [rsp + rcx + 0x138], r8
add rcx, 8
cmp rcx, 0x48
jb 0x140010bf8
mov al, byte [rax + 0x50]
xor al, 0x57
mov byte [rsp + 0x180], al
cmp qword [rsp + 0x268], 0
jne 0x140010f1b
lea rdi, [rsp + 0x268]
mov qword [rdi], 0xffffffffffffffff
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x20], 0x51
lea r15, [rsp + 0x1d0]
lea r9, [rsp + 0x130]
mov rcx, r15
mov r8, rdi
call fcn.1400d8326
inc qword [rdi]
mov rax, qword [r15 + 0x40]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmm2, xmmword [r15 + 0x20]
movups xmm3, xmmword [r15 + 0x30]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x60], xmm2
movaps xmmword [rsp + 0x70], xmm3
test rax, rax
je 0x140010d01
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movaps xmm3, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x100], xmm3
movaps xmmword [rsp + 0xf0], xmm2
movaps xmmword [rsp + 0xe0], xmm1
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x100]
call fcn.140188010
test eax, eax
mov rdi, qword [rsp + 0x30]
je 0x140010d2e
cdqe
mov byte [rdi], 0x11
mov qword [rdi + 8], 0
mov qword [rdi + 0x10], rax
jmp 0x140010e77
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movaps xmm3, xmmword [rsp + 0x70]
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x140010e84
lea rdx, [rsp + 0x88]
mov qword [rdx], rsi
mov qword [rdx + 8], 0
lea rsi, [rsp + 0x130]
mov rcx, rsi
call fcn.1400040e6
cmp qword [rsi + 0x18], 0
je 0x140010e47
mov ecx, 0x1c0
mov edx, 8
call fcn.1401270b0
test rax, rax
je 0x140010f49
mov r15, rax
lea r13, [rsp + 0x130]
mov ecx, 0xe
mov rdi, rax
mov rsi, r13
rep movsq qword [rdi], qword [rsi]
lea rax, [rsp + 0x1d0]
mov qword [rax], 4
mov qword [rax + 8], r15
mov qword [rax + 0x10], 1
movups xmm0, xmmword [rsp + 0x88]
lea rbp, [rsp + 0x40]
movups xmmword [rbp], xmm0
mov r12d, 1
mov r14d, 0x70
mov rcx, r13
mov rdx, rbp
call fcn.1400040e6
cmp qword [rsp + 0x148], 0
mov rdi, qword [rsp + 0x30]
je 0x140010e2a
cmp r12, qword [rsp + 0x1d0]
je 0x140010e0a
lea rdi, [r15 + r14]
mov ecx, 0xe
mov rsi, r13
rep movsq qword [rdi], qword [rsi]
inc r12
mov qword [rsp + 0x1e0], r12
add r14, 0x70
jmp 0x140010dc5
mov r8d, 1
lea rcx, [rsp + 0x1d0]
mov rdx, r12
call fcn.1402369c2
mov r15, qword [rsp + 0x1d8]
jmp 0x140010dea
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140010e3d
mov rcx, qword [rax + 0x30]
call fcn.14018881c
mov rax, qword [rsp + 0x1d0]
jmp 0x140010e68
mov rax, qword [rsp + 0x88]
mov r15d, 8
test rax, rax
je 0x140010e63
mov rcx, qword [rax + 0x30]
call fcn.14018881c
xor r12d, r12d
xor eax, eax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov byte [rdi], 0x1a
lea rcx, [rsp + 0xd0]
call fcn.140008d34
lea rcx, [rsp + 0x268]
call fcn.140008331
cmp qword [rsp + 0xb0], 0
je 0x140010eb3
mov r8, qword [rsp + 0xb8]
mov rcx, qword [0x1402fea40]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbx], 0
je 0x140010ecc
mov r8, qword [rbx + 8]
mov rcx, qword [0x1402fea40]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x328
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, [0x14023f600]
jmp 0x140010f0f
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, [0x14023f618]
jmp 0x140010f0f
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, [0x14023f630]
mov edx, 0x2b
call fcn.140237a10
ud2
lea rax, str.C:Userskylef.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rusqlite_0.28.0_srclib.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1402ace81]
lea r9, [0x14023e348]
lea r8, [rsp + 0x1d0]
mov edx, 0x10
call fcn.140237ca0
ud2
mov ecx, 0x1c0
mov edx, 8
call fcn.140237540
ud2