Function at 0x40a180
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Resolve function by parsing pe exports
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
call fcn.0040dffb
call fcn.0040e001
push 0x1000
mov edx, str.TEMPonefile_PID_TIME
mov ecx, 0x438c60
mov eax, dword [eax]
mov dword [esp + 0x20], eax
call fcn.00409420
add esp, 4
test al, al
je 0x40a819
push 1
push 0x409e80
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x40a823
push 0xa
push 0x1b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [0x448468], eax
mov dword [0x42843c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x42843c]
mov dword [0x428c40], eax
mov dword [0x428c44], 0
mov ax, word [ecx]
mov word [esp + 0xc], ax
mov al, byte [ecx + 2]
add ecx, 3
cmp byte [esp + 0xc], 0x4b
mov dword [0x42843c], ecx
jne 0x40a814
cmp byte [esp + 0xd], 0x41
jne 0x40a814
cmp al, 0x59
jne 0x40a814
push 0x20000
mov dword [0x428c48], 0
call fcn.00410979
add esp, 4
mov dword [0x428c54], eax
test eax, eax
je 0x40a837
movq xmm0, qword [0x424ac0]
mov edi, dword [0x424ac8]
push 0x27420
movq qword [esp + 0x24], xmm0
call fcn.00410979
mov esi, eax
add esp, 4
test esi, esi
je 0x40a82d
movq xmm0, qword [esp + 0x20]
mov ecx, esi
movq qword [esi + 0x736c], xmm0
mov dword [esi + 0x7374], edi
call fcn.00404e20
mov eax, dword [0x42843c]
mov dword [0x428c48], eax
mov eax, dword [0x428c40]
mov dword [0x428438], esi
mov dword [0x428c50], 0
mov dword [0x428c4c], eax
mov byte [0x440462], 1
nop
mov edx, 2
lea ecx, [esp + 0xc]
mov esi, 0x43ac60
call fcn.00409a30
mov ax, word [esp + 0xc]
mov word [0x43ac60], ax
test ax, ax
je 0x40a501
nop word [eax + eax]
mov edx, 2
lea ecx, [esp + 0xc]
lea esi, [esi + 2]
call fcn.00409a30
mov ax, word [esp + 0xc]
mov word [esi], ax
test ax, ax
jne 0x40a320
cmp word [0x43ac60], ax
je 0x40a501
xor eax, eax
mov edx, 0x1000
mov ecx, 0x448470
mov word [0x448470], ax
cmp word [0x438c60], ax
je 0x40a38b
mov esi, 0x438c60
sub esi, ecx
nop dword [eax]
cmp edx, 1
jb 0x40a846
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x40a370
xor eax, eax
mov word [ecx], ax
mov ecx, 0x1000
cmp word [0x448470], 0
mov eax, 0x448470
je 0x40a3b7
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a3a4
cmp ecx, 1
jb 0x40a846
mov dword [eax], 0x5c
mov edx, 0x1000
cmp word [0x448470], 0
mov eax, 0x448470
je 0x40a3db
add eax, 2
dec edx
cmp word [eax], 0
jne 0x40a3d1
mov esi, 0x43ac60
sub esi, eax
cmp edx, 1
jb 0x40a846
mov cx, word [esi + eax]
dec edx
mov word [eax], cx
add eax, 2
cmp word [esi + eax], 0
jne 0x40a3e2
xor ecx, ecx
mov word [eax], cx
cmp word [0x428440], cx
jne 0x40a446
cmp word [0x448470], 0
mov edx, 0x1000
mov ecx, 0x428440
je 0x40a441
mov esi, 0x448470
sub esi, ecx
cmp edx, 1
jb 0x40a846
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x40a426
xor eax, eax
mov word [ecx], ax
mov edx, 8
lea ecx, [esp + 0x20]
call fcn.00409a30
mov ecx, 0x448470
call fcn.00409c70
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x448470
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x40a841
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test ebx, ebx
jne 0x40a499
test esi, esi
je 0x40a4f2
test ebx, ebx
ja 0x40a4a9
jb 0x40a4a5
cmp esi, 0x8000
ja 0x40a4a9
mov edi, esi
jmp 0x40a4ae
mov edi, 0x8000
mov edx, edi
mov ecx, 0x440468
call fcn.00409a30
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push edi
push 0x440468
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a83c
mov eax, edi
cdq
sub esi, eax
sbb ebx, edx
test ebx, ebx
ja 0x40a4a9
jb 0x40a4f2
test esi, esi
jne 0x40a497
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a2f0
call fcn.00404ff0
push dword [0x428c54]
call fcn.00410924
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x423a54
lea eax, [esp + 0xd8]
push 0x80
push eax
call fcn.00401040
xor eax, eax
lea edx, [esp + 0xe0]
push 0x80
lea ecx, [esp + 0x164]
mov word [esp + 0x164], ax
call fcn.00409870
add esp, 0x14
lea esi, [esp + 0x80]
xor eax, eax
mov ebx, str.NUITKA_ONEFILE_PARENT
mov word [esp + 0x80], ax
lea edi, [eax + 0x28]
mov al, 0x4e
mov byte [esp + 0xc], al
lea eax, [esp + 0xc]
push 2
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x15], 0
push eax
call fcn.0040de5f
add esp, 0xc
cmp eax, 1
jne 0x40a846
cmp word [esi], 0
mov eax, edi
mov ecx, esi
je 0x40a5ac
add ecx, 2
dec eax
cmp word [ecx], 0
jne 0x40a5a2
cmp eax, 1
jb 0x40a846
mov ax, word [esp + 0x10]
inc ebx
mov word [ecx], ax
add esi, 2
xor eax, eax
dec edi
mov word [ecx + 2], ax
mov al, byte [ebx]
test al, al
jne 0x40a572
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.00409320
mov dword [esp + 0x18], eax
lea esi, [esp + 0x80]
xor eax, eax
mov ebx, str.NUITKA_ONEFILE_BINARY
mov word [esp + 0x80], ax
mov cl, 0x4e
lea edi, [eax + 0x28]
nop dword [eax + eax]
push 2
lea eax, [esp + 0x10]
mov byte [esp + 0x10], cl
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x15], 0
push eax
call fcn.0040de5f
add esp, 0xc
cmp eax, 1
jne 0x40a846
cmp word [esi], 0
mov eax, edi
mov ecx, esi
je 0x40a64a
add ecx, 2
dec eax
cmp word [ecx], 0
jne 0x40a640
cmp eax, 1
jb 0x40a846
mov ax, word [esp + 0x10]
inc ebx
mov word [ecx], ax
add esi, 2
xor eax, eax
dec edi
mov word [ecx + 2], ax
mov cl, byte [ebx]
test cl, cl
jne 0x40a610
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x80]
mov ebx, str.NUITKA_ORIGINAL_ARGV0
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
xor eax, eax
mov word [esp + 0x80], ax
lea edi, [eax + 0x28]
mov al, 0x4e
mov byte [esp + 0xc], al
lea eax, [esp + 0xc]
push 2
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x15], 0
push eax
call fcn.0040de5f
add esp, 0xc
cmp eax, 1
jne 0x40a846
cmp word [esi], 0
mov eax, edi
mov ecx, esi
je 0x40a6dd
add ecx, 2
dec eax
cmp word [ecx], 0
jne 0x40a6d3
cmp eax, 1
jb 0x40a846
mov ax, word [esp + 0x1c]
inc ebx
mov word [ecx], ax
add esi, 2
xor eax, eax
dec edi
mov word [ecx + 2], ax
mov al, byte [ebx]
test al, al
jne 0x40a6a3
push dword [esp + 0x10]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
xorps xmm0, xmm0
push 0xfffffffffffffff6
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x68], 0x100
call esi
push 0xfffffffffffffff5
mov dword [esp + 0x74], eax
call esi
push 0xfffffffffffffff4
mov dword [esp + 0x78], eax
call esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x44
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
call fcn.00409ec0
push eax
push 0x428440
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a84b
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [esp + 0x28]
mov dword [0x428434], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x40a7f4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [0x428434]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x14]
test eax, eax
push dword [0x428434]
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x18], ecx
call ebx
mov dword [0x428434], 0
call fcn.00409d70
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a859
mov esp, ebp
pop ebp
ret 0x10
call fcn.004099b0
mov ecx, str.TEMPonefile_PID_TIME
call fcn.00409a10
mov ecx, str.Error__failed_to_register_signal_handler.
call fcn.00409950
mov dword [0x428438], 0
call fcn.004099c0
call fcn.00409980
call fcn.004099e0
call fcn.0040db05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.004099d0
int3