Function at 0x401f60
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 rbp
push r12
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
lea rcx, str.libgcc_s_dw2_1.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x401750
lea rcx, str.libgcc_s_dw2_1.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.__register_frame_info
mov rcx, r12
mov qword [0x00411040], rax
call rsi
lea rdx, str.__deregister_frame_info
mov rcx, r12
mov rbx, rax
call rsi
mov qword [0x0040b010], rax
test rbx, rbx
jne 0x401765
lea rcx, [0x00401780]
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop rbp
jmp fcn.00401680
lea rax, [0x004016c0]
lea rbx, [0x004016b0]
mov qword [0x0040b010], rax
lea rdx, [0x00411060]
lea rcx, [section..eh_fram]
call rbx
jmp 0x401738
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
call qword [0x0040b100]
xor ecx, ecx
mov r8d, 0x1000
lea rdx, [0x0041c0c0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4028b0
mov r8d, 0x1000
lea rdx, str._TEMP_onefile__PID___TIME_
lea rcx, [0x0041e0e0]
call fcn.00401c70
test al, al
je 0x402bee
mov edx, 1
lea rcx, [0x00401940]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x402569
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
lea rcx, [0x0041e0e0]
mov qword [rsp + 0x68], rax
call rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov byte [0x0041e0c0], 1
mov qword [rsp + 0x30], 0
mov r8d, 1
mov edx, 0x80000000
lea rcx, [0x0041c0c0]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x60], rax
call rax
mov qword [0x004200e0], rax
cmp rax, 0xffffffffffffffff
je 0x402b09
xor r8d, r8d
xor edx, edx
lea rcx, [0x0041c0c0]
mov rsi, qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
call rsi
lea ecx, [rax + 1]
mov ebx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x402bcf
mov r8d, ebx
mov rdx, r12
lea rcx, [0x0041c0c0]
call rsi
lea rbp, [rsp + 0xa0]
test eax, eax
je 0x402afc
xor r8d, r8d
xor edx, edx
mov rbx, qword [sym.imp.msvcrt.dll_wcstombs_s]
mov r9, r12
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rcx, rbp
call rbx
test eax, eax
jne 0x402afc
mov rsi, qword [rsp + 0xa0]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x402ab7
mov r9, r12
mov r8, rsi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], 0xffffffffffffffff
call rbx
test eax, eax
jne 0x402af4
xor r9d, r9d
mov r8, rbp
lea rdx, str.dont_search_path
mov rcx, r13
mov dword [rsp + 0x20], 1
call qword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
jne 0x4029f9
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, qword [0x004200e0]
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
mov edx, 0xfffffff8
mov r9d, 2
call rbx
cmp eax, 0xffffffff
je 0x402b85
lea r13, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x004200e0]
mov r9d, 1
call rbx
mov rcx, qword [0x004200e0]
mov r9, r13
mov rdx, rbp
mov qword [rsp + 0x20], 0
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, 8
call r15
test eax, eax
je 0x402a79
cmp dword [rsp + 0x80], 8
jne 0x4029da
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xa0]
mov rcx, qword [0x004200e0]
call rbx
cmp eax, 0xffffffff
je 0x402b66
mov rcx, qword [0x004200e0]
lea rdx, [rsp + 0x79]
mov r9, rbp
mov qword [rsp + 0x20], 0
mov r8d, 3
call r15
test eax, eax
je 0x402a5a
cmp dword [rsp + 0xa0], 3
jne 0x4029b3
cmp byte [rsp + 0x79], 0x4b
jne 0x40298c
cmp byte [rsp + 0x7a], 0x41
jne 0x402965
cmp byte [rsp + 0x7b], 0x58
jne 0x402946
nop dword [rax]
mov r12, qword [sym.imp.msvcrt.dll__assert]
lea rbx, [0x004110c0]
lea rsi, str.static_srcOnefileBootstrap.c
mov rdi, r12
jmp 0x402256
mov r8d, 0xeb
mov rdx, rsi
lea rcx, str.read_size__size
call rdi
movzx eax, word [rsp + 0x80]
mov word [rbx], ax
test ax, ax
je 0x402297
add rbx, 2
mov qword [rsp + 0x20], 0
mov rcx, qword [0x004200e0]
mov r9, rbp
mov rdx, r13
mov r8d, 2
call r15
test eax, eax
je 0x4025d8
cmp dword [rsp + 0xa0], 2
jne 0x402230
movzx eax, word [rsp + 0x80]
mov word [rbx], ax
test ax, ax
jne 0x402252
lea rax, [0x004110c0]
movzx edx, word [rax]
test dx, dx
je 0x4027a0
movzx eax, word [0x0041e0e0]
lea rsi, [0x0041e0e0]
lea rbx, [0x004110c0]
lea rdi, [0x0041a0c0]
nop word cs:[rax + rax]
cmp dx, 0x5c
je 0x402610
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x4022d0
xor r8d, r8d
lea rdx, [0x0041a0c0]
lea rcx, [0x0041e0e0]
mov word [0x0041a0c0], r8w
lea r8, [rdx + 0x2000]
test ax, ax
jne 0x402319
jmp 0x40232c
cmp rdx, r8
je 0x40a540
add rcx, 2
mov word [rdx], ax
add rdx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x402310
xor ecx, ecx
mov word [rdx], cx
cmp word [0x0041a0c0], 0
je 0x402920
mov edx, 0x1000
lea rax, [0x0041a0c0]
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x402350
test rdx, rdx
je 0x402c0d
mov dword [rax], 0x5c
lea rax, [0x004110c0]
mov edx, 0x1000
cmp word [0x0041a0c0], 0
movzx ecx, word [rax]
lea rax, [0x0041a0c0]
je 0x402910
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x402398
test cx, cx
je 0x4023e1
test rdx, rdx
je 0x402c12
lea r8, [0x004110c0]
jmp 0x4023c9
test rdx, rdx
je 0x402c17
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x4023c0
xor edx, edx
cmp word [0x004198c0], 0
mov word [rax], dx
je 0x402750
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov r8d, 2
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
lea rcx, [0x0041a0c0]
mov dword [rsp + 0x20], 2
call rax
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x402ba4
mov qword [rsp + 0x20], 0
mov rcx, qword [0x004200e0]
mov r9, r13
mov rdx, rbp
mov r8d, 8
call r15
test eax, eax
je 0x402730
cmp dword [rsp + 0x80], 8
je 0x402481
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
test rsi, rsi
je 0x40255b
mov r14, qword [sym.imp.msvcrt.dll__assert]
mov qword [rsp + 0x58], r14
jmp 0x4024b9
sub rsi, rbx
je 0x40255b
cmp rsi, 0x8000
mov ebx, 0x8000
mov qword [rsp + 0x20], 0
mov rcx, qword [0x004200e0]
cmovbe rbx, rsi
mov r9, rbp
lea rdx, [0x004118c0]
mov r8d, ebx
call r15
test eax, eax
je 0x4025f0
mov eax, dword [rsp + 0xa0]
cmp rbx, rax
je 0x402514
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call r14
xor r9d, r9d
mov r8d, ebx
lea rdx, [0x004118c0]
mov rcx, r12
mov qword [rsp + 0x20], 0
call rdi
test eax, eax
jne 0x4024b0
mov rax, qword [rsp + 0x58]
mov r8d, 0xa2
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call rax
sub rsi, rbx
jne 0x4024b9
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov ecx, 0x1300
mov r8d, eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_register_signal_handler.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0xa0]
call sub.msvcrt.dll_puts
mov eax, 1
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 0xea
mov rdx, rsi
lea rcx, str.bool_res
call r12
jmp 0x40227d
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4024f1
xor r12d, r12d
xor r14d, r14d
lea rcx, [0x0041a0c0]
mov word [rbx], r12w
lea rdx, [0x0041e0e0]
mov word [0x0041a0c0], r14w
test ax, ax
jne 0x402650
jmp 0x402663
lea r10, [0x004200e0]
cmp rdx, r10
je 0x40a540
add rdx, 2
mov word [rcx], ax
add rcx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x402640
xor r11d, r11d
mov word [rcx], r11w
cmp word [rdi], 0
je 0x40293a
mov edx, 0x1000
lea rax, [0x0041a0c0]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x402680
test rdx, rdx
je 0x402c26
mov dword [rax], 0x5c
cmp word [rdi], 0
mov edx, 0x1000
lea rax, [0x004110c0]
movzx ecx, word [rax]
lea rax, [0x0041a0c0]
je 0x40292c
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x4026c0
test cx, cx
je 0x402709
test rdx, rdx
je 0x402c1c
lea r8, [0x004110c0]
jmp 0x4026f1
test rdx, rdx
je 0x402c21
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x4026e8
xor r9d, r9d
mov r10d, 0x5c
xor edx, edx
mov rcx, rdi
mov word [rax], r9w
mov rax, qword [rsp + 0x68]
mov word [rbx], r10w
call rax
movzx eax, word [rsi]
jmp 0x4022da
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40245d
movzx ecx, word [0x0041a0c0]
lea rax, [0x0041a0c0]
lea rdx, [0x004198c0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x402781
jmp 0x402794
cmp rax, r8
je 0x40a540
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x402778
xor eax, eax
mov word [rdx], ax
jmp 0x4023f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, pe_nt_image_headers64
mov rcx, rbp
mov rdi, rbp
mov r9d, eax
lea r8, [0x0040c14e]
call fcn.004017c0
mov rdx, rbp
lea rcx, str.NUITKA_ONEFILE_PARENT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor eax, eax
mov ecx, 0xd
rep stosq qword [rdi], rax
mov dword [rsp + 0xa0], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbp
mov rdx, rax
lea rcx, [0x004198c0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402a98
mov rcx, qword [rsp + 0x88]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x7c], 0
mov qword [0x004110a0], rcx
test rcx, rcx
je 0x40289f
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x004110a0]
lea rdx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40288b
mov dword [rsp + 0x7c], 1
mov rcx, qword [0x004110a0]
call rbx
mov qword [0x004110a0], 0
call fcn.00401810
mov eax, dword [rsp + 0x7c]
jmp 0x4025c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov ecx, 0x1300
mov r8d, eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_locate_onefile_filename.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0xa0]
call sub.msvcrt.dll_puts
mov eax, 1
jmp 0x4025c1
test cx, cx
jne 0x4023b4
jmp 0x4023e1
lea rax, [0x0041a0c0]
jmp 0x402367
test cx, cx
jne 0x4026dc
jmp 0x402709
lea rax, [0x0041a0c0]
jmp 0x402697
mov r8d, 0x2e7
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.header_2___X
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x402210
mov r8d, 0x2e0
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.header_1___A
call qword [sym.imp.msvcrt.dll__assert]
cmp byte [rsp + 0x7b], 0x58
je 0x402210
jmp 0x402946
mov r8d, 0x2df
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.header_0___K
call qword [sym.imp.msvcrt.dll__assert]
cmp byte [rsp + 0x7a], 0x41
je 0x402202
jmp 0x402965
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
cmp byte [rsp + 0x79], 0x4b
je 0x4021f7
jmp 0x40298c
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x402196
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x402a4c
cmp dword [rax + 0x84], 4
jbe 0x402a4c
mov ebx, dword [rax + 0xa8]
mov rcx, rbp
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov rcx, r13
call sub.msvcrt.dll_free
test ebx, ebx
je 0x402117
lea edx, [rbx - 8]
mov rcx, qword [0x004200e0]
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rbx
jmp 0x402135
mov rcx, rbp
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
jmp 0x40210f
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4021de
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x402188
mov r8d, 0x357
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x402835
mov r8d, 0x1f5
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.ansiPath
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov r9, r12
mov rcx, rbp
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r8, qword [rsp + 0xa0]
call rbx
test eax, eax
je 0x402117
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x402117
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov ecx, 0x1300
mov r8d, eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_access_unpacked_executable.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0xa0]
call sub.msvcrt.dll_puts
mov eax, 1
jmp 0x4025c1
mov r8d, 0x2d7
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.res___INVALID_SET_FILE_POINTER
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4021b5
mov r8d, 0x2c8
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.res___INVALID_SET_FILE_POINTER
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40213e
mov ecx, 2
call qword [fcn.0040a1d0]
lea r8, [0x0041a0c0]
lea rdx, str.Error__failed_to_open__ls_for_writing.
mov rcx, rax
call fcn.004017e0
mov ecx, 2
call sub.msvcrt.dll_exit
mov r8d, 0x1e9
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.shortPath
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40206a
lea rcx, str.Error__couldnt_runtime_expand_temporary_directory_pattern:
call sub.msvcrt.dll_puts
lea rcx, str._TEMP_onefile__PID___TIME_
call qword [sym.imp.msvcrt.dll__putws]
call sub.msvcrt.dll_abort
nop
jmp 0x40a540
jmp 0x40a540
jmp 0x40a540
jmp 0x40a540
jmp 0x40a540
jmp 0x40a540
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x4016d0