Function at 0x14000b650
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xca0]
sub rsp, 0xda0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc90], rax
call fcn.14000fdfc
call fcn.14000fe04
xor r14d, r14d
mov qword [rsp + 0xdd0], r12
mov word [0x140030550], r14w
lea r13, str.TEMPonefile_PID_TIME
mov eax, r14d
lea rdi, [0x140030550]
mov r15d, 0x1000
mov ecx, 0x7b
mov esi, 0x80
cmp cx, 0x7b
jne 0x14000b6da
lea rax, [rbp + 0x490]
mov word [rbp + 0x490], r14w
jmp 0x14000baad
movzx ecx, word [r13]
cmp cx, 0x7d
jne 0x14000ba87
lea rdx, [0x1400297d0]
mov word [rax], r14w
lea rcx, [rbp + 0x490]
xor r12b, r12b
call fcn.140013f78
test eax, eax
jne 0x14000b71b
mov rdx, rdi
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x14000ba4b
lea rdx, [0x1400297e0]
lea rcx, [rbp + 0x490]
call fcn.140013f78
test eax, eax
jne 0x14000b78e
mov rbx, r15
call fcn.14000fe04
cmp word [rdi], 0
mov rcx, qword [rax]
mov rax, rdi
mov rdx, qword [rcx]
je 0x14000b75d
nop dword [rax]
add rax, 2
dec rbx
cmp word [rax], 0
jne 0x14000b750
movzx ecx, word [rdx]
test cx, cx
je 0x14000b785
cmp rbx, 1
jb 0x14000c05b
add rdx, 2
mov word [rax], cx
add rax, 2
dec rbx
movzx ecx, word [rdx]
test cx, cx
jne 0x14000b765
mov word [rax], r14w
jmp 0x14000ba4b
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x490]
call fcn.140013f78
test eax, eax
jne 0x14000b81a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b7b0
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rdi
call fcn.14000a6c0
test al, al
je 0x14000c041
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b7e0
cmp rax, 4
jb 0x14000ba4b
lea rbx, [rdi + rax*2]
lea rcx, [rbx - 8]
lea rdx, str..exe
call fcn.140013f78
test eax, eax
jne 0x14000ba4b
mov word [rbx - 8], r14w
jmp 0x14000ba4b
lea rdx, [0x140029838]
lea rcx, [rbp + 0x490]
call fcn.140013f78
test eax, eax
jne 0x14000b8f8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1400297cc]
mov rdx, rsi
mov r9d, eax
lea rcx, [rbp + 0x10]
call fcn.140001060
cmp word [rdi], 0
lea r14, [rbp + 0x10]
mov rsi, r15
mov rbx, rdi
je 0x14000b86e
add rbx, 2
dec rsi
cmp word [rbx], 0
jne 0x14000b861
movzx edx, byte [rbp + 0x10]
test dl, dl
je 0x14000ba43
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x14000b89d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000b890
cmp rcx, 1
jb 0x14000c061
mov byte [rsp + 0x50], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x51], r12b
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000b8c0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x50]
call fcn.14000fb90
movzx edx, byte [r14 + 1]
inc r14
add rbx, 2
dec rsi
test dl, dl
jne 0x14000b880
jmp 0x14000ba43
lea rdx, [0x140029840]
lea rcx, [rbp + 0x490]
call fcn.140013f78
test eax, eax
jne 0x14000b916
mov edx, 0x28
jmp 0x14000b932
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x490]
call fcn.140013f78
test eax, eax
jne 0x14000b94d
mov edx, 0x1c
mov r8, r15
mov rcx, rdi
call fcn.14000a600
test al, al
je 0x14000c041
mov r12b, 1
jmp 0x14000ba4b
lea rdx, str.TIME
lea rcx, [rbp + 0x490]
call fcn.140013f78
test eax, eax
jne 0x14000c041
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x60]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rbp + 0x90]
call fcn.140001060
cmp word [rdi], 0
lea r14, [rbp + 0x90]
mov rsi, r15
mov rbx, rdi
je 0x14000b9bd
nop dword [rax + rax]
add rbx, 2
dec rsi
cmp word [rbx], 0
jne 0x14000b9b0
movzx edx, byte [rbp + 0x90]
test dl, dl
je 0x14000ba43
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x14000b9ed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000b9e0
cmp rcx, 1
jb 0x14000c067
mov byte [rsp + 0x54], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x55], r12b
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000ba10
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x54]
call fcn.14000fb90
movzx edx, byte [r14 + 1]
inc r14
add rbx, 2
dec rsi
test dl, dl
jne 0x14000b9d0
xor r14d, r14d
mov esi, 0x80
cmp word [rdi], 0
je 0x14000ba5e
add rdi, 2
dec r15
cmp word [rdi], 0
jne 0x14000ba51
test r12b, r12b
je 0x14000ba82
cmp word [rdi - 2], 0x5c
jne 0x14000ba82
nop word [rax + rax]
sub rdi, 2
inc r15
mov word [rdi], r14w
cmp word [rdi - 2], 0x5c
je 0x14000ba70
mov rax, r14
jmp 0x14000baad
test rax, rax
je 0x14000ba95
mov word [rax], cx
add rax, 2
jmp 0x14000baad
cmp r15, 1
jb 0x14000c041
mov word [rdi], cx
add rdi, 2
dec r15
mov word [rdi], r14w
movzx ecx, word [r13 + 2]
add r13, 2
test cx, cx
jne 0x14000b6c0
mov edx, 1
mov word [rdi], r14w
lea rcx, [0x14000b620]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000c04e
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 [0x140036d78], rax
mov qword [0x140036d58], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x140030530], rax
mov rax, qword [0x140036d58]
movzx ecx, word [rax]
movzx edx, byte [rax + 2]
add rax, 3
mov word [rsp + 0x54], cx
mov qword [0x140036d58], rax
cmp cl, 0x4b
jne 0x14000c0a0
cmp byte [rsp + 0x55], 0x41
jne 0x14000c0a0
cmp dl, 0x59
jne 0x14000c0a0
mov ecx, 0x20000
mov qword [0x140030538], r14
call fcn.140012e20
mov qword [0x140036d60], rax
test rax, rax
je 0x14000c074
movups xmm0, xmmword [0x14002a7f0]
mov ecx, 0x274b8
movaps xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [0x14002a800]
movsd qword [rsp + 0x60], xmm0
call fcn.140012e20
mov rbx, rax
test rax, rax
je 0x14000c06d
movaps xmm0, xmmword [rsp + 0x70]
mov rcx, rax
movups xmmword [rax + 0x73a0], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax + 0x73b0], xmm0
call fcn.140005380
mov rax, qword [0x140036d58]
lea r12, [0x140032550]
mov qword [0x140030538], rax
lea r15, [0x14003ed80]
mov rax, qword [0x140030530]
lea r13, [0x14002fd30]
mov qword [0x140030540], rax
mov qword [0x14002fd20], rbx
mov qword [0x140030548], r14
mov byte [0x14002fd28], 1
nop dword [rax]
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, r12
call fcn.14000ad20
movzx eax, word [rsp + 0x50]
mov word [0x140032550], ax
test ax, ax
je 0x14000be4e
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.14000ad20
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x14000bc50
cmp word [0x140032550], ax
je 0x14000be4e
cmp word [0x140030550], ax
mov edx, 0x1000
mov word [0x14003ed80], r14w
mov rcx, r15
je 0x14000bcc1
lea r8, [0x140030550]
sub r8, r15
cmp rdx, 1
jb 0x14000c086
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000bca0
mov word [rcx], r14w
mov rax, r15
cmp word [0x14003ed80], 0
mov ecx, 0x1000
je 0x14000bcf7
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000bce0
cmp rcx, 1
jb 0x14000c086
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x14003ed80], 0
mov rax, r15
je 0x14000bd1d
nop
add rax, 2
dec rdx
cmp word [rax], 0
jne 0x14000bd10
mov r8, r12
sub r8, rax
cmp rdx, 1
jb 0x14000c086
movzx ecx, word [r8 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r8 + rax], 0
jne 0x14000bd23
cmp word [0x14002fd30], 0
mov word [rax], r14w
jne 0x14000bd95
cmp word [0x14003ed80], 0
mov edx, 0x1000
mov rcx, r13
je 0x14000bd91
mov r8, r15
sub r8, r13
nop word [rax + rax]
cmp rdx, 1
jb 0x14000c086
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], 0
jne 0x14000bd70
mov word [rcx], r14w
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14000ad20
mov rcx, r15
call fcn.14000b3d0
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000c080
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14000be3d
nop dword [rax]
mov ebx, 0x8000
lea rcx, [0x140036d80]
cmp rdi, rbx
cmovbe ebx, edi
movsxd rsi, ebx
mov rdx, rsi
call fcn.14000ad20
xor eax, eax
lea r9, [rsp + 0x54]
mov r8d, ebx
mov dword [rsp + 0x54], eax
lea rdx, [0x140036d80]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000c07a
sub rdi, rsi
jne 0x14000bdf0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
jmp 0x14000bc20
call fcn.140005510
mov rcx, qword [0x140036d60]
call fcn.140012de0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 0x80
lea r8, [0x1400297cc]
mov r9d, eax
lea rcx, [rbp + 0x10]
mov edx, esi
call fcn.140001060
movzx edx, byte [rbp + 0x10]
lea rdi, [rbp + 0x10]
mov word [rbp + 0x90], r14w
lea rbx, [rbp + 0x90]
test dl, dl
je 0x14000bf12
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x14000bebd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000beb0
cmp rcx, 1
jb 0x14000c09a
mov byte [rsp + 0x54], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x55], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000bee0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x54]
call fcn.14000fb90
movzx edx, byte [rdi + 1]
inc rdi
add rbx, 2
dec rsi
test dl, dl
jne 0x14000bea0
lea rdx, [rbp + 0x90]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.14000a4a0
call fcn.14000a590
mov rdx, rax
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.14000a4a0
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x68
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp + 4], eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r13
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000c08c
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
mov qword [0x14002fd18], rcx
mov dword [rsp + 0x58], r14d
test rcx, rcx
je 0x14000c005
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002fd18]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000bff1
mov dword [rsp + 0x58], 1
mov rcx, qword [0x14002fd18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14002fd18], r14
call fcn.14000b4e0
mov eax, dword [rsp + 0x58]
mov r12, qword [rsp + 0xdd0]
mov rcx, qword [rbp + 0xc90]
xor rcx, rsp
call fcn.14000c0c0
lea r11, [rsp + 0xda0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rcx, str.TEMPonefile_PID_TIME
call fcn.14000acf0
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.14000abe0
int3
call fcn.14000f84c
int3
call fcn.14000f84c
int3
call fcn.14000f84c
int3
mov qword [0x14002fd20], r14
call fcn.14000ac80
int3
call fcn.14000ac20
int3
call fcn.14000acc0
int3
call fcn.14000f84c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.14000aca0
int3
call fcn.14000f84c
int3
call fcn.14000ac60
int3