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

Disassembly:
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x170], rax
call fcn.140007064
call fcn.14000706c
mov r8d, 0x1000
lea rdx, str.TEMPonefile_PID_TIME
lea rcx, [0x1400265e0]
call fcn.1400012f0
test al, al
je 0x1400023f3
mov edx, 1
lea rcx, [0x140001e00]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002400
mov edx, 0x1b
mov qword [rsp + 0x2b0], rbx
xor ecx, ecx
lea r8d, [rdx - 0x11]
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 [0x140036df0], rax
mov qword [0x14002cde8], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r9, qword [0x14002cde8]
movzx eax, word [r9]
movzx ecx, byte [r9 + 2]
add r9, 3
mov word [rsp + 0x50], ax
mov qword [0x14002cde8], r9
cmp al, 0x4b
jne 0x1400023ed
cmp byte [rsp + 0x51], 0x41
jne 0x1400023ed
cmp cl, 0x58
jne 0x1400023ed
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2c0], rdi
mov qword [rsp + 0x298], r12
xor r12d, r12d
mov qword [rsp + 0x290], r13
lea r13, [0x140034df0]
mov qword [rsp + 0x288], r14
mov qword [rsp + 0x280], r15
mov byte [0x14002cde2], 1
nop dword [rax]
movzx eax, word [r9]
lea rcx, [0x1400285e0]
add r9, 2
mov word [0x1400285e0], ax
mov qword [0x14002cde8], r9
test ax, ax
je 0x1400021b5
mov rdx, r9
nop dword [rax]
movzx eax, word [r9]
lea rcx, [rcx + 2]
mov word [rcx], ax
lea r9, [rdx + 2]
mov rdx, r9
test ax, ax
jne 0x140001f90
cmp word [0x1400285e0], r12w
mov qword [0x14002cde8], r9
je 0x1400021b5
cmp word [0x1400265e0], r12w
mov edx, 0x1000
mov word [0x140034df0], r12w
mov rcx, r13
je 0x140002000
lea r8, [0x1400265e0]
sub r8, r13
cmp rdx, 1
jb 0x140002419
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], r12w
jne 0x140001fe0
mov word [rcx], r12w
mov rax, r13
cmp word [0x140034df0], r12w
mov ecx, 0x1000
je 0x140002037
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x140002020
cmp rcx, 1
jb 0x140002419
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140034df0], r12w
mov rax, r13
je 0x14000205d
nop
add rax, 2
dec rdx
cmp word [rax], r12w
jne 0x140002050
lea r8, [0x1400285e0]
sub r8, rax
nop word [rax + rax]
cmp rdx, 1
jb 0x140002419
movzx ecx, word [r8 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r8 + rax], r12w
jne 0x140002070
cmp word [0x140025de0], r12w
mov word [rax], r12w
jne 0x1400020e5
cmp word [0x140034df0], r12w
lea rdx, [0x140025de0]
mov r8d, 0x1000
mov rcx, r13
je 0x1400020e1
nop dword [rax + rax]
cmp r8, 1
jb 0x140002419
movzx eax, word [rcx]
dec r8
add rcx, 2
mov word [rdx], ax
add rdx, 2
cmp word [rcx], r12w
jne 0x1400020c0
mov word [rdx], r12w
mov rsi, qword [r9]
mov rcx, r13
add r9, 8
mov qword [0x14002cde8], r9
call fcn.140001bb0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140002413
test rsi, rsi
je 0x1400021a0
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [0x14002cde8]
lea rcx, [0x14002cdf0]
mov edi, 0x8000
mov rdx, rbx
cmp rsi, rdi
cmovbe edi, esi
movsxd r14, edi
mov r8, r14
call fcn.140016ae0
add rbx, r14
mov dword [rsp + 0x50], r12d
lea r9, [rsp + 0x50]
mov qword [0x14002cde8], rbx
mov r8d, edi
mov qword [rsp + 0x20], r12
lea rdx, [0x14002cdf0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000240d
sub rsi, r14
jne 0x140002140
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [0x14002cde8]
jmp 0x140001f60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x80
lea r8, [0x1400206a0]
mov r9d, eax
lea rcx, [rbp - 0x10]
mov edx, edi
call fcn.140001060
movzx eax, byte [rbp - 0x10]
lea rsi, [rbp - 0x10]
mov word [rbp + 0x70], r12w
lea rbx, [rbp + 0x70]
test al, al
je 0x140002265
nop word [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.140006df8
cmp rax, 1
jne 0x14000242d
mov rax, rdi
mov rcx, rbx
cmp word [rbx], r12w
je 0x14000223d
nop dword [rax]
nop dword [rax + rax]
add rcx, 2
dec rax
cmp word [rcx], r12w
jne 0x140002230
cmp rax, 1
jb 0x14000242d
movzx eax, word [rsp + 0x58]
inc rsi
mov word [rcx], ax
add rbx, 2
dec rdi
mov word [rcx + 2], r12w
movzx eax, byte [rsi]
test al, al
jne 0x1400021f0
lea rdx, [rbp + 0x70]
lea rcx, str.NUITKA_ONEFILE_PARENT
call fcn.1400010c0
call fcn.1400011c0
mov rdx, rax
lea rcx, str.NUITKA_ONEFILE_BINARY
call fcn.1400010c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov ecx, 0xfffffff6
mov dword [rbp - 0x44], pe_nt_image_headers64
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x20], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x40], 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 - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x80], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea rcx, [0x140025de0]
mov rdx, rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000241f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
mov qword [0x140025dd8], rcx
mov dword [rsp + 0x54], r12d
test rcx, rcx
je 0x140002394
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140025dd8]
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002380
mov dword [rsp + 0x54], 1
mov rcx, qword [0x140025dd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140025dd8], r12
call fcn.140001cc0
mov eax, dword [rsp + 0x54]
mov r14, qword [rsp + 0x288]
mov r13, qword [rsp + 0x290]
mov r12, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2c0]
mov rsi, qword [rsp + 0x2b8]
mov r15, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140002450
add rsp, 0x2a0
pop rbp
ret
call fcn.1400019a0
int3
lea rcx, str.TEMPonefile_PID_TIME
call fcn.140001a10
int3
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140001940
int3
call fcn.140001980
int3
call fcn.1400019e0
int3
call fcn.140006ac4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.1400019c0
int3
call fcn.140006ac4
int3