Function at 0x4016b0
Capabilities:
Accept command line arguments
Create directory
Create process on windows
Read file on windows
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x41b004]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push ecx
call fcn.004011d0
add esp, 4
test al, al
je 0x401dbe
push 1
push 0x401670
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x401740
push eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push str.Error__failed_to_register_signal_handler.
call fcn.004053d0
add esp, 4
push dword [esp + 0xc]
call fcn.004053d0
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00401de7
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1000
push 0x42ac40
push 0
call esi
test eax, eax
je 0x401ddc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x42ac40
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41ec34], eax
cmp eax, 0xffffffff
jne 0x4017ac
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push str.Error__failed_to_access_unpacked_executable.
jmp 0x401713
push 0x1000
xor eax, eax
push 0x42ac40
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x401ddc
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
push 0x42ac40
call edi
mov dword [esp + 0x14], eax
lea ecx, [eax*2 + 2]
push ecx
call fcn.00407553
mov esi, eax
add esp, 4
test esi, esi
je 0x401dc3
push dword [esp + 0x14]
push esi
push 0x42ac40
call edi
test eax, eax
je 0x40185a
push 0xffffffffffffffff
push esi
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00407533
add esp, 0x14
test eax, eax
jne 0x40185a
push dword [esp + 0x10]
call fcn.00407553
mov edi, eax
add esp, 4
test edi, edi
je 0x401dc8
push 0xffffffffffffffff
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00407533
add esp, 0x14
test eax, eax
je 0x401962
push edi
call fcn.004071a4
add esp, 4
push esi
call fcn.004071a4
add esp, 4
push 2
push 0
push 0xfffffffffffffff8
push dword [0x41ec34]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
cmp eax, 0xffffffff
je 0x401db9
push 1
push 0
push 0
push dword [0x41ec34]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov dword [0x41ec38], eax
lea eax, [esp + 0x10]
push eax
push 8
lea eax, [esp + 0x2c]
push eax
push dword [0x41ec34]
call edi
test eax, eax
je 0x401dd2
cmp dword [esp + 0xc], 8
jne 0x401dd2
mov ecx, dword [0x41ec38]
xor eax, eax
sub ecx, dword [esp + 0x20]
push 0
sbb eax, dword [esp + 0x28]
push 0
push ecx
push dword [0x41ec34]
mov dword [esp + 0x4c], eax
call esi
cmp eax, 0xffffffff
je 0x401db9
mov edx, 3
lea ecx, [esp + 0x18]
call fcn.00401530
cmp byte [esp + 0x18], 0x4b
jne 0x401db9
cmp byte [esp + 0x19], 0x41
jne 0x401db9
cmp byte [esp + 0x1a], 0x58
jne 0x401db9
mov byte [0x41ec3c], 1
mov esi, 0x42cc50
push 0
lea eax, [esp + 0x30]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [0x41ec34]
call edi
test eax, eax
je 0x401dd2
cmp dword [esp + 0x2c], 2
jne 0x401dd2
mov ax, word [esp + 0x10]
mov word [esi], ax
test ax, ax
je 0x4019d2
add esi, 2
jmp 0x401927
push esi
call fcn.004071a4
add esp, 4
lea eax, [esp + 0x98]
push 1
push 0
push eax
push str.dont_search_path
push edi
call dword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
je 0x4019b0
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4019a2
cmp dword [eax + 0x74], 4
jbe 0x4019a2
mov eax, dword [eax + 0x98]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.imagehlp.dll_UnMapAndLoad]
push edi
call fcn.004071a4
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x401863
push 0
push 0
add eax, 0xfffffff8
push eax
jmp 0x401869
cmp word [0x42cc50], 0
je 0x401c84
xor eax, eax
mov edx, 0x1000
mov ecx, 0x41c430
mov word [0x41c430], ax
cmp word [0x41ec40], ax
je 0x401a1d
mov esi, 0x41ec40
sub esi, ecx
cmp edx, 1
jb 0x401ddc
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x401a02
xor eax, eax
mov word [ecx], ax
mov ecx, 0x1000
cmp word [0x41c430], 0
mov eax, 0x41c430
je 0x401a49
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x401a36
cmp ecx, 1
jb 0x401ddc
mov dword [eax], 0x5c
mov edx, 0x1000
cmp word [0x41c430], 0
mov eax, 0x41c430
je 0x401a6d
add eax, 2
dec edx
cmp word [eax], 0
jne 0x401a63
mov esi, 0x42cc50
sub esi, eax
cmp edx, 1
jb 0x401ddc
mov cx, word [esi + eax]
dec edx
mov word [eax], cx
add eax, 2
cmp word [esi + eax], 0
jne 0x401a74
xor ecx, ecx
mov word [eax], cx
cmp word [0x41e430], cx
jne 0x401ae0
cmp word [0x41c430], 0
mov edx, 0x1000
mov ecx, 0x41e430
je 0x401adb
mov esi, 0x41c430
sub esi, ecx
nop dword [eax + eax]
cmp edx, 1
jb 0x401ddc
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x401ac0
xor eax, eax
mov word [ecx], ax
push 0
lea eax, [esp + 0x34]
push eax
push 8
lea eax, [esp + 0x44]
push eax
push dword [0x41ec34]
call edi
test eax, eax
je 0x401dd2
cmp dword [esp + 0x30], 8
jne 0x401dd2
mov eax, dword [esp + 0x3c]
mov edx, 0x1000
mov edi, dword [esp + 0x38]
mov ecx, 0x420c40
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xc], edi
mov word [0x420c40], ax
cmp word [0x41c430], ax
je 0x401b5b
mov esi, 0x41c430
sub esi, ecx
nop dword [eax + eax]
cmp edx, 1
jb 0x401ddc
mov ax, word [ecx + esi]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [ecx + esi], 0
jne 0x401b40
xor eax, eax
mov esi, 0x420c40
mov word [ecx], ax
mov ax, word [0x420c40]
test ax, ax
je 0x401ba3
movzx ecx, ax
mov edi, 0x5c
cmp cx, di
jne 0x401b91
xor eax, eax
push eax
push 0x420c40
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], di
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x401b78
mov edi, dword [esp + 0xc]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x41c430
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x401dd7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401be2
test edi, edi
je 0x401c6a
nop dword [eax]
test eax, eax
ja 0x401bf2
jb 0x401bee
cmp edi, 0x8000
ja 0x401bf2
mov esi, edi
jmp 0x401bf7
mov esi, 0x8000
push 0
lea eax, [esp + 0x38]
push eax
push esi
push 0x422c40
push dword [0x41ec34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401dd2
cmp dword [esp + 0x34], esi
jne 0x401dd2
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push esi
push 0x422c40
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401dcd
mov eax, esi
cdq
sub edi, eax
mov eax, dword [esp + 0x14]
sbb eax, edx
mov dword [esp + 0x14], eax
test eax, eax
ja 0x401bf2
jb 0x401c66
test edi, edi
jne 0x401be0
mov ecx, dword [esp + 0xc]
or edi, eax
jne 0x401dd2
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x401922
push dword [0x41ec34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x419990
lea eax, [esp + 0xd0]
push 0x80
push eax
call fcn.00401040
add esp, 0x10
lea eax, [esp + 0xc8]
push eax
push str.NUITKA_ONEFILE_PARENT
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0x44
push eax
lea eax, [esp + 0x54]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x41e430
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401de1
push dword [esp + 0x44]
call esi
mov eax, dword [esp + 0x40]
mov dword [0x41ec30], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x401d9c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x1c]
push eax
push dword [0x41ec30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x1c]
test eax, eax
push dword [0x41ec30]
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x20], ecx
call esi
mov dword [0x41ec30], 0
call fcn.00401560
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00401de7
mov esp, ebp
pop ebp
ret
call fcn.00401490
call fcn.00401500
call fcn.004014b0
call fcn.004014b0
call fcn.00401480
call fcn.004014a0
call fcn.004014d0
call fcn.00404f01
call fcn.004014c0
int3