Function at 0x140002400
Capabilities:
Accept command line arguments
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x318
mov r12d, dword [0x14000c2f4]
lea rbx, [0x1400278c0]
lea rsi, [0x1400278c0]
nop dword [rax + rax]
mov rax, qword [0x1400280c8]
movzx edx, word [rax]
add rax, 2
mov qword [0x1400280c8], rax
mov word [rbx], dx
test dx, dx
je 0x140002695
lea rdx, [0x1400278c0]
nop dword [rax + rax]
movzx ecx, word [rax]
add rdx, 2
mov r9, rax
lea rax, [rax + 2]
mov word [rdx], cx
test cx, cx
jne 0x140002460
movzx ecx, word [rbx]
mov qword [0x1400280c8], rax
test cx, cx
je 0x140002695
movzx edx, word [0x1400280e0]
lea rdi, [0x1400258c0]
xor r13d, r13d
lea r8, [0x1400280e0]
mov word [0x1400258c0], r13w
mov rax, rdi
test dx, dx
jne 0x1400024c1
jmp 0x1400024d5
cmp rax, rsi
je 0x14000ad12
add r8, 2
mov word [rax], dx
add rax, 2
movzx edx, word [r8]
test dx, dx
jne 0x1400024b8
xor ebp, ebp
mov word [rax], bp
cmp word [0x1400258c0], 0
je 0x140002689
mov edx, 0x1000
lea rax, [0x1400258c0]
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400024f8
test rdx, rdx
je 0x140002e92
mov dword [rax], r12d
cmp word [0x1400258c0], 0
je 0x140002678
mov edx, 0x1000
lea rax, [0x1400258c0]
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002530
test rdx, rdx
je 0x140002e8d
lea r8, [0x1400278c0]
jmp 0x140002559
test rdx, rdx
je 0x140002e88
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002550
xor r11d, r11d
cmp word [0x1400250c0], 0
mov word [rax], r11w
je 0x140002623
mov rbp, qword [r9 + 2]
add r9, 0xa
mov qword [0x1400280c8], r9
call fcn.1400021b0
mov rcx, rdi
xor r9d, r9d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
mov r8d, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002e34
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rcx, rax
mov rdx, qword [0x1400280c8]
mov dword [rsp + 0x210], 0
lea r9, [rsp + 0x210]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002e16
add qword [0x1400280c8], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002430
movzx edx, word [0x1400258c0]
lea rax, [0x1400250c0]
lea rcx, [0x1400258c0]
lea r8, [rax + 0x2000]
test dx, dx
jne 0x140002659
jmp 0x14000266c
cmp rax, r8
je 0x14000ad12
add rcx, 2
mov word [rax], dx
add rax, 2
movzx edx, word [rcx]
test dx, dx
jne 0x140002650
xor r10d, r10d
mov word [rax], r10w
jmp 0x140002586
lea rax, [0x1400258c0]
mov edx, 0x1000
jmp 0x140002547
lea rax, [0x1400258c0]
jmp 0x14000250f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rbp, [rsp + 0x190]
mov edx, pe_nt_image_headers64
lea r8, [0x14000c0e8]
mov r9d, eax
mov rcx, rbp
call fcn.140001700
movzx eax, byte [rsp + 0x190]
xor r9d, r9d
mov word [rsp + 0x210], r9w
test al, al
je 0x14000276b
mov r14d, pe_nt_image_headers64
lea r13, [rsp + 0x6a]
lea r12, [rsp + 0x74]
mov edi, 1
lea rsi, [rsp + 0x210]
mov rbx, rsi
mov r8d, 2
mov rdx, r13
mov rcx, r12
mov byte [rsp + 0x6a], al
mov byte [rsp + 0x6b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14000ad12
cmp word [rbx], 0
movzx ecx, word [rsp + 0x74]
mov rdx, r14
mov rax, rbx
je 0x14000273e
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002730
test rdx, rdx
je 0x14000ad12
mov word [rax], cx
xor ecx, ecx
add rbx, 2
lea rdx, [r14 - 1]
mov word [rax + 2], cx
mov rax, rdi
sub rax, r14
movzx eax, byte [rsi + rax]
test al, al
je 0x14000276b
mov r14, rdx
jmp 0x1400026f6
xor r8d, r8d
mov eax, 0x4e
lea r12, [rsp + 0x6c]
mov word [rsp + 0xd0], r8w
lea r15, str.NUITKA_ONEFILE_PARENT
lea rdi, [rsp + 0x78]
lea r13, [rsp + 0xd0]
lea r14, [r15 + 0x28]
mov rsi, r13
mov rbx, r14
mov r8d, 2
mov rdx, r12
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x6c], al
mov byte [rsp + 0x6d], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14000ad12
cmp word [rsi], 0
movzx edx, word [rsp + 0x78]
mov rax, rsi
je 0x1400027e6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400027d8
test rbx, rbx
je 0x14000ad12
mov word [rax], dx
add r15, 1
xor edx, edx
add rsi, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14000279c
mov rax, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rsi, [rsp + 0x210]
mov rcx, r13
mov rdx, rsi
mov qword [rsp + 0x58], rax
call rax
cmp word [0x1400230a0], 0
je 0x140002dc0
lea rax, [rsp + 0x80]
xor ebx, ebx
lea rdi, [rsp + 0x6e]
lea r14, str.NUITKA_ONEFILE_BINARY
mov word [rsp + 0x80], bx
mov r15, rax
lea rbx, [rsp + 0x7c]
mov qword [rsp + 0x50], rax
lea r12, [r14 + 0x28]
mov eax, 0x4e
mov r13, r12
mov r8d, 2
mov rdx, rdi
mov rcx, rbx
sub r13, r14
mov byte [rsp + 0x6e], al
mov byte [rsp + 0x6f], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14000ad12
cmp word [r15], 0
movzx edx, word [rsp + 0x7c]
mov rax, r15
je 0x1400028ae
nop
add rax, 2
sub r13, 1
cmp word [rax], 0
jne 0x1400028a0
test r13, r13
je 0x14000ad12
xor r11d, r11d
add r14, 1
mov word [rax], dx
add r15, 2
mov word [rax + 2], r11w
movzx eax, byte [r14]
test al, al
jne 0x140002866
lea rdx, [0x1400230a0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
lea rdi, [rsp + 0x120]
call rax
xor eax, eax
mov ecx, 0xd
mov rbx, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x50], rdi
rep stosq qword [rdi], rax
mov ecx, 0xfffffff6
mov dword [rsp + 0x15c], 0x100
call rbx
mov ecx, 0xfffffff5
mov qword [rsp + 0x170], rax
call rbx
mov ecx, 0xfffffff4
mov qword [rsp + 0x178], rax
call rbx
lea rbx, [0x1400110a0]
mov dword [rsp + 0x120], 0x68
mov qword [rsp + 0x180], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor r10d, r10d
xor ecx, ecx
mov r8d, 0x1000
mov word [0x1400130a0], r10w
mov rdi, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000ad12
mov r9d, dword [rsp + 0x70]
mov qword [rdi], rbx
xor ebx, ebx
lea r13, [0x1400130a0]
mov r15d, dword [0x14000c2f4]
test r9d, r9d
jle 0x140002c0c
test ebx, ebx
jg 0x140002d6f
mov r14, qword [rdi + rbx*8]
lea r12, str.__t_n_v_
mov edx, 0x20
jmp 0x1400029db
movzx edx, word [r12 + 2]
add r12, 2
test dx, dx
je 0x140002b96
mov rcx, r14
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x1400029c8
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400130a0]
je 0x140002a17
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002a00
test rdx, rdx
je 0x14000ad12
mov r11d, dword [0x14000c2f8]
mov rcx, qword [rdi + rbx*8]
mov dword [rax], r11d
movzx edx, word [rcx]
cmp dx, 0x5c
jne 0x140002b13
nop word [rax + rax]
xor eax, eax
nop word [rax + rax]
mov r10, rcx
movzx edx, word [rcx + 2]
add rcx, 2
mov r9d, eax
add eax, 1
cmp dx, 0x5c
je 0x140002a40
test dx, dx
je 0x140002ce9
cmp dx, 0x22
je 0x140002b2a
xor r8d, r8d
test eax, eax
jle 0x140002ac5
nop dword [rax]
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400130a0]
je 0x140002aa7
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002a90
test rdx, rdx
je 0x14000ad12
mov dword [rax], r15d
lea eax, [r8 + 1]
cmp r8d, r9d
je 0x140002ac0
mov r8d, eax
jmp 0x140002a78
movzx edx, word [r10 + 2]
cmp word [r13], 0
je 0x140002b8a
mov r8d, 0x8000
lea rax, [0x1400130a0]
nop
add rax, 2
sub r8, 1
cmp word [rax], 0
jne 0x140002ae0
test r8, r8
je 0x140002e83
xor r8d, r8d
add rcx, 2
mov word [rax], dx
mov word [rax + 2], r8w
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x140002a38
test dx, dx
je 0x140002d3b
cmp dx, 0x22
jne 0x140002ac5
mov r9d, 1
jmp 0x140002b34
lea r9d, [rax + rax + 1]
test r9d, r9d
jle 0x140002ac5
xor r8d, r8d
nop word [rax + rax]
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400130a0]
je 0x140002b6f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002b58
test rdx, rdx
je 0x14000ad12
add r8d, 1
mov dword [rax], r15d
cmp r8d, r9d
jne 0x140002b40
cmp word [r13], 0
movzx edx, word [rcx]
jne 0x140002ad1
lea rax, [0x1400130a0]
jmp 0x140002af7
mov r8, qword [rdi + rbx*8]
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400130a0]
movzx ecx, word [r8]
je 0x140002db2
nop word cs:[rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002bc0
test cx, cx
je 0x140002bf9
nop dword [rax + rax]
test rdx, rdx
je 0x14000ad12
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002bd8
xor edx, edx
mov word [rax], dx
add rbx, 1
cmp dword [rsp + 0x70], ebx
jg 0x1400029a9
mov rax, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], 0
mov rdx, r13
lea rcx, [0x1400250c0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002e5f
mov rcx, qword [rsp + 0x218]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x210]
mov dword [rsp + 0x190], 0
mov qword [0x1400250a8], rcx
test rcx, rcx
je 0x140002cc9
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400250a8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002cb5
mov dword [rsp + 0x190], 1
mov rcx, qword [0x1400250a8]
call rbx
mov qword [0x1400250a8], 0
call fcn.140002280
mov eax, dword [rsp + 0x190]
add rsp, 0x318
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add eax, eax
test eax, eax
jle 0x140002d3b
mov r9d, dword [0x14000c2f4]
xor r8d, r8d
nop dword [rax]
cmp word [r13], 0
mov ecx, 0x8000
lea rdx, [0x1400130a0]
je 0x140002d2f
nop dword [rax]
add rdx, 2
sub rcx, 1
cmp word [rdx], 0
jne 0x140002d18
test rcx, rcx
je 0x14000ad12
add r8d, 1
mov dword [rdx], r9d
cmp r8d, eax
jne 0x140002d00
cmp word [r13], 0
mov edx, 0x8000
lea rax, [0x1400130a0]
je 0x140002d67
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002d50
test rdx, rdx
je 0x14000ad12
mov dword [rax], r11d
jmp 0x140002bfe
cmp word [r13], 0
je 0x140002e0d
mov edx, 0x8000
lea rax, [0x1400130a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002d90
test rdx, rdx
je 0x140002e7e
mov dword [rax], 0x20
jmp 0x1400029b1
test cx, cx
jne 0x140002be1
jmp 0x140002bf9
lea rdx, [0x1400230a0]
xor ecx, ecx
mov r8d, 0x1001
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [0x1400230a0]
cmp word [0x1400230a0], 0
lea rdx, [rax + 0x2002]
jne 0x140002df9
jmp 0x140002e03
cmp rax, rdx
je 0x14000ad12
add rax, 2
cmp word [rax], 0
jne 0x140002df0
xor edi, edi
mov word [rax], di
jmp 0x140002832
lea rax, [0x1400130a0]
jmp 0x140002da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.140001f30
mov ecx, 2
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.14000a350]
lea r8, [0x1400258c0]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.1400016d0
mov ecx, 2
call sub.msvcrt.dll_exit
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
mov edx, eax
call fcn.140001f30
mov ecx, 2
call sub.msvcrt.dll_exit
nop
jmp 0x14000ad12
jmp 0x14000ad12
jmp 0x14000ad12
jmp 0x14000ad12
jmp 0x14000ad12
push rbx
sub rsp, 0x20
lea rbx, str.TEMPonefile_PID_TIME
mov r8d, 0x1000
lea rcx, [0x1400280e0]
mov rdx, rbx
call fcn.140001720
test al, al
je 0x140002f60
mov edx, 1
lea rcx, [0x1400023e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002f7e
mov r8d, 0xa
xor ecx, ecx
mov edx, 0x1b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov rdx, rbx
mov qword [0x1400280c8], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rax, qword [0x1400280c8]
lea rcx, [rax + 3]
cmp byte [rax], 0x4b
movzx edx, byte [rax + 1]
mov qword [0x1400280c8], rcx
movzx r8d, byte [rax + 2]
jne 0x140002f68
cmp dl, 0x41
jne 0x140002f68
cmp r8b, 0x58
jne 0x140002f68
mov byte [0x1400280c0], 1
add rsp, 0x20
pop rbx
jmp 0x140002400
mov rcx, rbx
call fcn.140001f00
lea rcx, str.Error__couldnt_find_attached_data_header.
call sub.msvcrt.dll_puts
mov ecx, 2
call sub.msvcrt.dll_exit
lea rcx, str.Error__failed_to_register_signal_handler.
call sub.msvcrt.dll_puts
mov ecx, 2
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
sub rsp, 0x20
jmp 0x140002fc8
mov rax, qword [0x14000b010]
mov rax, qword [rax]
call rax
mov rax, qword [0x14000b010]
add rax, 8
mov qword [0x14000b010], rax
mov rax, qword [0x14000b010]
mov rax, qword [rax]
test rax, rax
jne 0x140002faa
nop
nop
add rsp, 0x20
pop rbp
ret