Function at 0x140012c30
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
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, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea r15, [0x14003db10]
lea rdx, str.TEMPonefile_PID_TIME
mov r8d, 0x1000
mov rcx, r15
call fcn.1400123e0
test al, al
je 0x14001337e
lea rcx, [0x140012ac0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400133bd
mov edx, 0x1b
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
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 [0x140042358], rax
mov qword [0x14003fb10], rax
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x14003fb30], rax
mov rdx, qword [0x14003fb10]
movzx r8d, byte [rdx]
movzx ecx, byte [rdx + 1]
movzx eax, byte [rdx + 2]
add rdx, 3
mov qword [0x14003fb10], rdx
cmp r8b, 0x4b
jne 0x1400133b4
cmp cl, 0x41
jne 0x1400133b4
cmp al, 0x59
jne 0x1400133b4
mov qword [0x14003fb18], 0
mov ecx, 0x20000
call fcn.14001a664
mov qword [0x140042360], rax
test rax, rax
je 0x1400133d1
mov ecx, 0x274b8
call fcn.14001a664
test rax, rax
je 0x1400133c6
mov r8, rax
mov qword [rax + 0x73c8], 0
mov qword [rax + 0x72d8], 0
mov qword [rax + 0x7420], 0
mov qword [rax + 0x7440], 0
mov dword [rax + 0x7448], 0
mov dword [rax + 0x7454], 0
mov qword [rax + 0x274b0], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x73d8], xmm0
movups xmmword [rax + 0x73ec], xmm0
movups xmmword [rax + 0x73f8], xmm0
movups xmmword [rax + 0x73a0], xmm0
mov qword [rax + 0x73b0], 0
xor r9d, r9d
xor eax, eax
xor ecx, ecx
xchg rbx, r10
cpuid
xchg rbx, r10
test eax, eax
jle 0x140012dff
cmp eax, 7
jb 0x140012dff
xor ecx, ecx
mov eax, 7
xchg rbx, r9
cpuid
xchg rbx, r9
shr r9d, 8
and r9d, 1
mov dword [r8 + 0x73d0], r9d
mov dword [r8 + 0x7388], 0
mov qword [r8 + 0x7410], 0x8000001
mov dword [r8 + 0x7458], 0
movabs rax, 0x100000000
mov qword [r8 + 0x738c], rax
mov qword [0x140042378], r8
mov rax, qword [0x14003fb10]
mov qword [0x14003fb18], rax
mov qword [0x14003fb28], 0
mov rax, qword [0x14003fb30]
mov qword [0x14003fb20], rax
mov byte [0x140040340], 1
lea r13, [0x140042380]
lea r12, [rsp + 0x70]
lea rbx, [0x140040350]
lea r14, [0x140044b80]
mov rsi, r13
jmp 0x140012ea2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, r13
mov r15, rdi
mov r12, rbp
mov edx, 2
mov rcx, r12
call fcn.140013d80
movzx eax, word [rsp + 0x70]
mov word [rsi], ax
add rsi, 2
test ax, ax
jne 0x140012ea2
movzx eax, word [0x140042380]
test ax, ax
je 0x140013151
mov word [0x140040350], 0
movzx edx, word [0x14003db10]
mov rcx, rbx
test dx, dx
je 0x140012f60
xor ecx, ecx
nop word [rax + rax]
cmp rcx, 0x2000
je 0x14001335b
mov word [rcx + rbx], dx
movzx edx, word [rcx + r15 + 2]
test dx, dx
je 0x140012f45
mov word [rcx + rbx + 2], dx
movzx edx, word [rcx + r15 + 4]
test dx, dx
je 0x140012f4e
mov word [rcx + rbx + 4], dx
movzx edx, word [rcx + r15 + 6]
test dx, dx
je 0x140012f57
mov word [rcx + rbx + 6], dx
movzx edx, word [rcx + r15 + 8]
add rcx, 8
test dx, dx
jne 0x140012ef0
add rcx, rbx
jmp 0x140012f60
add rcx, rbx
add rcx, 2
jmp 0x140012f60
add rcx, rbx
add rcx, 4
jmp 0x140012f60
add rcx, rbx
add rcx, 6
nop
mov word [rcx], 0
cmp word [0x140040350], 0
mov rcx, rbx
je 0x140012f97
mov rdx, 0xfffffffffffff000
mov rcx, rbx
nop dword [rax]
inc rdx
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140012f80
test rdx, rdx
je 0x14001335b
mov dword [rcx], 0x5c
cmp word [0x140040350], 0
je 0x140012fc4
mov ecx, 0x1000
mov r8, rbx
nop
lea rdx, [r8 + 2]
dec rcx
cmp word [r8 + 2], 0
mov r8, rdx
jne 0x140012fb0
jmp 0x140012fcc
mov ecx, 0x1000
mov rdx, rbx
xor r8d, r8d
nop
cmp rcx, r8
je 0x14001335b
mov word [rdx + r8*2], ax
movzx eax, word [r13 + r8*2 + 2]
inc r8
test ax, ax
jne 0x140012fd0
mov word [rdx + r8*2], 0
cmp word [0x14003fb40], 0
jne 0x14001308e
movzx ecx, word [0x140040350]
lea rdx, [0x14003fb40]
mov rax, rdx
test cx, cx
je 0x140013089
xor eax, eax
nop dword [rax]
cmp rax, 0x2000
je 0x14001335b
mov word [rax + rdx], cx
movzx ecx, word [rax + rbx + 2]
test cx, cx
je 0x140013070
mov word [rax + rdx + 2], cx
movzx ecx, word [rax + rbx + 4]
test cx, cx
je 0x140013079
mov word [rax + rdx + 4], cx
movzx ecx, word [rax + rbx + 6]
test cx, cx
je 0x140013082
mov word [rax + rdx + 6], cx
movzx ecx, word [rax + rbx + 8]
add rax, 8
test cx, cx
jne 0x140013020
add rax, rdx
jmp 0x140013089
add rax, rdx
add rax, 2
jmp 0x140013089
add rax, rdx
add rax, 4
jmp 0x140013089
add rax, rdx
add rax, 6
mov word [rax], 0
mov rdi, r15
mov edx, 8
mov rbp, r12
mov rcx, r12
call fcn.140013d80
mov rsi, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140013430
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001338a
mov r15, rax
test rsi, rsi
je 0x140012e90
nop word cs:[rax + rax]
cmp rsi, 0x8000
mov r12d, 0x8000
cmovb r12, rsi
mov rcx, r14
mov rdx, r12
call fcn.140013d80
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, r14
mov r8d, r12d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140013360
sub rsi, r12
jne 0x140013100
jmp 0x140012e90
mov rcx, qword [0x140042378]
call fcn.14000a580
mov rcx, qword [0x140042360]
call fcn.14001a650
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.NUITKA_ONEFILE_PARENT
mov edx, eax
call fcn.140012230
lea rsi, [0x14003baf0]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x1001
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx ecx, word [0x14003baf0]
test cx, cx
je 0x1400131f0
lea rsi, [0x14003baf4]
mov rax, 0xfffffffffffff001
nop
mov word [rsi - 4], cx
movzx ecx, word [rsi - 2]
test cx, cx
je 0x1400131ec
mov word [rsi - 2], cx
movzx ecx, word [rsi]
test cx, cx
je 0x1400131f0
test rax, rax
je 0x14001335b
mov word [rsi], cx
movzx ecx, word [rsi + 2]
add rsi, 6
add rax, 3
test cx, cx
jne 0x1400131b0
add rsi, 0xfffffffffffffffc
jmp 0x1400131f0
add rsi, 0xfffffffffffffffe
mov word [rsi], 0
lea rcx, str.NUITKA_ONEFILE_BINARY
lea rdx, [0x14003baf0]
call fcn.140012130
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov dword [rsp + 0xac], 0x100
mov rsi, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff6
call rsi
mov qword [rsp + 0xc0], rax
mov ecx, 0xfffffff5
call rsi
mov qword [rsp + 0xc8], rax
mov ecx, 0xfffffff4
call rsi
mov qword [rsp + 0xd0], rax
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], r12
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
lea rcx, [0x14003fb40]
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400133e7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
mov qword [0x14003daf8], rcx
mov dword [rsp + 0x54], 0
test rcx, rcx
je 0x140013324
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14003daf8]
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14001330c
mov dword [rsp + 0x54], 1
mov rcx, qword [0x14003daf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14003daf8], 0
call fcn.140012ae0
mov esi, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140014070
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14001a5f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
mov edx, eax
call fcn.1400129c0
mov ecx, 2
call fcn.1400190e0
lea rcx, str.TEMPonefile_PID_TIME
call fcn.140013400
mov ecx, 2
call fcn.1400152bc
lea rdx, str.Error__failed_to_open__ls_for_writing._n
lea r8, [0x140040350]
mov rcx, rax
call fcn.140012a50
mov ecx, 2
call fcn.1400190e0
lea rcx, str.Error__couldnt_find_attached_data_header.
jmp 0x1400133d8
lea rcx, str.Error__failed_to_register_signal_handler.
jmp 0x1400133d8
mov qword [0x140042378], 0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.14001a904
mov ecx, 2
call fcn.1400190e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__couldnt_launch_child
jmp 0x14001336d