Function at 0x14001bdc0
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, 0x138
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x120], xmm7
lea rbx, str._TEMP_onefile__PID___TIME_
mov r8d, 0x1000
lea rcx, [0x140042100]
mov rdx, rbx
call fcn.14001afb0
test al, al
je 0x14001c4d3
mov edx, 1
lea rcx, [0x140003690]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14001c505
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 0x14001c4f9
cmp cl, 0x59
jne 0x14001c4f9
mov qword [0x140044120], 0
mov ecx, 0x20000
call sub.msvcrt.dll_malloc
mov qword [0x140044100], rax
test rax, rax
je 0x14001c4c7
mov ecx, 0x274b8
call sub.msvcrt.dll_malloc
mov r8, rax
test rax, rax
je 0x14001c4bc
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 0x14001c342
lea rax, [rsp + 0x90]
mov dword [r8 + 0x73d0], ecx
movdqa xmm6, xmmword [0x14002a260]
mov qword [r8 + 0x7410], 0x8000001
movd xmm7, dword [0x14002a270]
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 rsi, qword [0x140044108]
mov rdi, qword [0x140044110]
lea r15, [0x1400390c0]
lea rbp, [0x140044100]
nop word [rax + rax]
mov r12, qword [rsp + 0x58]
xor r14d, r14d
mov ebx, 2
lea r13, [0x140044120]
nop dword [rax]
mov r8, rsi
sub r8, rdi
jne 0x14001c09a
mov rcx, qword [0x140044130]
mov rdx, qword [0x140044128]
cmp rcx, rdx
setb al
or r14b, al
je 0x14001c0f0
mov rcx, qword [0x140044138]
mov r8, r13
mov rdx, rbp
movups xmmword [0x140044108], xmm6
call fcn.1400182e0
mov rsi, qword [0x140044110]
cmp qword [0x140044108], rsi
sete r14b
cmp rax, 0xffffffffffffff88
ja 0x14001c0f9
xor edi, edi
mov r8, rsi
mov qword [0x140044108], rsi
mov qword [0x140044110], 0
sub r8, rdi
je 0x14001c030
cmp rbx, r8
mov rdx, qword [rbp]
mov rcx, r12
cmovbe r8, rbx
add rdx, rdi
mov qword [rsp + 0x50], r8
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x50]
add rdi, r8
add r12, r8
mov qword [0x140044110], rdi
sub rbx, r8
jne 0x14001c028
movzx eax, word [rsp + 0x90]
mov word [r15], ax
test ax, ax
je 0x14001c105
add r15, 2
jmp 0x14001c010
cmp rcx, rdx
je 0x14001c028
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.1400020e0
lea rax, [0x1400390c0]
movzx ecx, word [rax]
test cx, cx
je 0x14001c356
lea rax, [0x140042100]
lea rbx, [0x14003a0c0]
xor r9d, r9d
movzx edx, word [rax]
mov word [0x14003a0c0], r9w
mov rax, rbx
lea r8, [0x140042100]
lea r9, [rbx + 0x2000]
test dx, dx
jne 0x14001c159
jmp 0x14001c16d
cmp rax, r9
je 0x1400241e6
add r8, 2
mov word [rax], dx
add rax, 2
movzx edx, word [r8]
test dx, dx
jne 0x14001c150
xor r8d, r8d
mov word [rax], r8w
cmp word [0x14003a0c0], 0
je 0x14001c336
mov edx, 0x1000
lea rax, [0x14003a0c0]
nop
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c190
test rdx, rdx
je 0x14001c56c
movd dword [rax], xmm7
mov edx, 0x1000
cmp word [0x14003a0c0], 0
lea rax, [0x14003a0c0]
je 0x14001c1df
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x14001c1c8
test rdx, rdx
je 0x14001c567
lea r8, [0x1400390c0]
jmp 0x14001c1f9
test rdx, rdx
je 0x14001c562
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x14001c1f0
xor edx, edx
cmp word [0x1400398c0], 0
mov word [rax], dx
je 0x14001c2ed
mov rcx, qword [rsp + 0x58]
mov edx, 8
call fcn.140018e80
mov rsi, qword [rsp + 0x90]
call fcn.14001b980
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 0x14001c536
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r13, qword [rsp + 0x58]
lea rdi, [0x1400310c0]
test rsi, rsi
je 0x14001c2df
nop dword [rax]
mov ebx, 0x8000
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call fcn.140018e80
mov r9, r13
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x90], 0
mov rcx, rbp
mov qword [rsp + 0x20], 0
call r12
test eax, eax
je 0x14001c518
sub rsi, rbx
jne 0x14001c298
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001bfee
movzx ecx, word [0x14003a0c0]
lea rax, [0x14003a0c0]
lea rdx, [0x1400398c0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x14001c319
jmp 0x14001c32c
cmp rax, r8
je 0x1400241e6
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14001c310
xor eax, eax
mov word [rdx], ax
jmp 0x14001c224
lea rax, [0x14003a0c0]
jmp 0x14001c1a7
mov eax, 7
cpuid
shr ebx, 8
and ebx, 1
mov ecx, ebx
jmp 0x14001bf77
mov rcx, qword [0x140044138]
lea rdi, [rsp + 0x98]
call fcn.140012d20
mov rcx, qword [0x140044100]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rsi, qword [rsp + 0x58]
mov edx, pe_nt_image_headers64
lea r8, [0x140026f52]
mov r9d, eax
mov rcx, rsi
call fcn.140002060
mov rdx, rsi
lea rcx, str.NUITKA_ONEFILE_PARENT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rax, rbx
mov ecx, 0xc
mov qword [rsp + 0x94], 0
mov qword [rsp + 0xf0], 0
rep stosq qword [rdi], rax
mov dword [rsp + 0x90], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [0x1400398c0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001c4db
mov rcx, qword [rsp + 0x78]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x6c], 0
mov qword [0x1400310a8], rcx
test rcx, rcx
je 0x14001c48f
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400310a8]
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14001c47b
mov dword [rsp + 0x6c], 1
mov rcx, qword [0x1400310a8]
call rbx
mov qword [0x1400310a8], 0
call fcn.140003530
mov eax, dword [rsp + 0x6c]
movaps xmm6, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x120]
add rsp, 0x138
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.14001bd50
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]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.14001bd50
mov ecx, 2
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.140023800]
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 0x1400241e6
jmp 0x1400241e6
jmp 0x1400241e6