Function at 0x140006300
Capabilities:
Delete file
Extract resource via kernel32 functions
Link many functions at runtime
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor r14d, r14d
mov dword [rbp - 0x58], r14d
mov edx, 0x65
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140006373
lea rdx, str.Failed_to_find_SQLite_DLL_resource
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
xor al, al
jmp 0x1400067a7
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1400063a8
lea rdx, str.Failed_to_load_SQLite_DLL_resource
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
xor al, al
jmp 0x1400067a7
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1400063e8
lea rdx, str.Failed_to_lock_SQLite_DLL_resource
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
xor al, al
jmp 0x1400067a7
mov qword [rbp - 0x50], r14
lea rax, [0x1400c9d68]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400061b0
mov dword [rbp - 0x58], 1
cmp dword [rbp - 0x50], 0
jne 0x1400067d0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000b690
mov dword [rbp - 0x58], 3
mov r8d, 9
lea rdx, str.SQL3.dll
lea rcx, [rbp - 0x80]
call fcn.14000a6e0
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140008e10
nop
lea rcx, [rbp - 0x80]
call fcn.14000a300
mov rcx, qword [rbp - 0x80]
mov qword [rbp - 0x80], r14
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rsp + 0x58]
call fcn.14000a220
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov edx, 0x10
call fcn.14000d2e0
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rcx, qword [rbp]
add rcx, qword [rbp + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rcx
mov edx, 3
lea rcx, [rbp - 0x58]
call fcn.14002e4d0
mov rbx, qword [rbp - 8]
mov rax, qword [rbp - 0x50]
cmp rax, rbx
je 0x1400064e3
test rax, rax
je 0x1400064cf
lea rcx, [rbp - 0x50]
call fcn.1400030a0
mov rax, qword [rbx + 8]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rbx + 8], rax
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x58]
call fcn.14002e5b0
lea rax, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rax, qword [rbp]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov edx, 3
lea rcx, [rbp - 0x58]
call fcn.14002e4d0
mov rbx, qword [rbp - 8]
mov rax, qword [rsp + 0x40]
cmp rax, rbx
je 0x14000654a
test rax, rax
je 0x140006533
lea rcx, [rsp + 0x40]
call fcn.1400030a0
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rbx + 8], rax
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x58]
call fcn.14002e5b0
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x38]
call fcn.14000c0a0
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400065e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_create_temp_for_SQL__error_code:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov edx, ebx
mov rcx, rax
call fcn.140008700
mov rcx, rax
call fcn.14000c010
jmp 0x14000676b
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x10]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006733
cmp dword [rbp - 0x10], esi
jne 0x140006733
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x140006669
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_load_SQL_DLL_from_temp_file__error_code:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov edx, ebx
mov rcx, rax
call fcn.140008700
mov rcx, rax
call fcn.14000c010
jmp 0x140006757
lea rdx, [0x1400ba838]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ccaf8], rax
lea rdx, [0x1400ba848]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ccae8], rax
lea rdx, [0x1400ba858]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ccad8], rax
lea rdx, [0x1400ba868]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ccae0], rax
lea rdx, [0x1400ba878]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ccaf0], rax
cmp qword [0x1400ccaf8], 0
je 0x14000670d
cmp qword [0x1400ccae8], 0
je 0x14000670d
cmp qword [0x1400ccad8], 0
je 0x14000670d
cmp qword [0x1400ccae0], 0
je 0x14000670d
test rax, rax
je 0x14000670d
mov bl, 1
jmp 0x14000676d
lea rdx, str.Failed_to_get_SQLite_function_addresses
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140006757
lea rdx, str.Failed_to_write_SQL_to_temp_file
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
lea rcx, [rbp - 0x38]
call fcn.14000a220
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x38], r14
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rbp - 8]
call fcn.14000a300
mov rcx, qword [rbp - 8]
mov qword [rbp - 8], r14
mov edx, 0x10
call fcn.14000d2e0
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140034bd0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x50]
lea rcx, str.temp_directory_path
call fcn.1400055e0
int3