Function at 0x14001c000
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, 0x2c8
movaps xmmword [rsp + 0x2a0], xmm6
movaps xmmword [rsp + 0x2b0], xmm7
lea rbx, str.TEMPonefile_PID_TIME
mov r8d, 0x1000
lea rcx, [0x140042100]
mov rdx, rbx
call fcn.14001b170
test al, al
je 0x14001c96a
mov edx, 1
lea rcx, [0x140003700]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14001c99c
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 [0x140044148], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x140044148]
mov qword [0x140044140], rsi
cmp byte [rax + 1], 0x41
lea rdi, [rax + 3]
movzx ecx, byte [rax + 2]
setne dl
cmp byte [rax], 0x4b
mov qword [0x140044148], rdi
setne al
or dl, al
jne 0x14001c990
cmp cl, 0x59
jne 0x14001c990
mov qword [0x140044120], 0
mov ecx, 0x20000
call sub.msvcrt.dll_malloc
mov qword [0x140044100], rax
test rax, rax
je 0x14001c95e
mov ecx, 0x274b8
call sub.msvcrt.dll_malloc
mov r8, rax
test rax, rax
je 0x14001c953
mov qword [rax + 0x73b0], 0
pxor xmm0, xmm0
mov qword [rax + 0x73c8], 0
mov qword [rax + 0x72d8], 0
mov qword [rax + 0x73ec], 0
mov qword [rax + 0x73f8], 0
mov qword [rax + 0x7400], 0
mov qword [rax + 0x7420], 0
mov dword [rax + 0x73f4], 0
mov qword [rax + 0x7440], 0
mov dword [rax + 0x7448], 0
mov dword [rax + 0x7454], 0
mov qword [rax + 0x274b0], 0
movups xmmword [rax + 0x73a0], xmm0
movups xmmword [rax + 0x73d8], xmm0
xor eax, eax
cpuid
xor ecx, ecx
cmp eax, 6
ja 0x14001c593
lea rax, [rsp + 0x1a0]
mov dword [r8 + 0x73d0], ecx
movdqa xmm6, xmmword [0x14002a240]
mov qword [r8 + 0x7410], 0x8000001
movd xmm7, dword [0x14002a250]
mov dword [r8 + 0x7458], 0
mov qword [r8 + 0x7388], 0
mov dword [r8 + 0x7390], 1
mov qword [0x140044138], r8
mov qword [0x140044120], rdi
mov qword [0x140044130], 0
mov qword [0x140044128], rsi
mov byte [0x1400420e0], 1
mov qword [rsp + 0x58], rax
mov rbx, qword [0x140044108]
mov rsi, qword [0x140044110]
lea r15, [0x1400390c0]
lea r12, [0x140044100]
nop word [rax + rax]
mov rbp, qword [rsp + 0x58]
xor r14d, r14d
mov edi, 2
lea r13, [0x140044120]
nop dword [rax]
mov r8, rbx
sub r8, rsi
jne 0x14001c2da
mov rcx, qword [0x140044130]
mov rdx, qword [0x140044128]
cmp rcx, rdx
setb al
or r14b, al
je 0x14001c330
mov rcx, qword [0x140044138]
mov r8, r13
mov rdx, r12
movups xmmword [0x140044108], xmm6
call fcn.140018030
mov rbx, qword [0x140044110]
cmp qword [0x140044108], rbx
sete r14b
cmp rax, 0xffffffffffffff88
ja 0x14001c339
xor esi, esi
mov r8, rbx
mov qword [0x140044108], rbx
mov qword [0x140044110], 0
sub r8, rsi
je 0x14001c270
cmp rdi, r8
mov rdx, qword [r12]
mov rcx, rbp
cmovbe r8, rdi
add rdx, rsi
mov qword [rsp + 0x50], r8
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x50]
add rsi, r8
add rbp, r8
mov qword [0x140044110], rsi
sub rdi, r8
jne 0x14001c268
movzx eax, word [rsp + 0x1a0]
mov word [r15], ax
test ax, ax
je 0x14001c345
add r15, 2
jmp 0x14001c250
cmp rcx, rdx
je 0x14001c268
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.1400020e0
lea rax, [0x1400390c0]
movzx ecx, word [rax]
test cx, cx
je 0x14001c5a7
lea rax, [0x140042100]
lea rbx, [0x14003a0c0]
xor r12d, r12d
movzx edx, word [rax]
mov word [0x14003a0c0], r12w
mov rax, rbx
lea r8, [0x140042100]
lea r9, [rbx + 0x2000]
test dx, dx
jne 0x14001c399
jmp 0x14001c3ad
cmp rax, r9
je 0x1400247e4
add r8, 2
mov word [rax], dx
add rax, 2
movzx edx, word [r8]
test dx, dx
jne 0x14001c390
xor ebp, ebp
mov word [rax], bp
cmp word [0x14003a0c0], 0
je 0x14001c587
mov edx, 0x1000
lea rax, [0x14003a0c0]
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c3d0
test rdx, rdx
je 0x14001ca04
movd dword [rax], xmm7
cmp word [0x14003a0c0], 0
je 0x14001c576
mov edx, 0x1000
lea rax, [0x14003a0c0]
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c408
test rdx, rdx
je 0x14001c9ff
lea r8, [0x1400390c0]
jmp 0x14001c439
test rdx, rdx
je 0x14001c9fa
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14001c430
xor edi, edi
cmp word [0x1400398c0], 0
mov word [rax], di
je 0x14001c52d
mov rcx, qword [rsp + 0x58]
mov edx, 8
call fcn.140018bd0
mov rsi, qword [rsp + 0x1a0]
call fcn.14001bb60
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 r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001c9ce
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x58]
lea rbp, [0x1400310c0]
test rsi, rsi
je 0x14001c51f
nop dword [rax]
mov ebx, 0x8000
mov rcx, rbp
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call fcn.140018bd0
mov r9, rdi
mov r8d, ebx
mov rdx, rbp
mov dword [rsp + 0x1a0], 0
mov rcx, r12
mov qword [rsp + 0x20], 0
call r13
test eax, eax
je 0x14001c9b0
sub rsi, rbx
jne 0x14001c4d8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001c22e
movzx ecx, word [0x14003a0c0]
lea rax, [0x14003a0c0]
lea rdx, [0x1400398c0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x14001c559
jmp 0x14001c56c
cmp rax, r8
je 0x1400247e4
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14001c550
xor esi, esi
mov word [rdx], si
jmp 0x14001c464
lea rax, [0x14003a0c0]
mov edx, 0x1000
jmp 0x14001c41f
lea rax, [0x14003a0c0]
jmp 0x14001c3e7
mov eax, 7
cpuid
shr ebx, 8
mov ecx, ebx
and ecx, 1
jmp 0x14001c1b7
mov rcx, qword [0x140044138]
lea rbx, [rsp + 0x120]
call fcn.140012930
mov rcx, qword [0x140044100]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x140026e96]
mov edx, pe_nt_image_headers64
mov rcx, rbx
mov r9d, eax
call fcn.140002060
movzx eax, byte [rsp + 0x120]
xor r11d, r11d
mov word [rsp + 0x1a0], r11w
test al, al
je 0x14001c692
mov rsi, qword [rsp + 0x58]
mov edi, pe_nt_image_headers64
lea r14, [rsp + 0x6e]
lea r13, [rsp + 0x74]
mov ebp, 1
mov r8d, 2
mov rdx, r14
mov rcx, r13
mov byte [rsp + 0x6e], al
mov byte [rsp + 0x6f], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400247e4
cmp word [rsi], 0
movzx ecx, word [rsp + 0x74]
mov rdx, rdi
mov rax, rsi
je 0x14001c65e
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c650
test rdx, rdx
je 0x1400247e4
xor r9d, r9d
mov word [rax], cx
lea rdx, [rdi - 1]
add rsi, 2
mov word [rax + 2], r9w
mov rax, rbp
sub rax, rdi
mov rdi, qword [rsp + 0x58]
movzx eax, byte [rdi + rax]
test al, al
je 0x14001c692
mov rdi, rdx
jmp 0x14001c619
xor r10d, r10d
mov eax, 0x4e
lea r15, [rsp + 0x70]
mov word [rsp + 0x80], r10w
lea rbp, str.NUITKA_ONEFILE_PARENT
lea r14, [rsp + 0x78]
lea rsi, [rsp + 0x80]
lea r13, [rbp + 0x28]
mov rdi, rsi
mov r12, r13
mov r8d, 2
mov rdx, r15
mov rcx, r14
sub r12, rbp
mov byte [rsp + 0x70], al
mov byte [rsp + 0x71], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400247e4
cmp word [rdi], 0
movzx edx, word [rsp + 0x78]
mov rax, rdi
je 0x14001c70e
nop dword [rax + rax]
add rax, 2
sub r12, 1
cmp word [rax], 0
jne 0x14001c700
test r12, r12
je 0x1400247e4
xor r8d, r8d
add rbp, 1
mov word [rax], dx
add rdi, 2
mov word [rax + 2], r8w
movzx eax, byte [rbp]
test al, al
jne 0x14001c6c3
mov rdi, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rsi
mov rdx, qword [rsp + 0x58]
lea rbp, [rsp + 0xd0]
call rdi
xor ecx, ecx
lea r15, [rsp + 0x7c]
lea r14, str.NUITKA_ONEFILE_BINARY
call fcn.140002230
xor ecx, ecx
mov rsi, rbp
mov eax, 0x4e
mov word [rsp + 0xd0], cx
lea r12, [r14 + 0x28]
mov rcx, r15
lea r13, [rsp + 0x72]
mov r15, rbp
mov rbp, rdi
mov rdi, rbx
mov rbx, r12
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x72], al
sub rbx, r14
mov byte [rsp + 0x73], 0
mov qword [rsp + 0x50], rcx
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400247e4
cmp word [rsi], 0
movzx edx, word [rsp + 0x7c]
mov rax, rsi
mov rcx, qword [rsp + 0x50]
je 0x14001c7d6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14001c7c8
test rbx, rbx
je 0x1400247e4
mov word [rax], dx
add r14, 1
xor edx, edx
add rsi, 2
mov word [rax + 2], dx
movzx eax, byte [r14]
test al, al
jne 0x14001c785
lea rdx, [0x14003c0c0]
mov rbx, rdi
mov rcx, r15
call rbp
mov rdi, qword [rsp + 0x58]
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]
mov rdi, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rbx
mov rdx, rax
lea rcx, [0x1400398c0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], 0
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 0x14001c972
mov rcx, qword [rsp + 0x128]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x120]
mov dword [rsp + 0xd0], 0
mov qword [0x1400310a8], rcx
test rcx, rcx
je 0x14001c923
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400310a8]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14001c90f
mov dword [rsp + 0xd0], 1
mov rcx, qword [0x1400310a8]
call rbx
mov qword [0x1400310a8], 0
call fcn.1400035a0
mov eax, dword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0x2a0]
movaps xmm7, xmmword [rsp + 0x2b0]
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x140044138], 0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.1400020e0
mov rcx, rbx
call fcn.1400020b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
mov edx, eax
call fcn.14001bf90
mov ecx, 2
call sub.msvcrt.dll_exit
lea rcx, str.Error__couldnt_find_attached_data_header.
call fcn.1400020e0
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.1400020e0
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.14001bf90
mov ecx, 2
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.140023dd0]
lea r8, [0x14003a0c0]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.140002080
mov ecx, 2
call sub.msvcrt.dll_exit
nop
jmp 0x1400247e4
jmp 0x1400247e4
jmp 0x1400247e4