Function at 0x140002470
Capabilities:
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 - 0xc90]
sub rsp, 0xd90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc80], rax
call fcn.140006c50
call fcn.140006c58
xor r14d, r14d
mov qword [rsp + 0xdc0], r12
mov r15d, 0x1000
lea r13, str.TEMPonefile_PID_TIME
lea rdi, [0x1400355c0]
mov ecx, 0x7b
mov rax, qword [rax]
mov esi, 0x80
mov qword [rsp + 0x70], rax
mov eax, r14d
mov word [0x1400355c0], r14w
cmp cx, 0x7b
jne 0x140002502
lea rax, [rbp + 0x480]
mov word [rbp + 0x480], r14w
jmp 0x1400028dd
movzx ecx, word [r13]
cmp cx, 0x7d
jne 0x1400028b7
lea rdx, str.TEMP
mov word [rax], r14w
lea rcx, [rbp + 0x480]
xor r12b, r12b
call fcn.14000ad44
test eax, eax
jne 0x140002543
mov rdx, rdi
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r12b, 1
jmp 0x14000286f
lea rdx, [0x14001f668]
lea rcx, [rbp + 0x480]
call fcn.14000ad44
test eax, eax
jne 0x1400025af
mov rbx, r15
call fcn.140006c58
cmp word [rdi], 0
mov rcx, qword [rax]
mov rax, rdi
mov rdx, qword [rcx]
je 0x14000257e
add rax, 2
dec rbx
cmp word [rax], 0
jne 0x140002571
movzx ecx, word [rdx]
test cx, cx
je 0x1400025a6
cmp rbx, 1
jb 0x140002e2b
add rdx, 2
mov word [rax], cx
add rax, 2
dec rbx
movzx ecx, word [rdx]
test cx, cx
jne 0x140002586
mov word [rax], r14w
jmp 0x14000286f
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x480]
call fcn.14000ad44
test eax, eax
jne 0x14000263a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400025d0
mov r8, r15
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rdi
call fcn.1400012f0
test al, al
je 0x140002e11
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x140002600
cmp rax, 4
jb 0x14000286f
lea rbx, [rdi + rax*2]
lea rcx, [rbx - 8]
lea rdx, str..exe
call fcn.14000ad44
test eax, eax
jne 0x14000286f
mov word [rbx - 8], r14w
jmp 0x14000286f
lea rdx, [0x14001f6c8]
lea rcx, [rbp + 0x480]
call fcn.14000ad44
test eax, eax
jne 0x14000271c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14001f650]
mov rdx, rsi
mov r9d, eax
lea rcx, [rbp]
call fcn.140001060
cmp word [rdi], 0
lea r14, [rbp]
mov rsi, r15
mov rbx, rdi
je 0x14000268e
add rbx, 2
dec rsi
cmp word [rbx], 0
jne 0x140002681
movzx eax, byte [rbp]
test al, al
je 0x140002867
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x54], al
lea rdx, [rsp + 0x54]
mov byte [rsp + 0x55], r12b
lea rcx, [rsp + 0x60]
call fcn.1400069e4
cmp rax, 1
jne 0x140002e31
cmp word [rbx], 0
mov rax, rsi
mov rcx, rbx
je 0x1400026ed
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x1400026e0
cmp rax, 1
jb 0x140002e31
movzx eax, word [rsp + 0x60]
inc r14
mov word [rcx], ax
add rbx, 2
xor eax, eax
dec rsi
mov word [rcx + 2], ax
movzx eax, byte [r14]
test al, al
jne 0x1400026a0
jmp 0x140002867
lea rdx, [0x14001f6d0]
lea rcx, [rbp + 0x480]
call fcn.14000ad44
test eax, eax
jne 0x14000273a
mov edx, 0x28
jmp 0x140002756
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x480]
call fcn.14000ad44
test eax, eax
jne 0x140002771
mov edx, 0x1c
mov r8, r15
mov rcx, rdi
call fcn.140001230
test al, al
je 0x140002e11
mov r12b, 1
jmp 0x14000286f
lea rdx, str.TIME
lea rcx, [rbp + 0x480]
call fcn.14000ad44
test eax, eax
jne 0x140002e11
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], r14
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x68]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rbp + 0x80]
call fcn.140001060
cmp word [rdi], 0
lea r14, [rbp + 0x80]
mov rsi, r15
mov rbx, rdi
je 0x1400027dd
nop dword [rax]
add rbx, 2
dec rsi
cmp word [rbx], 0
jne 0x1400027d0
movzx eax, byte [rbp + 0x80]
test al, al
je 0x140002867
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], r12b
lea rcx, [rsp + 0x58]
call fcn.1400069e4
cmp rax, 1
jne 0x140002e37
cmp word [rbx], 0
mov rax, rsi
mov rcx, rbx
je 0x14000283d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], 0
jne 0x140002830
cmp rax, 1
jb 0x140002e37
movzx eax, word [rsp + 0x58]
inc r14
mov word [rcx], ax
add rbx, 2
xor eax, eax
dec rsi
mov word [rcx + 2], ax
movzx eax, byte [r14]
test al, al
jne 0x1400027f0
xor r14d, r14d
mov esi, 0x80
cmp word [rdi], 0
je 0x14000288d
nop word [rax + rax]
add rdi, 2
dec r15
cmp word [rdi], 0
jne 0x140002880
test r12b, r12b
je 0x1400028b2
cmp word [rdi - 2], 0x5c
jne 0x1400028b2
nop dword [rax]
sub rdi, 2
inc r15
mov word [rdi], r14w
cmp word [rdi - 2], 0x5c
je 0x1400028a0
mov rax, r14
jmp 0x1400028dd
test rax, rax
je 0x1400028c5
mov word [rax], cx
add rax, 2
jmp 0x1400028dd
cmp r15, 1
jb 0x140002e11
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 0x1400024e8
mov edx, 1
mov word [rdi], r14w
lea rcx, [0x140002110]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002e1e
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 [0x140047de0], rax
mov qword [0x14003bdc0], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8, qword [0x14003bdc0]
movzx eax, word [r8]
movzx ecx, byte [r8 + 2]
add r8, 3
mov word [rsp + 0x50], ax
mov qword [0x14003bdc0], r8
cmp al, 0x4b
jne 0x140002e63
cmp byte [rsp + 0x51], 0x41
jne 0x140002e63
cmp cl, 0x58
jne 0x140002e63
mov byte [0x14003bdc8], 1
lea r13, [0x1400375c0]
lea r12, [0x140045de0]
lea r14, [0x140024dc0]
nop dword [rax + rax]
movzx eax, word [r8]
mov rcx, r13
add r8, 2
mov word [0x1400375c0], ax
mov qword [0x14003bdc0], r8
test ax, ax
je 0x140002bdd
mov rdx, r8
nop word [rax + rax]
movzx eax, word [r8]
lea rcx, [rcx + 2]
mov word [rcx], ax
lea r8, [rdx + 2]
mov rdx, r8
test ax, ax
jne 0x1400029e0
cmp word [0x1400375c0], ax
mov qword [0x14003bdc0], r8
je 0x140002bdd
xor ebx, ebx
mov edx, 0x1000
cmp word [0x1400355c0], bx
mov rcx, r12
mov word [0x140045de0], bx
je 0x140002a50
lea r9, [0x1400355c0]
sub r9, r12
nop
cmp rdx, 1
jb 0x140002e49
movzx eax, word [r9 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r9 + rcx], bx
jne 0x140002a30
mov word [rcx], bx
mov rax, r12
cmp word [0x140045de0], bx
mov ecx, 0x1000
je 0x140002a7a
add rax, 2
dec rcx
cmp word [rax], bx
jne 0x140002a64
cmp rcx, 1
jb 0x140002e49
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140045de0], bx
mov rax, r12
je 0x140002a9d
add rax, 2
dec rdx
cmp word [rax], bx
jne 0x140002a91
mov r9, r13
sub r9, rax
cmp rdx, 1
jb 0x140002e49
movzx ecx, word [r9 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r9 + rax], bx
jne 0x140002aa3
cmp word [0x140024dc0], bx
mov word [rax], bx
jne 0x140002b09
cmp word [0x140045de0], bx
mov edx, 0x1000
mov rcx, r14
je 0x140002b06
mov r9, r12
sub r9, r14
cmp rdx, 1
jb 0x140002e49
movzx eax, word [r9 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r9 + rcx], bx
jne 0x140002ae6
mov word [rcx], bx
mov rsi, qword [r8]
mov rcx, r12
add r8, 8
mov qword [0x14003bdc0], r8
call fcn.140001ec0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140002e43
test rsi, rsi
je 0x140002bc8
nop dword [rax]
mov rbx, qword [0x14003bdc0]
lea rcx, [0x14003dde0]
mov edi, 0x8000
mov rdx, rbx
cmp rsi, rdi
cmovbe edi, esi
movsxd r14, edi
mov r8, r14
call fcn.140016520
add rbx, r14
lea r9, [rsp + 0x58]
mov qword [0x14003bdc0], rbx
lea rdx, [0x14003dde0]
xor ebx, ebx
mov r8d, edi
mov rcx, r15
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002e3d
sub rsi, r14
jne 0x140002b60
lea r14, [0x140024dc0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [0x14003bdc0]
jmp 0x1400029b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 0x80
lea r8, [0x14001f650]
mov r9d, eax
lea rcx, [rbp]
mov edx, esi
call fcn.140001060
movzx eax, byte [rbp]
lea rdi, [rbp]
xor r15d, r15d
lea rbx, [rbp + 0x80]
mov word [rbp + 0x80], r15w
test al, al
je 0x140002c95
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x51], r15b
lea rcx, [rsp + 0x58]
call fcn.1400069e4
cmp rax, 1
jne 0x140002e5d
mov rax, rsi
mov rcx, rbx
cmp word [rbx], r15w
je 0x140002c6d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], r15w
jne 0x140002c60
cmp rax, 1
jb 0x140002e5d
movzx eax, word [rsp + 0x58]
inc rdi
mov word [rcx], ax
add rbx, 2
dec rsi
mov word [rcx + 2], r15w
movzx eax, byte [rdi]
test al, al
jne 0x140002c20
lea rdx, [rbp + 0x80]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.1400010c0
call fcn.1400011c0
mov rdx, rax
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.1400010c0
mov rdx, qword [rsp + 0x70]
lea rcx, str.NUITKA_ORIGINAL_ARGV0
mov rdx, qword [rdx]
call fcn.1400010c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
mov ecx, 0xfffffff6
mov dword [rbp - 0x34], pe_nt_image_headers64
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x70], 0x68
call fcn.140002140
mov rdx, rax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rcx, r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002e4f
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov qword [0x140024db8], rcx
mov dword [rsp + 0x5c], r15d
test rcx, rcx
je 0x140002dd5
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140024db8]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002dc1
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x140024db8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140024db8], r15
call fcn.140001fd0
mov eax, dword [rsp + 0x5c]
mov r12, qword [rsp + 0xdc0]
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.140002e80
lea r11, [rsp + 0xd90]
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.1400018f0
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140001820
int3
call fcn.1400066b0
int3
call fcn.1400066b0
int3
call fcn.1400066b0
int3
call fcn.140001860
int3
call fcn.1400018c0
int3
call fcn.1400066b0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.1400018a0
int3
call fcn.1400066b0
int3
call fcn.140001880
int3