Function at 0x140002ac0
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
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, 0x298
movaps xmmword [rsp + 0x280], xmm6
movd xmm6, dword [0x14000c2dc]
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 0x1400026b4
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 0x140002440
mov qword [0x14001e0e8], rax
lea rax, [0x14001d8e0]
movzx ecx, word [rax]
test cx, cx
je 0x1400026b4
lea rbx, [0x14001b8e0]
xor edi, edi
movzx r8d, word [0x14001e100]
lea rax, [0x14001e100]
mov word [0x14001b8e0], di
mov rdx, rbx
test r8w, r8w
jne 0x1400024a9
jmp 0x1400024bf
cmp rax, r14
je 0x14000a912
add rax, 2
mov word [rdx], r8w
add rdx, 2
movzx r8d, word [rax]
test r8w, r8w
jne 0x1400024a0
xor esi, esi
mov word [rdx], si
cmp word [0x14001b8e0], 0
je 0x1400026a8
mov edx, 0x1000
lea rax, [0x14001b8e0]
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400024e0
test rdx, rdx
je 0x140002ab1
movd dword [rax], xmm6
mov edx, 0x1000
cmp word [0x14001b8e0], 0
lea rax, [0x14001b8e0]
je 0x14000252f
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002518
test rdx, rdx
je 0x140002ab6
lea r8, [0x14001d8e0]
jmp 0x140002549
test rdx, rdx
je 0x140002aac
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002540
xor r11d, r11d
cmp word [0x14001b0e0], 0
mov word [rax], r11w
je 0x140002658
mov rsi, qword [r9 + 2]
add r9, 0xa
mov qword [0x14001e0e8], r9
call fcn.140002190
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 0x140002a80
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdi, [0x1400110a0]
lea r12, [rsp + 0x180]
test rsi, rsi
je 0x140002644
nop word [rax + rax]
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 + 0x180], 0
mov qword [rsp + 0x20], 0
call r13
test eax, eax
je 0x140002a3f
sub rsi, rbx
jne 0x1400025e8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002410
movzx ecx, word [0x14001b8e0]
lea rax, [0x14001b8e0]
lea rdx, [0x14001b0e0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x140002689
jmp 0x14000269c
cmp rax, r8
je 0x14000a912
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140002680
xor r10d, r10d
mov word [rdx], r10w
jmp 0x140002576
lea rax, [0x14001b8e0]
jmp 0x1400024f7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14000c0e6]
mov edx, pe_nt_image_headers64
lea r12, [rsp + 0x180]
mov r9d, eax
mov ebp, pe_nt_image_headers64
lea rax, [rsp + 0x100]
mov rdi, r12
mov rcx, rax
mov qword [rsp + 0x58], rax
lea r14, [rsp + 0xb0]
mov r13d, 1
call fcn.140001700
xor r9d, r9d
movzx r15d, byte [rsp + 0x100]
mov word [rsp + 0x180], r9w
test r15b, r15b
je 0x14000278e
nop word cs:[rax + rax]
cmp word [rdi], 0
mov rax, rbp
mov rbx, rdi
je 0x14000273e
nop dword [rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140002730
test rax, rax
je 0x14000a912
mov rcx, rbx
add rdi, 2
call sub.msvcrt.dll_wcslen
mov rdx, r14
mov r8d, 2
mov byte [rsp + 0xb0], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0xb1], 0
call sub.msvcrt.dll_mbstowcs
mov rax, r13
lea rdx, [rbp - 1]
sub rax, rbp
movzx r15d, byte [r12 + rax]
test r15b, r15b
je 0x14000278e
mov rbp, rdx
jmp 0x140002720
xor r8d, r8d
lea r12, str.NUITKA_ONEFILE_PARENT
lea r13, [rsp + 0x60]
mov r15d, 0x4e
mov word [rsp + 0x60], r8w
mov rdi, r13
lea r14, [r12 + 0x28]
lea rbp, [rsp + 0xb0]
nop dword [rax]
mov rax, r14
mov rbx, rdi
sub rax, r12
cmp word [rdi], 0
je 0x1400027de
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400027d0
test rax, rax
je 0x14000a912
mov rcx, rbx
add r12, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0xb0], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0xb1], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [r12]
test r15b, r15b
jne 0x1400027c0
mov rax, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r13
lea r12, [rsp + 0x180]
lea r13, [0x1400190c0]
mov rdx, r12
mov qword [rsp + 0x50], rax
call rax
mov rdx, r13
xor ecx, ecx
mov r8d, 0x1001
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x1400190c0], 0
mov rax, r13
lea rdx, [r13 + 0x2002]
je 0x140002888
add rax, 2
cmp word [rax], 0
je 0x140002888
cmp rax, rdx
je 0x14000a912
add rax, 2
cmp word [rax], 0
jne 0x140002875
xor edx, edx
xor ecx, ecx
lea r14, str.NUITKA_ONEFILE_BINARY
mov r15, rbp
mov word [rax], dx
mov esi, 0x4e
lea rdi, [r14 + 0x28]
mov word [rsp + 0xb0], cx
nop word [rax + rax]
mov rax, rdi
mov rbx, r15
sub rax, r14
cmp word [r15], 0
je 0x1400028ce
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400028c0
test rax, rax
je 0x14000a912
mov rcx, rbx
add r14, 1
add r15, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x180], sil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x181], 0
call sub.msvcrt.dll_mbstowcs
movzx esi, byte [r14]
test sil, sil
jne 0x1400028b0
mov rdx, r13
mov rcx, rbp
mov rax, qword [rsp + 0x50]
lea rdi, [rsp + 0x188]
call rax
xor eax, eax
mov ecx, 0xc
mov qword [rsp + 0x184], 0
mov qword [rsp + 0x1e0], 0
rep stosq qword [rdi], rax
mov dword [rsp + 0x180], 0x68
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], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002a5d
mov rcx, qword [rsp + 0x108]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x100]
mov dword [rsp + 0xb0], 0
mov qword [0x1400190a0], rcx
test rcx, rcx
je 0x140002a17
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400190a0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002a03
mov dword [rsp + 0xb0], 1
mov rcx, qword [0x1400190a0]
call rbx
mov qword [0x1400190a0], 0
call fcn.140002260
mov eax, dword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
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.140001f10
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.140001f10
mov ecx, 2
call sub.msvcrt.dll_exit
nop dword [rax + rax]
mov ecx, 2
call qword [fcn.140009f70]
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 0x14000a912
jmp 0x14000a912
jmp 0x14000a912
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 0x140002b80
mov edx, 1
lea rcx, [0x1400023c0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002b9e
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 0x140002b88
cmp dl, 0x41
jne 0x140002b88
cmp r8b, 0x58
jne 0x140002b88
mov byte [0x14001e0e0], 1
add rsp, 0x20
pop rbx
jmp 0x1400023e0
mov rcx, rbx
call fcn.140001ee0
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 0x140002be8
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 0x140002bca
nop
nop
add rsp, 0x20
pop rbp
ret