Function at 0x409d50
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:
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
lea r12, [0x0041b060]
call fcn.00401e80
xor ecx, ecx
mov r8d, 0x1000
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a4d9
lea r13, str._TEMP_onefile__PID___TIME_
mov r8d, 0x1000
lea rcx, [0x0041d080]
mov rdx, r13
call fcn.00401ad0
test al, al
je 0x40a5f3
mov edx, 1
lea rcx, [0x004017a0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x40a217
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
lea rcx, [0x0041d080]
mov qword [rsp + 0x58], rax
call rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, r12
xor r9d, r9d
mov byte [0x0041d060], 1
mov r8d, 1
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x50], rax
call rax
mov qword [0x0041f080], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x40a59f
xor r8d, r8d
mov r9d, 2
mov edx, 0xfffffff8
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rbx
add eax, 1
je 0x40a5d4
lea r15, [rsp + 0x90]
xor r8d, r8d
mov r9d, 1
xor edx, edx
mov rcx, qword [0x0041f080]
call rbx
mov edx, 8
mov rcx, r15
call fcn.004015c0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x0041f080]
call rbx
add eax, 1
je 0x40a5b5
lea rcx, [rsp + 0x69]
mov edx, 3
call fcn.004015c0
cmp byte [rsp + 0x69], 0x4b
jne 0x40a561
cmp byte [rsp + 0x6a], 0x41
jne 0x40a542
cmp byte [rsp + 0x6b], 0x58
jne 0x40a523
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
lea r13, [rsp + 0x70]
nop dword [rax]
mov rdi, qword [sym.imp.msvcrt.dll__assert]
lea rbx, [0x00410060]
lea rsi, str.static_srcOnefileBootstrap.c
lea rbp, str.bool_res
jmp 0x409f27
mov r8d, 0xe5
mov rdx, rsi
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
movzx eax, word [rsp + 0x70]
mov word [rbx], ax
test ax, ax
je 0x409f65
add rbx, 2
mov qword [rsp + 0x20], 0
mov rcx, qword [0x0041f080]
mov r9, r15
mov rdx, r13
mov r8d, 2
call r14
test eax, eax
je 0x40a240
cmp dword [rsp + 0x90], 2
jne 0x409f00
movzx eax, word [rsp + 0x70]
mov word [rbx], ax
test ax, ax
jne 0x409f23
lea rax, [0x00410060]
movzx eax, word [rax]
test ax, ax
je 0x40a3da
lea rbx, [0x00410060]
lea r12, [0x00419060]
nop word cs:[rax + rax]
lea rdi, [0x0041d080]
movzx edx, word [rdi]
cmp ax, 0x5c
je 0x40a278
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x409f90
lea rax, [0x0041d080]
xor r8d, r8d
lea rdx, [0x00419060]
movzx ecx, word [rax]
mov word [0x00419060], r8w
test cx, cx
jne 0x409fe8
jmp 0x409ffb
lea rsi, [0x0041f080]
cmp rax, rsi
je 0x409d40
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x409fd8
xor ecx, ecx
mov word [rdx], cx
cmp word [0x00419060], 0
je 0x40a4fd
mov edx, 0x1000
lea rax, [0x00419060]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x40a020
test rdx, rdx
je 0x40a63e
mov dword [rax], 0x5c
lea rax, [0x00410060]
mov edx, 0x1000
cmp word [0x00419060], 0
movzx ecx, word [rax]
lea rax, [0x00419060]
je 0x40a4ef
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x40a068
test cx, cx
je 0x40a0b1
test rdx, rdx
je 0x40a643
lea r8, [0x00410060]
jmp 0x40a099
test rdx, rdx
je 0x40a639
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x40a090
xor edx, edx
cmp word [0x00418860], 0
mov word [rax], dx
je 0x40a3c0
mov rcx, r12
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
mov r8d, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call rax
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x40a60d
mov qword [rsp + 0x20], 0
mov rcx, qword [0x0041f080]
mov r9, r13
mov rdx, r15
mov r8d, 8
call r14
test eax, eax
je 0x40a3a0
cmp dword [rsp + 0x70], 8
je 0x40a14a
mov r8d, 0xe5
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
mov rsi, qword [rsp + 0x90]
lea rdi, [0x00410860]
lea rbp, str.static_srcOnefileBootstrap.c
test rsi, rsi
jne 0x40a179
jmp 0x40a209
sub rsi, rbx
je 0x40a209
mov ebx, 0x8000
mov rcx, qword [0x0041f080]
mov r9, r15
mov rdx, rdi
mov qword [rsp + 0x20], 0
cmp rsi, rbx
cmovbe rbx, rsi
mov r8d, ebx
call r14
test eax, eax
je 0x40a258
mov eax, dword [rsp + 0x90]
cmp rbx, rax
je 0x40a1cb
mov r8d, 0xe5
mov rdx, rbp
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a170
mov r8d, 0x9c
mov rdx, rbp
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
sub rsi, rbx
jne 0x40a179
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409ed8
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.00401560
mov eax, 1
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 0xe4
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x409f4e
mov r8d, 0xe4
mov rdx, rbp
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40a1a9
xor esi, esi
xor ebp, ebp
lea rcx, [0x00419060]
mov rax, rdi
mov word [rbx], si
mov word [0x00419060], bp
test dx, dx
jne 0x40a2b0
jmp 0x40a2c3
lea rdi, [0x0041f080]
cmp rax, rdi
je 0x409d40
add rax, 2
mov word [rcx], dx
add rcx, 2
movzx edx, word [rax]
test dx, dx
jne 0x40a2a0
xor r11d, r11d
mov word [rcx], r11w
cmp word [r12], 0
je 0x40a517
mov edx, 0x1000
lea rax, [0x00419060]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x40a2e8
test rdx, rdx
je 0x40a648
mov dword [rax], 0x5c
lea rax, [0x00410060]
mov edx, 0x1000
cmp word [r12], 0
movzx ecx, word [rax]
lea rax, [0x00419060]
je 0x40a509
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x40a330
test cx, cx
je 0x40a379
test rdx, rdx
je 0x40a64d
lea r8, [0x00410060]
jmp 0x40a361
test rdx, rdx
je 0x40a652
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x40a358
xor r9d, r9d
mov r10d, 0x5c
xor edx, edx
mov rcx, r12
mov word [rax], r9w
mov rax, qword [rsp + 0x58]
mov word [rbx], r10w
call rax
jmp 0x409fa4
mov r8d, 0xe4
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40a129
mov r8d, 0x1000
mov rdx, r12
lea rcx, [0x00418860]
call fcn.004018f0
jmp 0x40a0c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, pe_nt_image_headers64
mov rcx, r15
mov rdi, r15
mov r9d, eax
lea r8, [0x0040c134]
call fcn.00401540
mov rdx, r15
lea rcx, str.NUITKA_ONEFILE_PARENT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor eax, eax
mov ecx, 0x1a
rep stosd dword [rdi], eax
mov dword [rsp + 0x90], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
mov rdx, rax
lea rcx, [0x00418860]
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 0x40a580
mov rcx, qword [rsp + 0x78]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x6c], 0
mov qword [0x00410040], rcx
test rcx, rcx
je 0x40a4d0
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x00410040]
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40a4bc
mov dword [rsp + 0x6c], 1
mov rcx, qword [0x00410040]
call rbx
mov qword [0x00410040], 0
mov eax, dword [rsp + 0x6c]
jmp 0x40a228
lea rcx, str.Error__failed_to_locate_onefile_filename.
call fcn.00401560
mov eax, 1
jmp 0x40a228
test cx, cx
jne 0x40a084
jmp 0x40a0b1
lea rax, [0x00419060]
jmp 0x40a037
test cx, cx
jne 0x40a34c
jmp 0x40a379
lea rax, [0x00419060]
jmp 0x40a2ff
mov r8d, 0x2a1
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.header_2___X
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x409ec8
mov r8d, 0x29a
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.header_1___A
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x409ebd
mov r8d, 0x299
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.header_0___K
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x409eb2
mov r8d, 0x30d
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x40a46e
lea rcx, str.Error__failed_to_access_unpacked_executable.
call fcn.00401560
mov eax, 1
jmp 0x40a228
mov r8d, 0x291
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.res___INVALID_SET_FILE_POINTER
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x409e98
mov r8d, 0x282
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.res___INVALID_SET_FILE_POINTER
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x409e50
lea rcx, str.Error__couldnt_runtime_expand_temporary_directory_pattern:
call sub.msvcrt.dll_puts
mov rcx, r13
call qword [sym.imp.msvcrt.dll__putws]
call sub.msvcrt.dll_abort
mov ecx, 2
call qword [fcn.00409a80]
lea r8, [0x00419060]
lea rdx, str.Error__failed_to_open__ls_for_writing.
mov rcx, rax
call fcn.00401640
mov ecx, 2
call sub.msvcrt.dll_exit
nop
jmp 0x409d40
jmp 0x409d40
jmp 0x409d40
jmp 0x409d40
jmp 0x409d40
jmp 0x409d40