Function at 0x14000bd90
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Get file size
Read file via mapping
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [r11 - 0xd08]
sub rsp, 0xde0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xcd0], rax
mov rax, qword [0x14002a8e8]
lea r13, [0x14002a8e8]
xor esi, esi
mov qword [r11 + 8], r12
mov word [0x140045610], si
lea rbx, [0x140045610]
mov ecx, esi
mov r15d, 0x1000
mov r14d, 0x80
cmp ax, 0x7b
jne 0x14000be0b
lea rcx, [rbp + 0x4d0]
mov word [rbp + 0x4d0], si
jmp 0x14000c1ab
movzx eax, word [r13]
cmp ax, 0x7d
jne 0x14000c186
mov word [rcx], si
lea rdx, [0x14002a6e8]
lea rcx, [rbp + 0x4d0]
xor r12b, r12b
call fcn.1400149a8
test eax, eax
jne 0x14000be4b
mov rdx, rbx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x14000c13f
lea rdx, [0x14002a6f8]
lea rcx, [rbp + 0x4d0]
call fcn.1400149a8
test eax, eax
jne 0x14000be7d
mov r8d, r15d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000c8ee
jmp 0x14000c13f
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x4d0]
call fcn.1400149a8
test eax, eax
jne 0x14000bf09
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000bea0
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rbx
call fcn.14000abe0
test al, al
je 0x14000c8ee
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000bed0
cmp rax, 4
jb 0x14000c13f
lea rdi, [rbx + rax*2]
lea rcx, [rdi - 8]
lea rdx, str..exe
call fcn.1400149a8
test eax, eax
jne 0x14000c13f
mov word [rdi - 8], si
jmp 0x14000c13f
lea rdx, [0x14002a758]
lea rcx, [rbp + 0x4d0]
call fcn.1400149a8
test eax, eax
jne 0x14000bfec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14002a6e4]
mov rdx, r14
mov r9d, eax
lea rcx, [rbp + 0x50]
call fcn.140001060
cmp word [rbx], 0
lea r14, [rbp + 0x50]
mov rsi, r15
mov rdi, rbx
je 0x14000bf5d
add rdi, 2
dec rsi
cmp word [rdi], 0
jne 0x14000bf50
movzx eax, byte [rbp + 0x50]
test al, al
je 0x14000c137
nop dword [rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], r12b
lea rcx, [rsp + 0x60]
call fcn.140010480
cmp rax, 1
jne 0x14000c908
cmp word [rdi], 0
mov rax, rsi
mov rcx, rdi
je 0x14000bfbd
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x14000bfb0
cmp rax, 1
jb 0x14000c908
movzx eax, word [rsp + 0x60]
inc r14
mov word [rcx], ax
add rdi, 2
xor eax, eax
dec rsi
mov word [rcx + 2], ax
movzx eax, byte [r14]
test al, al
jne 0x14000bf70
jmp 0x14000c137
lea rdx, [0x14002a760]
lea rcx, [rbp + 0x4d0]
call fcn.1400149a8
test eax, eax
jne 0x14000c00a
mov edx, 0x28
jmp 0x14000c026
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x4d0]
call fcn.1400149a8
test eax, eax
jne 0x14000c041
mov edx, 0x1c
mov r8, r15
mov rcx, rbx
call fcn.14000ab20
test al, al
je 0x14000c8ee
mov r12b, 1
jmp 0x14000c13f
lea rdx, str.TIME
lea rcx, [rbp + 0x4d0]
call fcn.1400149a8
test eax, eax
jne 0x14000c8ee
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x70]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rbp + 0xd0]
call fcn.140001060
cmp word [rbx], 0
lea r14, [rbp + 0xd0]
mov rsi, r15
mov rdi, rbx
je 0x14000c0ad
nop dword [rax]
add rdi, 2
dec rsi
cmp word [rdi], 0
jne 0x14000c0a0
movzx eax, byte [rbp + 0xd0]
test al, al
je 0x14000c137
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x54], al
lea rdx, [rsp + 0x54]
mov byte [rsp + 0x55], r12b
lea rcx, [rsp + 0x58]
call fcn.140010480
cmp rax, 1
jne 0x14000c90e
cmp word [rdi], 0
mov rax, rsi
mov rcx, rdi
je 0x14000c10d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x14000c100
cmp rax, 1
jb 0x14000c90e
movzx eax, word [rsp + 0x58]
inc r14
mov word [rcx], ax
add rdi, 2
xor eax, eax
dec rsi
mov word [rcx + 2], ax
movzx eax, byte [r14]
test al, al
jne 0x14000c0c0
mov r14d, 0x80
xor esi, esi
cmp word [rbx], 0
je 0x14000c15d
nop word [rax + rax]
add rbx, 2
dec r15
cmp word [rbx], 0
jne 0x14000c150
test r12b, r12b
je 0x14000c181
cmp word [rbx - 2], 0x5c
jne 0x14000c181
nop dword [rax]
sub rbx, 2
inc r15
mov word [rbx], si
cmp word [rbx - 2], 0x5c
je 0x14000c170
mov rcx, rsi
jmp 0x14000c1ab
test rcx, rcx
je 0x14000c194
mov word [rcx], ax
add rcx, 2
jmp 0x14000c1ab
cmp r15, 1
jb 0x14000c8ee
mov word [rbx], ax
add rbx, 2
dec r15
mov word [rbx], si
mov eax, 2
add r13, rax
movzx eax, word [r13]
test ax, ax
jne 0x14000bdf2
mov edx, 1
mov word [rbx], si
lea rcx, [0x14000ba00]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000c8fb
mov edx, 0x1b
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov qword [0x14004be28], rax
mov qword [0x140033608], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x140032de8], rax
mov rax, qword [0x140033608]
movzx ecx, word [rax]
movzx edx, byte [rax + 2]
add rax, 3
mov word [rsp + 0x54], cx
mov qword [0x140033608], rax
cmp cl, 0x4b
jne 0x14000c8e8
cmp byte [rsp + 0x55], 0x41
jne 0x14000c8e8
cmp dl, 0x59
jne 0x14000c8e8
xor esi, esi
mov ecx, 0x20000
mov qword [0x1400335f0], rsi
call fcn.1400136f4
mov qword [0x14004be10], rax
test rax, rax
je 0x14000c91b
movups xmm0, xmmword [0x14002d6e0]
mov ecx, 0x274b8
movaps xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [0x14002d6f0]
movsd qword [rsp + 0x70], xmm0
call fcn.1400136f4
mov rbx, rax
test rax, rax
je 0x14000c914
movaps xmm0, xmmword [rbp - 0x50]
mov rcx, rax
movups xmmword [rax + 0x73a0], xmm0
movsd xmm0, qword [rsp + 0x70]
movsd qword [rax + 0x73b0], xmm0
call fcn.1400053b0
mov rax, qword [0x140033608]
lea r12, [0x140047610]
mov qword [0x1400335f0], rax
lea r15, [0x140043610]
mov rax, qword [0x140032de8]
lea r13, [0x140032df0]
mov qword [0x1400335f8], rax
mov qword [0x140032de0], rbx
mov qword [0x140033600], rsi
jmp 0x14000c322
xor esi, esi
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, r12
call fcn.14000b210
movzx eax, word [rsp + 0x50]
mov word [0x140047610], ax
test ax, ax
je 0x14000c6c1
nop dword [rax]
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.14000b210
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x14000c350
cmp word [0x140047610], ax
je 0x14000c6c1
cmp word [0x140045610], ax
mov edx, 0x1000
mov word [0x140043610], si
mov rcx, r15
je 0x14000c3c1
lea r8, [0x140045610]
sub r8, r15
nop
cmp rdx, 1
jb 0x14000c92d
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000c3a0
mov word [rcx], si
mov rax, r15
cmp word [0x140043610], 0
mov ecx, 0x1000
je 0x14000c3f7
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000c3e0
cmp rcx, 1
jb 0x14000c92d
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140043610], 0
mov rcx, r15
je 0x14000c41d
nop
add rcx, 2
dec rdx
cmp word [rcx], 0
jne 0x14000c410
mov r8, r12
sub r8, rcx
cmp rdx, 1
jb 0x14000c92d
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000c423
cmp word [0x140032df0], 0
mov word [rcx], si
jne 0x14000c494
cmp word [0x140043610], 0
mov edx, 0x1000
mov rcx, r13
je 0x14000c491
mov r8, r15
sub r8, r13
nop dword [rax]
cmp rdx, 1
jb 0x14000c92d
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000c470
mov word [rcx], si
mov edx, 8
lea rcx, [rsp + 0x70]
call fcn.14000b210
mov edx, 4
lea rcx, [rsp + 0x58]
call fcn.14000b210
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0x80000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c4f9
mov bl, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x70]
jmp 0x14000c5b2
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x14000c52f
mov qword [rbp - 0x60], 0xffffffffffffffff
mov bl, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x70]
jmp 0x14000c5b2
mov eax, eax
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov r8d, 2
mov qword [rbp - 0x60], rax
mov rcx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x14000c571
mov bl, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rbp - 0x70]
jmp 0x14000c5b2
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x14000c5b0
mov bl, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c5b2
xor bl, bl
test bl, bl
je 0x14000c5bc
xor edi, edi
mov ebx, edi
jmp 0x14000c5f1
mov r8d, dword [rbp - 0x60]
mov rdx, r14
call fcn.14000a500
mov ebx, eax
test eax, eax
mov eax, 1
mov rcx, r14
cmove ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [rsp + 0x58], ebx
jne 0x14000c600
mov rsi, 0xffffffffffffffff
jmp 0x14000c63d
mov rcx, r15
call fcn.14000b8a0
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000c927
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14000c6a3
nop word [rax + rax]
mov edi, 0x8000
lea rcx, [0x14004de40]
cmp rbx, rdi
cmovbe edi, ebx
movsxd r14, edi
mov rdx, r14
call fcn.14000b210
cmp rsi, 0xffffffffffffffff
je 0x14000c69e
xor eax, eax
lea r9, [rsp + 0x60]
mov r8d, edi
mov dword [rsp + 0x60], eax
lea rdx, [0x14004de40]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000c921
sub rbx, r14
jne 0x14000c650
mov r14d, 0x80
cmp rsi, 0xffffffffffffffff
je 0x14000c320
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c320
call fcn.140005540
mov rcx, qword [0x14004be10]
call fcn.1400136b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14002a6e4]
mov rdx, r14
mov r9d, eax
lea rcx, [rbp + 0x50]
call fcn.140001060
movzx eax, byte [rbp + 0x50]
lea rdi, [rbp + 0x50]
mov word [rbp + 0xd0], si
lea rbx, [rbp + 0xd0]
test al, al
je 0x14000c784
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x54], al
lea rdx, [rsp + 0x54]
mov byte [rsp + 0x55], 0
lea rcx, [rsp + 0x58]
call fcn.140010480
cmp rax, 1
jne 0x14000c941
cmp word [rbx], 0
mov rax, r14
mov rcx, rbx
je 0x14000c75d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x14000c750
cmp rax, 1
jb 0x14000c941
movzx eax, word [rsp + 0x58]
inc rdi
mov word [rcx], ax
add rbx, 2
dec r14
mov word [rcx + 2], si
movzx eax, byte [rdi]
test al, al
jne 0x14000c710
lea rdx, [rbp + 0xd0]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.14000a9b0
call fcn.14000aab0
mov rdx, rax
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.14000a9b0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov ecx, 0xfffffff6
mov dword [rbp + 0x1c], 0x100
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x40], rax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x20], 0x68
call fcn.14000ba60
mov rdx, rax
xor r9d, r9d
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rcx, r13
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov esi, 1
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000c933
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
xor ebx, ebx
mov qword [0x140032dd8], rcx
mov dword [rsp + 0x5c], ebx
test rcx, rcx
je 0x14000c8ac
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140032dd8]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000c898
mov dword [rsp + 0x5c], esi
mov rcx, qword [0x140032dd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140032dd8], rbx
call fcn.14000b9b0
mov eax, dword [rsp + 0x5c]
mov r12, qword [rsp + 0xe10]
mov rcx, qword [rbp + 0xcd0]
xor rcx, rsp
call fcn.14000c960
lea r11, [rsp + 0xde0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.14000b150
int3
lea rcx, [0x14002a8e8]
call fcn.14000b1e0
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.14000b0d0
int3
call fcn.140010144
int3
call fcn.140010144
int3
mov qword [0x140032de0], rsi
call fcn.14000b170
int3
call fcn.14000b110
int3
call fcn.14000b1b0
int3
call fcn.140010144
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.14000b190
int3
call fcn.140010144
int3