Function at 0x140002980
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 [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 0x140002574
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 0x140002300
mov qword [0x14001e0e8], rax
lea rax, [0x14001d8e0]
movzx ecx, word [rax]
test cx, cx
je 0x140002574
lea rbx, [0x14001b8e0]
xor edi, edi
movzx r8d, word [0x14001e100]
lea rax, [0x14001e100]
mov word [0x14001b8e0], di
mov rdx, rbx
test r8w, r8w
jne 0x140002369
jmp 0x14000237f
cmp rax, r14
je 0x14000a6a2
add rax, 2
mov word [rdx], r8w
add rdx, 2
movzx r8d, word [rax]
test r8w, r8w
jne 0x140002360
xor esi, esi
mov word [rdx], si
cmp word [0x14001b8e0], 0
je 0x140002568
mov edx, 0x1000
lea rax, [0x14001b8e0]
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400023a0
test rdx, rdx
je 0x140002971
movd dword [rax], xmm6
mov edx, 0x1000
cmp word [0x14001b8e0], 0
lea rax, [0x14001b8e0]
je 0x1400023ef
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400023d8
test rdx, rdx
je 0x140002976
lea r8, [0x14001d8e0]
jmp 0x140002409
test rdx, rdx
je 0x14000296c
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002400
xor r11d, r11d
cmp word [0x14001b0e0], 0
mov word [rax], r11w
je 0x140002518
mov rsi, qword [r9 + 2]
add r9, 0xa
mov qword [0x14001e0e8], r9
call fcn.140002050
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 0x140002940
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdi, [0x1400110a0]
lea r12, [rsp + 0x180]
test rsi, rsi
je 0x140002504
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 0x1400028ff
sub rsi, rbx
jne 0x1400024a8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400022d0
movzx ecx, word [0x14001b8e0]
lea rax, [0x14001b8e0]
lea rdx, [0x14001b0e0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x140002549
jmp 0x14000255c
cmp rax, r8
je 0x14000a6a2
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140002540
xor r10d, r10d
mov word [rdx], r10w
jmp 0x140002436
lea rax, [0x14001b8e0]
jmp 0x1400023b7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14000c0aa]
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 0x14000264e
nop word cs:[rax + rax]
cmp word [rdi], 0
mov rax, rbp
mov rbx, rdi
je 0x1400025fe
nop dword [rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400025f0
test rax, rax
je 0x14000a6a2
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 0x14000264e
mov rbp, rdx
jmp 0x1400025e0
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 0x14000269e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140002690
test rax, rax
je 0x14000a6a2
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 0x140002680
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 0x140002748
add rax, 2
cmp word [rax], 0
je 0x140002748
cmp rax, rdx
je 0x14000a6a2
add rax, 2
cmp word [rax], 0
jne 0x140002735
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 0x14000278e
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140002780
test rax, rax
je 0x14000a6a2
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 0x140002770
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 0x14000291d
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 0x1400028d7
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 0x1400028c3
mov dword [rsp + 0xb0], 1
mov rcx, qword [0x1400190a0]
call rbx
mov qword [0x1400190a0], 0
call fcn.140002120
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.140001dd0
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.140001dd0
mov ecx, 2
call sub.msvcrt.dll_exit
nop dword [rax + rax]
mov ecx, 2
call qword [fcn.140009d00]
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 0x14000a6a2
jmp 0x14000a6a2
jmp 0x14000a6a2
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 0x140002a40
mov edx, 1
lea rcx, [0x140002280]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002a5e
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 0x140002a48
cmp dl, 0x41
jne 0x140002a48
cmp r8b, 0x58
jne 0x140002a48
mov byte [0x14001e0e0], 1
add rsp, 0x20
pop rbx
jmp 0x1400022a0
mov rcx, rbx
call fcn.140001da0
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 0x140002aa8
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 0x140002a8a
nop
nop
add rsp, 0x20
pop rbp
ret