Function at 0x140013210
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 rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x140033008]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rbp, [0x140037a60]
lea rdx, str._TEMP_onefile__PID___TIME_
mov r8d, 0x1000
mov rcx, rbp
call fcn.140012700
test al, al
je 0x1400137bc
lea rcx, [0x1400130b0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400137d2
mov edx, 0x1b
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140044278], rax
mov bl, byte [rax]
mov dl, byte [rax + 1]
mov cl, byte [rax + 2]
add rax, 3
mov qword [0x140044280], rax
cmp bl, 0x4b
jne 0x1400137cd
cmp dl, 0x41
jne 0x1400137cd
cmp cl, 0x59
jne 0x1400137cd
mov qword [0x140044288], 0
mov ecx, 0x20000
call fcn.140019c84
mov qword [0x1400442a0], rax
test rax, rax
je 0x1400137de
mov ecx, 0x274b8
call fcn.140019c84
test rax, rax
je 0x1400137e3
mov rdi, rax
xor eax, eax
xor ecx, ecx
cpuid
mov qword [rdi + 0x73c8], 0
mov qword [rdi + 0x72d8], 0
mov qword [rdi + 0x7420], 0
mov qword [rdi + 0x7440], 0
mov dword [rdi + 0x7448], 0
mov dword [rdi + 0x7454], 0
mov qword [rdi + 0x274b0], 0
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rdi + 0x73d8], xmm0
movups xmmword [rdi + 0x73ec], xmm0
movups xmmword [rdi + 0x73f8], xmm0
movups xmmword [rdi + 0x73a0], xmm0
mov qword [rdi + 0x73b0], 0
test eax, eax
jle 0x1400133a7
cmp eax, 7
jl 0x1400133a7
mov eax, 7
xor ecx, ecx
cpuid
shr ebx, 8
and ebx, 1
mov dword [rdi + 0x73d0], ebx
mov dword [rdi + 0x7388], 0
mov qword [rdi + 0x7410], 0x8000001
mov dword [rdi + 0x7458], 0
movabs rax, 0x100000000
mov qword [rdi + 0x738c], rax
mov qword [0x1400442b8], rdi
mov byte [0x14003a260], 1
lea r13, [0x1400442c0]
lea r15, [rsp + 0x70]
lea r12, [0x14003a270]
lea rsi, [0x14003c270]
jmp 0x140013419
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, r13
mov edx, 2
mov rcx, r15
call fcn.140013980
movzx eax, word [rsp + 0x70]
mov word [rdi], ax
add rdi, 2
test ax, ax
jne 0x14001341c
movzx eax, word [0x1400442c0]
test ax, ax
je 0x140013640
mov word [0x14003a270], 0
movzx edx, word [0x140037a60]
mov rcx, r12
test dx, dx
je 0x140013493
xor ecx, ecx
nop word cs:[rax + rax]
nop
cmp rcx, 0x2000
je 0x1400137b2
mov word [rcx + r12], dx
movzx edx, word [rcx + rbp + 2]
add rcx, 2
test dx, dx
jne 0x140013470
add rcx, r12
mov word [rcx], 0
cmp word [0x14003a270], 0
mov rcx, r12
je 0x1400134c8
mov rdx, 0xfffffffffffff000
mov rcx, r12
nop
add rdx, 1
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400134b0
test rdx, rdx
je 0x1400137b2
mov dword [rcx], 0x5c
cmp word [0x14003a270], 0
je 0x140013500
mov ecx, 0x1000
mov rdx, r12
lea rdi, [rdx + 2]
add rcx, 0xffffffffffffffff
cmp word [rdx + 2], 0
mov rdx, rdi
jne 0x1400134e0
jmp 0x140013508
mov ecx, 0x1000
mov rdi, r12
xor edx, edx
nop word [rax + rax]
cmp rcx, rdx
je 0x1400137b2
mov rbx, rdx
mov word [rdi + rdx*2], ax
movzx eax, word [r13 + rdx*2 + 2]
add rdx, 1
test ax, ax
jne 0x140013510
mov word [rdi + rbx*2 + 2], 0
cmp word [0x140039a60], 0
jne 0x140013587
movzx ecx, word [0x14003a270]
lea rdx, [0x140039a60]
mov rax, rdx
test cx, cx
je 0x140013582
xor eax, eax
nop dword [rax + rax]
cmp rax, 0x2000
je 0x1400137b2
mov word [rax + rdx], cx
movzx ecx, word [rax + r12 + 2]
add rax, 2
test cx, cx
jne 0x140013560
add rax, rdx
mov word [rax], 0
mov edx, 8
mov rcx, r15
call fcn.140013980
mov r14, qword [rsp + 0x70]
mov rcx, r12
call fcn.140013880
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
mov rcx, r12
mov edx, 0x40000000
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400137c8
mov rdi, rax
test r14, r14
je 0x140013410
nop word [rax + rax]
cmp r14, 0x8000
mov ebx, 0x8000
cmovb rbx, r14
mov rcx, rsi
mov rdx, rbx
call fcn.140013980
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400137b7
sub r14, rbx
jne 0x1400135f0
jmp 0x140013410
mov rcx, qword [0x1400442b8]
call fcn.14000a680
mov rcx, qword [0x1400442a0]
call fcn.140019c70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14002d972]
lea rsi, [rsp + 0x70]
mov edx, 0x80
mov rcx, rsi
mov r9d, eax
call fcn.140012f20
lea rcx, str.NUITKA_ONEFILE_PARENT
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
lea rcx, [0x140039a60]
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400137f3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
mov qword [0x140037a48], rcx
mov dword [rsp + 0x54], 0
test rcx, rcx
je 0x14001377b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140037a48]
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140013763
mov dword [rsp + 0x54], 1
mov rcx, qword [0x140037a48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140037a48], 0
call fcn.1400130d0
mov esi, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140014bf0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140019c10
call fcn.140013af0
lea rcx, str._TEMP_onefile__PID___TIME_
call fcn.140013810
call fcn.140014b10
call fcn.140013860
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.140013840
call fcn.1400149a0
mov qword [0x1400442b8], 0
call fcn.1400149a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013b10
int3