Function at 0x40d040
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 ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x429004]
xor eax, ebp
mov dword [esp + 0x68], eax
push 0x1000
push str.TEMPonefile_PID_TIME
push 0x42f8cc
call fcn.0040c8f0
add esp, 0xc
test al, al
je 0x40da7c
push 1
push 0x40cf40
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x40da90
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 [0x4340e8], eax
mov dword [0x4318cc], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov edi, dword [0x4318cc]
mov dl, byte [edi]
mov cl, byte [edi + 1]
mov al, byte [edi + 2]
add edi, 3
mov dword [0x4318cc], edi
cmp dl, 0x4b
jne 0x40da8b
cmp cl, 0x41
jne 0x40da8b
cmp al, 0x59
jne 0x40da8b
mov dword [esp + 4], edi
mov dword [0x4318d0], 0
push 0x20000
call fcn.0041348d
add esp, 4
mov dword [0x4340ec], eax
test eax, eax
je 0x40da9a
mov dword [esp + 8], esi
push 0x27420
call fcn.0041348d
add esp, 4
test eax, eax
je 0x40da9f
mov edi, 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
xor esi, esi
xor eax, eax
xor ecx, ecx
cpuid
xorps xmm0, xmm0
movups xmmword [edi + 0x7394], xmm0
mov dword [edi + 0x73a4], 0
test eax, eax
jle 0x40d1e0
cmp eax, 7
jl 0x40d1e0
mov eax, 7
xor ecx, ecx
cpuid
mov esi, ebx
shr esi, 8
and esi, 1
mov dword [edi + 0x7384], esi
mov dword [edi + 0x735c], 0
mov dword [edi + 0x73ac], 0x8000001
mov dword [edi + 0x73d8], 0
mov dword [edi + 0x7360], 0
mov dword [edi + 0x7364], 1
mov dword [0x4340f8], edi
mov eax, dword [esp + 4]
mov dword [0x4318d0], eax
mov dword [0x4318d8], 0
mov eax, dword [esp + 8]
mov dword [0x4318d4], eax
mov byte [0x4320dc], 1
jmp 0x40d25a
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4340fc
lea ebx, [esp + 0x20]
mov ecx, ebx
mov edx, 2
call fcn.0040e870
movzx eax, word [esp + 0x20]
mov word [esi], ax
add esi, 2
test ax, ax
jne 0x40d263
movzx eax, word [0x4340fc]
test ax, ax
je 0x40d488
mov word [0x4320de], 0
mov ecx, 0x4320de
movzx edx, word [0x42f8cc]
mov esi, 0x4320de
test dx, dx
je 0x40d2d8
xor esi, esi
cmp esi, 0x2000
je 0x40da72
mov word [esi + 0x4320de], dx
movzx edx, word [esi + 0x42f8ce]
add esi, 2
test dx, dx
jne 0x40d2b0
lea esi, [esi + 0x4320de]
mov word [esi], 0
cmp word [0x4320de], 0
je 0x40d315
mov ecx, 0x4320de
mov edx, 0xfffff000
nop word cs:[eax + eax]
nop dword [eax + eax]
add edx, 1
cmp word [ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x40d300
test edx, edx
je 0x40da72
mov dword [ecx], 0x5c
cmp word [0x4320de], 0
je 0x40d350
mov ecx, 0x1000
mov esi, 0x4320de
nop
lea edx, [esi + 2]
add ecx, 0xffffffff
cmp word [esi + 2], 0
mov esi, edx
jne 0x40d330
jmp 0x40d35a
mov edx, 0x4320de
mov ecx, 0x1000
xor edi, edi
nop dword [eax]
cmp ecx, edi
je 0x40da72
mov esi, edi
mov word [edx + edi*2], ax
movzx eax, word [edi + edi + 0x4340fe]
add edi, 1
test ax, ax
jne 0x40d360
mov word [edx + esi*2 + 2], 0
cmp word [0x4318dc], 0
jne 0x40d3d4
movzx eax, word [0x4320de]
test ax, ax
je 0x40d3ca
xor ecx, ecx
nop dword [eax]
cmp ecx, 0x2000
je 0x40da72
mov word [ecx + 0x4318dc], ax
movzx eax, word [ecx + 0x4320e0]
add ecx, 2
test ax, ax
jne 0x40d3a0
lea eax, [ecx + 0x4318dc]
jmp 0x40d3cf
mov eax, 0x4318dc
mov word [eax], 0
mov ecx, ebx
mov edx, 8
call fcn.0040e870
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, 0x4320de
call fcn.0040db10
sub esp, 0x1c
movaps xmm0, xmmword [0x4220a0]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0x4320de
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x40da86
nop dword [eax + eax]
mov eax, ebx
or eax, edi
je 0x40d250
cmp ebx, 0x8001
mov eax, edi
sbb eax, 0
mov esi, ebx
jb 0x40d44e
mov esi, 0x8000
mov ecx, 0x4358fc
mov edx, esi
call fcn.0040e870
mov dword [esp + 0x20], 0
push 0
lea eax, [esp + 0x24]
push eax
push esi
push 0x4358fc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40da77
sub ebx, esi
sbb edi, 0
jmp 0x40d430
push dword [0x4340f8]
call fcn.00406b70
add esp, 4
push dword [0x4340ec]
call fcn.00413472
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.NUITKA_ONEFILE_PARENT
call fcn.0040c770
add esp, 8
cmp word [0x42d8c2], 0
jne 0x40d524
push 0x1001
push 0x42d8c2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx eax, word [0x42d8c2]
test ax, ax
je 0x40d51a
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp ecx, 0x2002
je 0x40da72
mov word [ecx + 0x42d8c2], ax
movzx eax, word [ecx + 0x42d8c4]
add ecx, 2
test ax, ax
jne 0x40d4f0
lea eax, [ecx + 0x42d8c2]
jmp 0x40d51f
mov eax, 0x42d8c2
mov word [eax], 0
push 0x42d8c2
push str.NUITKA_ONEFILE_BINARY
call fcn.0040c6b0
add esp, 8
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x60], 0
mov dword [esp + 0x4c], 0x100
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
mov dword [esp + 0x58], eax
push 0xfffffffffffffff5
call esi
mov dword [esp + 0x5c], eax
push 0xfffffffffffffff4
call esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov word [0x43d8fc], 0
push 0x1000
push 0x4298c0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40da72
mov dword [esp + 4], esi
mov dword [esi], 0x4298c0
cmp dword [esp + 0x10], 0
jle 0x40d9ad
xor ebx, ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
test ebx, ebx
je 0x40d62b
cmp word [0x43d8fc], 0
je 0x40d620
mov eax, 0x43d8fc
mov ecx, 0xffff8000
nop dword [eax + eax]
add ecx, 1
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x40d600
test ecx, ecx
jne 0x40d625
jmp 0x40da72
mov eax, 0x43d8fc
mov dword [eax], 0x20
mov eax, dword [esp + 4]
mov esi, dword [eax + ebx*4]
push 0x20
push esi
call fcn.0040ffda
add esp, 8
test eax, eax
jne 0x40d690
push 9
push esi
call fcn.0040ffda
add esp, 8
test eax, eax
jne 0x40d690
push 0xa
push esi
call fcn.0040ffda
add esp, 8
test eax, eax
jne 0x40d690
push 0xb
push esi
call fcn.0040ffda
add esp, 8
test eax, eax
jne 0x40d690
push 0x22
push esi
call fcn.0040ffda
add esp, 8
test eax, eax
je 0x40d941
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp word [0x43d8fc], 0
je 0x40d6d0
mov eax, 0x43d8fc
mov ecx, 0xffff8000
nop word cs:[eax + eax]
nop
add ecx, 1
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x40d6b0
test ecx, ecx
jne 0x40d6d5
jmp 0x40da72
mov eax, 0x43d8fc
mov dword [eax], 0x22
mov eax, dword [esp + 4]
mov eax, dword [eax + ebx*4]
jmp 0x40d701
mov edx, 0x43d8fc
mov word [edx], cx
mov word [edx + 2], 0
add eax, 2
movzx ecx, word [eax]
xor edx, edx
cmp cx, 0x22
je 0x40d760
cmp cx, 0x5c
je 0x40d770
test cx, cx
je 0x40d8e0
movzx ecx, word [eax]
cmp word [0x43d8fc], 0
je 0x40d6f0
mov edx, 0x43d8fc
mov esi, 0xffff8000
nop word cs:[eax + eax]
nop dword [eax]
add esi, 1
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x40d740
test esi, esi
jne 0x40d6f5
jmp 0x40da72
xor esi, esi
jmp 0x40d7a2
xor ecx, ecx
xor esi, esi
nop word cs:[eax + eax]
nop
movzx edi, word [eax + esi*2 + 2]
add esi, 1
add ecx, 0xfffffffe
cmp di, 0x5c
je 0x40d780
test di, di
je 0x40d850
cmp di, 0x22
jne 0x40d7f6
sub eax, ecx
lea ecx, [esi + esi]
add ecx, 1
jmp 0x40d7c6
mov esi, 0x43d8fc
mov dword [esi], 0x5c
add edx, 1
cmp edx, ecx
je 0x40d71b
cmp word [0x43d8fc], 0
je 0x40d7b0
mov esi, 0x43d8fc
mov edi, 0xffff8000
nop word [eax + eax]
add edi, 1
cmp word [esi + 2], 0
lea esi, [esi + 2]
jne 0x40d7e0
test edi, edi
jne 0x40d7b5
jmp 0x40da72
add esi, 0xffffffff
sub eax, ecx
xor ecx, ecx
jmp 0x40d818
mov edx, 0x43d8fc
mov dword [edx], 0x5c
lea edx, [ecx + 1]
cmp esi, ecx
mov ecx, edx
je 0x40d71b
cmp word [0x43d8fc], 0
je 0x40d800
mov edx, 0x43d8fc
mov edi, 0xffff8000
nop dword [eax]
add edi, 1
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x40d830
test edi, edi
jne 0x40d805
jmp 0x40da72
neg ecx
xor eax, eax
jmp 0x40d86d
mov dword [edx], 0x5c
add eax, 2
cmp ecx, eax
je 0x40d8e0
mov edx, 0x43d8fc
cmp word [0x43d8fc], 0
mov esi, 0x43d8fc
je 0x40d8a5
mov esi, 0x43d8fc
mov edi, 0xffff8000
nop dword [eax + eax]
add edi, 1
cmp word [esi + 2], 0
lea esi, [esi + 2]
jne 0x40d890
test edi, edi
je 0x40da72
mov dword [esi], 0x5c
cmp word [0x43d8fc], 0
je 0x40d860
mov edx, 0x43d8fc
mov esi, 0xffff8000
nop
add esi, 1
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x40d8c0
test esi, esi
jne 0x40d860
jmp 0x40da72
cmp word [0x43d8fc], 0
je 0x40d920
mov eax, 0x43d8fc
mov ecx, 0xffff8000
nop word cs:[eax + eax]
nop
add ecx, 1
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x40d900
test ecx, ecx
jne 0x40d925
jmp 0x40da72
mov eax, 0x43d8fc
mov word [eax], 0x22
add eax, 2
mov word [eax], 0
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x40d5e0
jmp 0x40d9ad
cmp word [0x43d8fc], 0
je 0x40d971
mov ecx, 0x8000
mov edx, 0x43d8fc
nop word cs:[eax + eax]
nop
lea eax, [edx + 2]
add ecx, 0xffffffff
cmp word [edx + 2], 0
mov edx, eax
jne 0x40d960
jmp 0x40d97b
mov eax, 0x43d8fc
mov ecx, 0x8000
mov edx, dword [esp + 4]
mov edi, dword [edx + ebx*4]
movzx esi, word [edi]
test si, si
je 0x40d92d
xor edx, edx
nop dword [eax]
cmp ecx, edx
je 0x40da72
mov word [eax], si
add eax, 2
movzx esi, word [edi + edx*2 + 2]
add edx, 1
test si, si
jne 0x40d990
jmp 0x40d92d
sub esp, 0x28
lea eax, [esp + 0x38]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x4220d0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x43d8fc
mov dword [esp], 0x4318dc
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40daae
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [0x42f8c4], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x40da54
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xc]
push eax
push dword [0x42f8c4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40da3e
mov dword [esp + 0xc], 1
push dword [0x42f8c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42f8c4], 0
call fcn.0040cf60
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0040eab1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00413423
call fcn.0040dbe0
mov ecx, str.TEMPonefile_PID_TIME
call fcn.0040dac0
call fcn.0040ea70
call fcn.0040db00
mov ecx, str.Error__failed_to_register_signal_handler.
call fcn.0040daf0
call fcn.0040e860
mov dword [0x4340f8], 0
call fcn.0040e860
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040dc00
int3