Function at 0x1400022c0
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, 0x2b8
movaps xmmword [rsp + 0x2a0], xmm6
movd xmm6, dword [0x14000c274]
lea r14, [0x140020100]
nop word [rax + rax]
mov rax, qword [0x14001e0e8]
lea rdi, [0x14001d8e0]
movzx edx, word [rax]
add rax, 2
mov qword [0x14001e0e8], rax
mov word [rdi], dx
test dx, dx
je 0x14000258a
mov rdx, rdi
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 0x140002320
mov qword [0x14001e0e8], rax
lea rax, [0x14001d8e0]
movzx ecx, word [rax]
test cx, cx
je 0x14000258a
movzx r8d, word [0x14001e100]
lea rbx, [0x14001b8e0]
xor r12d, r12d
lea rax, [0x14001e100]
mov word [0x14001b8e0], r12w
mov rdx, rbx
test r8w, r8w
jne 0x140002389
jmp 0x14000239f
cmp rax, r14
je 0x14000a852
add rax, 2
mov word [rdx], r8w
add rdx, 2
movzx r8d, word [rax]
test r8w, r8w
jne 0x140002380
xor ebp, ebp
mov word [rdx], bp
cmp word [0x14001b8e0], 0
je 0x14000257e
mov edx, 0x1000
lea rax, [0x14001b8e0]
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400023c0
test rdx, rdx
je 0x1400029e1
movd dword [rax], xmm6
mov edx, 0x1000
cmp word [0x14001b8e0], 0
lea rax, [0x14001b8e0]
je 0x14000240f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400023f8
test rdx, rdx
je 0x1400029e6
lea r8, [0x14001d8e0]
jmp 0x140002429
test rdx, rdx
je 0x1400029dc
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002420
xor edi, edi
cmp word [0x14001b0e0], 0
mov word [rax], di
je 0x140002530
mov rsi, qword [r9 + 2]
add r9, 0xa
mov qword [0x14001e0e8], r9
call fcn.140002070
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rbx
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 rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400029b0
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdi, [0x1400110a0]
lea r12, [rsp + 0x1a0]
test rsi, rsi
je 0x14000251c
mov ebx, 0x8000
mov r15, qword [0x14001e0e8]
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, r15
mov r8, rbx
call sub.msvcrt.dll_memcpy
lea rdx, [r15 + rbx]
mov r9, r12
mov r8d, ebx
mov qword [0x14001e0e8], rdx
mov rcx, rbp
mov rdx, rdi
mov dword [rsp + 0x1a0], 0
mov qword [rsp + 0x20], 0
call r13
test eax, eax
je 0x140002973
sub rsi, rbx
jne 0x1400024c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022f0
movzx ecx, word [0x14001b8e0]
lea rax, [0x14001b8e0]
lea rdx, [0x14001b0e0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x140002561
jmp 0x140002574
cmp rax, r8
je 0x14000a852
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140002558
xor esi, esi
mov word [rdx], si
jmp 0x140002454
lea rax, [0x14001b8e0]
jmp 0x1400023d7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14000c0aa]
mov edx, pe_nt_image_headers64
xor ebx, ebx
mov r9d, eax
lea rax, [rsp + 0x120]
mov rcx, rax
mov qword [rsp + 0x58], rax
call fcn.140001700
movzx eax, byte [rsp + 0x120]
mov word [rsp + 0x1a0], bx
test al, al
je 0x140002666
mov r13d, pe_nt_image_headers64
lea rbp, [rsp + 0x6e]
lea rdi, [rsp + 0x74]
mov esi, 1
lea r12, [rsp + 0x1a0]
mov rbx, r12
nop
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
mov byte [rsp + 0x6e], al
mov byte [rsp + 0x6f], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14000a852
cmp word [rbx], 0
movzx ecx, word [rsp + 0x74]
mov rdx, r13
mov rax, rbx
je 0x140002636
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002628
test rdx, rdx
je 0x14000a852
xor r10d, r10d
mov word [rax], cx
add rbx, 2
lea rdx, [r13 - 1]
mov word [rax + 2], r10w
mov rax, rsi
sub rax, r13
movzx eax, byte [r12 + rax]
test al, al
je 0x140002666
mov r13, rdx
jmp 0x1400025f0
xor r11d, r11d
mov eax, 0x4e
lea rbp, [rsp + 0x70]
mov word [rsp + 0x80], r11w
lea rsi, str.NUITKA_ONEFILE_PARENT
lea rdi, [rsp + 0x78]
lea r13, [rsp + 0x80]
lea r12, [rsi + 0x28]
mov r15, r13
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x70], al
mov byte [rsp + 0x71], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14000a852
cmp word [r15], 0
movzx edx, word [rsp + 0x78]
mov rax, r15
je 0x1400026ee
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400026e0
test rbx, rbx
je 0x14000a852
xor r9d, r9d
add rsi, 1
mov word [rax], dx
add r15, 2
mov word [rax + 2], r9w
movzx eax, byte [rsi]
test al, al
jne 0x1400026a0
mov rax, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea r12, [rsp + 0x1a0]
mov rcx, r13
mov rdx, r12
mov qword [rsp + 0x50], rax
call rax
lea rdx, [0x1400190c0]
xor ecx, ecx
mov r8d, 0x1001
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [0x1400190c0]
cmp word [0x1400190c0], 0
lea rdx, [rax + 0x2002]
je 0x140002777
add rax, 2
cmp word [rax], 0
je 0x140002777
cmp rax, rdx
je 0x14000a852
add rax, 2
cmp word [rax], 0
jne 0x140002764
xor r8d, r8d
lea rdi, [rsp + 0x72]
lea rsi, [rsp + 0x7c]
xor ecx, ecx
mov word [rsp + 0xd0], r8w
lea r15, str.NUITKA_ONEFILE_BINARY
lea rbx, [rsp + 0xd0]
mov word [rax], cx
mov r14, rbx
mov eax, 0x4e
lea rbp, [r15 + 0x28]
nop dword [rax]
mov r13, rbp
mov r8d, 2
mov rdx, rdi
mov rcx, rsi
sub r13, r15
mov byte [rsp + 0x72], al
mov byte [rsp + 0x73], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14000a852
cmp word [r14], 0
movzx edx, word [rsp + 0x7c]
mov rax, r14
je 0x1400027fe
nop dword [rax]
add rax, 2
sub r13, 1
cmp word [rax], 0
jne 0x1400027f0
test r13, r13
je 0x14000a852
mov word [rax], dx
add r15, 1
xor edx, edx
add r14, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1400027b0
lea rdx, [0x1400190c0]
mov rcx, rbx
mov rax, qword [rsp + 0x50]
mov rdi, r12
call rax
xor eax, eax
mov ecx, 0xd
mov rsi, qword [sym.imp.KERNEL32.dll_GetStdHandle]
rep stosq qword [rdi], rax
mov ecx, 0xfffffff6
mov dword [rsp + 0x1dc], 0x100
call rsi
mov ecx, 0xfffffff5
mov qword [rsp + 0x1f0], rax
call rsi
mov ecx, 0xfffffff4
mov qword [rsp + 0x1f8], rax
call rsi
mov dword [rsp + 0x1a0], 0x68
mov qword [rsp + 0x200], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], r12
mov rdx, rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], 0
lea rcx, [0x14001b0e0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002991
mov rcx, qword [rsp + 0x128]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x120]
mov dword [rsp + 0xd0], 0
mov qword [0x1400190a0], rcx
test rcx, rcx
je 0x14000294b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400190a0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002937
mov dword [rsp + 0xd0], 1
mov rcx, qword [0x1400190a0]
call rsi
mov qword [0x1400190a0], 0
call fcn.140002140
mov eax, dword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0x2a0]
add rsp, 0x2b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.140001df0
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.140001df0
mov ecx, 2
call sub.msvcrt.dll_exit
nop
mov ecx, 2
call qword [fcn.140009ea0]
lea r8, [0x14001b8e0]
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
nop
jmp 0x14000a852
jmp 0x14000a852
jmp 0x14000a852
push rbx
sub rsp, 0x20
lea rbx, str.TEMPonefile_PID_TIME
mov r8d, 0x1000
lea rcx, [0x14001e100]
mov rdx, rbx
call fcn.140001720
test al, al
je 0x140002ab0
mov edx, 1
lea rcx, [0x1400022a0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002ace
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 [0x14001e0e8], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rax, qword [0x14001e0e8]
lea rcx, [rax + 3]
cmp byte [rax], 0x4b
movzx edx, byte [rax + 1]
mov qword [0x14001e0e8], rcx
movzx r8d, byte [rax + 2]
jne 0x140002ab8
cmp dl, 0x41
jne 0x140002ab8
cmp r8b, 0x58
jne 0x140002ab8
mov byte [0x14001e0e0], 1
add rsp, 0x20
pop rbx
jmp 0x1400022c0
mov rcx, rbx
call fcn.140001dc0
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 0x140002b18
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 0x140002afa
nop
nop
add rsp, 0x20
pop rbp
ret