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

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, str.libgcc_s_dw2_1.dll
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x1400017b0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.__register_frame_info
mov rcx, r12
mov qword [0x140011040], rax
call r13
lea rdx, str.__deregister_frame_info
mov rcx, r12
mov rbx, rax
call r13
mov qword [0x14000b010], rax
test rbx, rbx
jne 0x1400017c5
lea rcx, [0x1400017e0]
add rsp, 0x28
pop rbx
pop r12
pop r13
pop rbp
jmp fcn.1400016d5
lea rax, [0x140001720]
lea rbx, [0x140001710]
mov qword [0x14000b010], rax
lea rdx, [0x140011060]
lea rcx, [section..eh_fram]
call rbx
jmp 0x140001797
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
lea rcx, [0x14001e0c0]
lea r13, [0x14001c0c0]
mov qword [rsp + 0x60], rax
call rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov rcx, r13
mov byte [0x1400200c0], 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 + 0x58], rax
call rax
mov qword [0x14001c0a8], rax
cmp rax, 0xffffffffffffffff
je 0x140002839
xor r8d, r8d
xor edx, edx
mov rcx, r13
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 0x1400028bd
mov r8d, ebx
mov rdx, rax
mov rcx, r13
call rsi
test eax, eax
je 0x14000281e
lea r14, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
mov r9, r12
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rbx, qword [sym.imp.msvcrt.dll_wcstombs_s]
mov rcx, r14
call rbx
test eax, eax
jne 0x14000281e
mov rsi, qword [rsp + 0xb0]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400028bd
mov r9, r12
mov r8, rsi
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], 0xffffffffffffffff
call rbx
test eax, eax
jne 0x140002816
xor r9d, r9d
mov r8, r14
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 0x1400024c6
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, qword [0x14001c0a8]
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
mov edx, 0xfffffff8
mov r9d, 2
call rbx
cmp eax, 0xffffffff
je 0x140002896
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001c0a8]
mov r9d, 1
call rbx
mov rcx, qword [0x14001c0a8]
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov eax, eax
lea r9, [rsp + 0x7c]
mov r8d, 8
mov qword [0x14001c0a0], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov rdx, rax
call rsi
test eax, eax
je 0x140002896
cmp dword [rsp + 0x7c], 8
jne 0x140002896
mov rdx, qword [0x14001c0a0]
xor r9d, r9d
xor r8d, r8d
sub edx, dword [rsp + 0x90]
mov rcx, qword [0x14001c0a8]
call rbx
cmp eax, 0xffffffff
je 0x140002896
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a8]
lea rdx, [rsp + 0x79]
lea r9, [rsp + 0x80]
mov r8d, 3
call rsi
test eax, eax
je 0x140002896
cmp dword [rsp + 0x80], 3
jne 0x140002896
cmp byte [rsp + 0x79], 0x4b
jne 0x140002896
cmp byte [rsp + 0x7a], 0x41
jne 0x140002896
cmp byte [rsp + 0x7b], 0x58
jne 0x140002896
lea r13, [rsp + 0x84]
lea rbp, [rsp + 0x76]
nop
lea rbx, [0x14001b8a0]
jmp 0x140002214
add rbx, 2
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a8]
mov r9, r13
mov rdx, rbp
mov r8d, 2
call rsi
test eax, eax
je 0x140002896
cmp dword [rsp + 0x84], 2
jne 0x140002896
movzx eax, word [rsp + 0x76]
mov word [rbx], ax
test ax, ax
jne 0x140002210
lea rax, [0x14001b8a0]
movzx eax, word [rax]
test ax, ax
je 0x1400026a0
lea rbx, [0x14001b8a0]
lea r12, [0x1400198a0]
nop word cs:[rax + rax]
lea rdi, [0x14001e0c0]
movzx edx, word [rdi]
cmp ax, 0x5c
je 0x140002528
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140002280
lea rax, [0x14001e0c0]
xor r8d, r8d
lea rdx, [0x1400198a0]
movzx ecx, word [rax]
mov word [0x1400198a0], r8w
test cx, cx
jne 0x1400022d8
jmp 0x1400022eb
lea rdi, [0x1400200c0]
cmp rax, rdi
je 0x14000a2e6
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400022c8
xor ecx, ecx
mov word [rdx], cx
cmp word [0x1400198a0], 0
je 0x1400027f0
mov edx, 0x1000
lea rax, [0x1400198a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002310
test rdx, rdx
je 0x14000290e
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
mov edx, 0x1000
cmp word [0x1400198a0], 0
movzx ecx, word [rax]
lea rax, [0x1400198a0]
je 0x1400027e0
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002358
test cx, cx
je 0x1400023a1
test rdx, rdx
je 0x140002913
lea r8, [0x14001b8a0]
jmp 0x140002389
test rdx, rdx
je 0x140002909
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002380
xor edx, edx
cmp word [0x1400190a0], 0
mov word [rax], dx
je 0x140002650
mov rcx, r12
mov rax, qword [rsp + 0x58]
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 0x1400028ce
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a8]
lea rdx, [rsp + 0xb0]
lea r9, [rsp + 0x88]
mov r8d, 8
call rsi
test eax, eax
je 0x140002896
cmp dword [rsp + 0x88], 8
jne 0x140002896
mov rbx, qword [rsp + 0xb0]
lea r15, [rsp + 0x8c]
lea rdi, [0x1400110a0]
test rbx, rbx
je 0x1400024b8
nop dword [rax]
mov r14d, 0x8000
mov rcx, qword [0x14001c0a8]
mov r9, r15
mov rdx, rdi
mov qword [rsp + 0x20], 0
cmp rbx, r14
cmovbe r14, rbx
mov r8d, r14d
call rsi
test eax, eax
je 0x140002896
mov eax, dword [rsp + 0x8c]
cmp r14, rax
jne 0x140002896
xor r9d, r9d
mov r8d, r14d
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000289b
sub rbx, r14
jne 0x140002450
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002200
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x14000282b
cmp dword [rax + 0x84], 4
jbe 0x14000282b
mov ebx, dword [rax + 0xa8]
mov rcx, r14
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov rcx, r13
call sub.msvcrt.dll_free
test ebx, ebx
je 0x1400020e4
lea edx, [rbx - 8]
mov rcx, qword [0x14001c0a8]
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rbx
jmp 0x140002102
xor r14d, r14d
xor r15d, r15d
lea rcx, [0x1400198a0]
mov rax, rdi
mov word [rbx], r14w
mov word [0x1400198a0], r15w
test dx, dx
jne 0x140002560
jmp 0x140002573
lea rdi, [0x1400200c0]
cmp rax, rdi
je 0x14000a2e6
add rax, 2
mov word [rcx], dx
add rcx, 2
movzx edx, word [rax]
test dx, dx
jne 0x140002550
xor r11d, r11d
mov word [rcx], r11w
cmp word [r12], 0
je 0x14000280a
mov edx, 0x1000
lea rax, [0x1400198a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002598
test rdx, rdx
je 0x140002904
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
mov edx, 0x1000
cmp word [r12], 0
movzx ecx, word [rax]
lea rax, [0x1400198a0]
je 0x1400027fc
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400025e0
test cx, cx
je 0x140002629
test rdx, rdx
je 0x1400028fa
lea r8, [0x14001b8a0]
jmp 0x140002611
test rdx, rdx
je 0x1400028ff
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002608
xor r9d, r9d
mov r10d, 0x5c
xor edx, edx
mov rcx, r12
mov word [rax], r9w
mov rax, qword [rsp + 0x60]
mov word [rbx], r10w
call rax
jmp 0x140002294
movzx ecx, word [0x1400198a0]
lea rax, [0x1400198a0]
lea rdx, [0x1400190a0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x140002681
jmp 0x140002694
cmp rax, r8
je 0x14000a2e6
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140002678
xor eax, eax
mov word [rdx], ax
jmp 0x1400023b4
lea rbp, [rsp + 0xb0]
mov rcx, qword [0x14001c0a8]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14000c0fa]
mov edx, pe_nt_image_headers64
mov rcx, rbp
mov r9d, eax
call fcn.140001820
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 + 0xb0], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbp
mov rdx, rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], 0
lea rcx, [0x1400190a0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400028ac
mov rcx, qword [rsp + 0x98]
call rbx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x8c], 0
mov qword [0x1400200c8], rcx
test rcx, rcx
je 0x1400027be
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400200c8]
lea rdx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400027aa
mov dword [rsp + 0x8c], 1
mov rcx, qword [0x1400200c8]
call rbx
mov qword [0x1400200c8], 0
call fcn.1400018c0
mov eax, dword [rsp + 0x8c]
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test cx, cx
jne 0x140002374
jmp 0x1400023a1
lea rax, [0x1400198a0]
jmp 0x140002327
test cx, cx
jne 0x1400025fc
jmp 0x140002629
lea rax, [0x1400198a0]
jmp 0x1400025af
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x1400020e4
mov rcx, r14
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
jmp 0x1400020dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov ecx, 0x1300
mov r8d, eax
lea rax, [rsp + 0xb0]
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 + 0xb0]
call sub.msvcrt.dll_puts
mov eax, 1
jmp 0x1400027ca
call fcn.1400018a0
lea rcx, str.Error__couldnt_runtime_expand_temporary_files.
call fcn.140001840
call sub.msvcrt.dll_abort
lea rcx, str.Error__couldnt_launch_child.
call fcn.140001840
call sub.msvcrt.dll_abort
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.140001840
call sub.msvcrt.dll_abort
mov ecx, 2
call qword [fcn.140009fa0]
lea r8, [0x1400198a0]
lea rdx, str.Error__failed_to_open__ls_for_writing.
mov rcx, rax
call fcn.140001f60
mov ecx, 2
call sub.msvcrt.dll_exit
nop
jmp 0x14000a2e6
jmp 0x14000a2e6
jmp 0x14000a2e6
jmp 0x14000a2e6
jmp 0x14000a2e6
jmp 0x14000a2e6
sub rsp, 0x58
xor ecx, ecx
mov r8d, 0x1000
lea rdx, [0x14001c0c0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400029d0
call fcn.140001a10
test al, al
je 0x140002a27
mov edx, 1
lea rcx, [0x1400019f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002970
add rsp, 0x58
jmp 0x140001f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
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 + 0x48]
call sub.msvcrt.dll_puts
mov eax, 1
add rsp, 0x58
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
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 + 0x48]
call sub.msvcrt.dll_puts
mov eax, 1
add rsp, 0x58
ret
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
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp qword [sym.imp.imagehlp.dll_UnMapAndLoad]
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp 0x140001730