Function at 0x40c590
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Set environment variable
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [section..data]
xor eax, ebp
mov dword [esp + 0x70], eax
call fcn.0040f1b2
call fcn.0040f1b8
push 0x1000
push str.TEMPonefile_PID_TIME
push 0x42c90c
call fcn.0040bcb0
add esp, 0xc
test al, al
je 0x40cce2
push 1
push 0x40c490
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x40cd17
push 0xa
push 0x1b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x431138], eax
mov dword [0x42e90c], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x42e920], eax
mov dword [0x42e924], 0
mov edx, dword [0x42e90c]
mov ah, byte [edx]
movzx ecx, byte [edx + 1]
mov al, byte [edx + 2]
add edx, 3
mov dword [0x42e90c], edx
cmp ah, 0x4b
jne 0x40cd10
cmp cl, 0x41
jne 0x40cd10
cmp al, 0x59
jne 0x40cd10
mov dword [0x42e910], 0
push 0x20000
call fcn.004122b8
add esp, 4
mov dword [0x43113c], eax
test eax, eax
je 0x40cd28
push 0x27420
call fcn.004122b8
add esp, 4
test eax, eax
je 0x40cd1e
mov esi, eax
mov dword [eax + 0x736c], 0
mov dword [eax + 0x7370], 0
mov dword [eax + 0x7374], 0
mov dword [eax + 0x7380], 0
mov dword [eax + 0x738c], 0
mov dword [eax + 0x7388], 0
mov dword [eax + 0x72b8], 0
mov dword [eax + 0x73b4], 0
mov dword [eax + 0x73c4], 0
mov dword [eax + 0x73c8], 0
mov dword [eax + 0x73d4], 0
mov dword [eax + 0x2741c], 0
xorps xmm0, xmm0
movups xmmword [eax + 0x7394], xmm0
mov dword [eax + 0x73a4], 0
xor edi, edi
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x40c740
cmp eax, 7
jb 0x40c740
mov eax, 7
xor ecx, ecx
cpuid
mov edi, ebx
shr edi, 8
and edi, 1
mov dword [esi + 0x7384], edi
mov dword [esi + 0x735c], 0
mov dword [esi + 0x73ac], 0x8000001
mov dword [esi + 0x73d8], 0
mov dword [esi + 0x7360], 0
mov dword [esi + 0x7364], 1
mov dword [0x431148], esi
mov eax, dword [0x42e90c]
mov dword [0x42e910], eax
mov dword [0x42e918], 0
mov eax, dword [0x42e920]
mov dword [0x42e914], eax
mov byte [0x42f128], 1
jmp 0x40c7ba
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x43114c
lea edi, [esp + 0x20]
mov ecx, edi
mov edx, 2
call fcn.0040d780
movzx eax, word [esp + 0x20]
mov word [esi], ax
add esi, 2
test ax, ax
jne 0x40c7c3
movzx eax, word [0x43114c]
test ax, ax
je 0x40ca88
mov word [0x42f12a], 0
mov ecx, 0x42f12a
movzx esi, word [0x42c90c]
mov edx, 0x42f12a
test si, si
je 0x40c8a0
xor edx, edx
nop word cs:[eax + eax]
cmp edx, 0x2000
je 0x40ccc2
mov word [edx + 0x42f12a], si
movzx esi, word [edx + 0x42c90e]
test si, si
je 0x40c883
mov word [edx + 0x42f12c], si
movzx esi, word [edx + 0x42c910]
test si, si
je 0x40c88b
mov word [edx + 0x42f12e], si
movzx esi, word [edx + 0x42c912]
test si, si
je 0x40c893
mov word [edx + 0x42f130], si
movzx esi, word [edx + 0x42c914]
add edx, 8
test si, si
jne 0x40c820
lea edx, [edx + 0x42f12a]
jmp 0x40c8a0
lea edx, [edx + 0x42f12c]
jmp 0x40c8a0
lea edx, [edx + 0x42f12e]
jmp 0x40c8a0
lea edx, [edx + 0x42f130]
nop dword [eax]
mov word [edx], 0
cmp word [0x42f12a], 0
je 0x40c8d3
mov ecx, 0x42f12a
mov edx, 0xfffff000
nop dword [eax]
inc edx
cmp word [ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x40c8c0
test edx, edx
je 0x40ccc2
mov dword [ecx], 0x5c
cmp word [0x42f12a], 0
je 0x40c900
mov ecx, 0x1000
mov esi, 0x42f12a
nop dword [eax]
lea edx, [esi + 2]
dec ecx
cmp word [esi + 2], 0
mov esi, edx
jne 0x40c8f0
jmp 0x40c90a
mov edx, 0x42f12a
mov ecx, 0x1000
xor esi, esi
nop dword [eax]
cmp ecx, esi
je 0x40ccc2
mov word [edx + esi*2], ax
movzx eax, word [esi + esi + 0x43114e]
inc esi
test ax, ax
jne 0x40c910
mov word [edx + esi*2], 0
cmp word [0x42e928], 0
jne 0x40c9d5
movzx ecx, word [0x42f12a]
test cx, cx
je 0x40c9b2
xor eax, eax
nop dword [eax]
cmp eax, 0x2000
je 0x40ccc2
mov word [eax + 0x42e928], cx
movzx ecx, word [eax + 0x42f12c]
test cx, cx
je 0x40c9b9
mov word [eax + 0x42e92a], cx
movzx ecx, word [eax + 0x42f12e]
test cx, cx
je 0x40c9c1
mov word [eax + 0x42e92c], cx
movzx ecx, word [eax + 0x42f130]
test cx, cx
je 0x40c9c9
mov word [eax + 0x42e92e], cx
movzx ecx, word [eax + 0x42f132]
add eax, 8
test cx, cx
jne 0x40c950
lea eax, [eax + 0x42e928]
jmp 0x40c9d0
mov eax, 0x42e928
jmp 0x40c9d0
lea eax, [eax + 0x42e92a]
jmp 0x40c9d0
lea eax, [eax + 0x42e92c]
jmp 0x40c9d0
lea eax, [eax + 0x42e92e]
nop
mov word [eax], 0
mov ecx, edi
mov edx, 8
call fcn.0040d780
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, 0x42f12a
call fcn.0040cd80
sub esp, 0x1c
movaps xmm0, xmmword [0x4210c0]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0x42f12a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x40ccec
nop dword [eax]
mov eax, ebx
or eax, edi
je 0x40c7b0
cmp ebx, 0x8001
mov eax, edi
sbb eax, 0
mov esi, ebx
jb 0x40ca4e
mov esi, 0x8000
mov ecx, 0x43294c
mov edx, esi
call fcn.0040d780
mov dword [esp + 0x20], 0
push 0
lea eax, [esp + 0x24]
push eax
push esi
push 0x43294c
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ccc7
sub ebx, esi
sbb edi, 0
jmp 0x40ca30
push dword [0x431148]
call fcn.00406790
add esp, 4
push dword [0x43113c]
call fcn.0041229d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.NUITKA_ONEFILE_PARENT
call fcn.0040baa0
add esp, 8
push 0x1001
push 0x42a900
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx edx, word [0x42a900]
test dx, dx
je 0x40cb1a
mov eax, 0x42a904
mov ecx, 0xfffff001
mov word [eax - 4], dx
movzx edx, word [eax - 2]
test dx, dx
je 0x40cb23
mov word [eax - 2], dx
movzx edx, word [eax]
test dx, dx
je 0x40cb2a
test ecx, ecx
je 0x40ccc2
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 6
add ecx, 3
test dx, dx
jne 0x40cae0
mov ecx, edi
add eax, 0xfffffffc
jmp 0x40cb2c
mov ecx, edi
mov eax, 0x42a900
jmp 0x40cb2c
mov ecx, edi
add eax, 0xfffffffe
jmp 0x40cb2c
mov ecx, edi
mov word [eax], 0
mov word [esp + 0x20], 0
mov ebx, 0x28
mov edi, str.NUITKA_ONEFILE_BINARY
mov byte [esp + 7], 0x4e
xor eax, eax
mov esi, ecx
nop dword [eax + eax]
mov dword [esp + 8], esi
mov ecx, ebx
test ax, ax
je 0x40cb7d
mov ecx, ebx
mov eax, dword [esp + 8]
nop word cs:[eax + eax]
lea esi, [eax + 2]
dec ecx
cmp word [eax + 2], 0
mov eax, esi
jne 0x40cb70
test ecx, ecx
je 0x40ccc2
push esi
call fcn.00412970
add esp, 4
lea eax, [esi + eax*2]
movzx ecx, byte [esp + 7]
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], 0
push 2
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004122c3
add esp, 0xc
cmp edi, 0x424ae2
je 0x40cbce
movzx eax, byte [edi + 1]
mov byte [esp + 7], al
inc edi
dec ebx
mov esi, dword [esp + 8]
movzx eax, word [esi + 2]
add esi, 2
jmp 0x40cb50
lea esi, [esp + 0x20]
push 0x42a900
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xorps xmm0, xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x28
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
movaps xmm0, xmmword [0x4210f0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0x42e928
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40cd3c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [0x42c904], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x40cca2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xc]
push eax
push dword [0x42c904]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40cc8c
mov dword [esp + 0xc], 1
push dword [0x42c904]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42c904], 0
call fcn.0040c4b0
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.0040d9a4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call fcn.0041224e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__couldnt_unpack_file_to_target_path.
call fcn.0040c3d0
add esp, 8
push 2
call fcn.004110e5
mov ecx, str.TEMPonefile_PID_TIME
call fcn.0040cd50
push 2
call fcn.0040f066
add esp, 4
push 0x42f12a
push str.Error__failed_to_open__ls_for_writing._n
push eax
call fcn.0040c440
add esp, 0xc
push 2
call fcn.004110e5
push str.Error__couldnt_find_attached_data_header.
jmp 0x40cd2d
push str.Error__failed_to_register_signal_handler.
jmp 0x40cd2d
mov dword [0x431148], 0
push str.Error__couldnt_allocate_memory.
call fcn.00412490
add esp, 4
push 2
call fcn.004110e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__couldnt_launch_child
jmp 0x40ccd3