Function at 0x140002760
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 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 [0x14001c0a0], rax
cmp rax, 0xffffffffffffffff
je 0x140002679
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 0x1400026fd
mov r8d, ebx
mov rdx, rax
mov rcx, r13
call rsi
test eax, eax
je 0x14000265e
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 0x14000265e
mov rsi, qword [rsp + 0xb0]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400026fd
mov r9, r12
mov r8, rsi
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], 0xffffffffffffffff
call rbx
test eax, eax
jne 0x140002656
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 0x140002306
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, qword [0x14001c0a0]
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
mov edx, 0xfffffff8
mov r9d, 2
call rbx
cmp eax, 0xffffffff
je 0x1400026d6
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001c0a0]
mov r9d, 1
call rbx
lea rax, [rsp + 0x90]
mov rcx, qword [0x14001c0a0]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x68], rax
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rsp + 0x7c]
mov rdx, rax
mov r8d, 8
call rsi
test eax, eax
je 0x1400026d6
cmp dword [rsp + 0x7c], 8
jne 0x1400026d6
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x14001c0a0]
call rbx
cmp eax, 0xffffffff
je 0x1400026d6
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a0]
lea rdx, [rsp + 0x79]
lea r9, [rsp + 0x80]
mov r8d, 3
call rsi
test eax, eax
je 0x1400026d6
cmp dword [rsp + 0x80], 3
jne 0x1400026d6
cmp byte [rsp + 0x79], 0x4b
jne 0x1400026d6
cmp byte [rsp + 0x7a], 0x41
jne 0x1400026d6
cmp byte [rsp + 0x7b], 0x58
jne 0x1400026d6
lea r13, [rsp + 0x84]
lea rbp, [rsp + 0x76]
nop
lea rbx, [0x14001b8a0]
jmp 0x140002054
add rbx, 2
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a0]
mov r9, r13
mov rdx, rbp
mov r8d, 2
call rsi
test eax, eax
je 0x1400026d6
cmp dword [rsp + 0x84], 2
jne 0x1400026d6
movzx eax, word [rsp + 0x76]
mov word [rbx], ax
test ax, ax
jne 0x140002050
lea rax, [0x14001b8a0]
movzx eax, word [rax]
test ax, ax
je 0x1400024e0
lea rbx, [0x14001b8a0]
lea r12, [0x1400198a0]
nop word cs:[rax + rax]
lea rdi, [0x14001e0c0]
movzx edx, word [rdi]
cmp ax, 0x5c
je 0x140002368
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400020c0
lea rax, [0x14001e0c0]
xor r8d, r8d
lea rdx, [0x1400198a0]
movzx ecx, word [rax]
mov word [0x1400198a0], r8w
test cx, cx
jne 0x140002118
jmp 0x14000212b
lea rdi, [0x1400200c0]
cmp rax, rdi
je 0x14000a126
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140002108
xor ecx, ecx
mov word [rdx], cx
cmp word [0x1400198a0], 0
je 0x140002630
mov edx, 0x1000
lea rax, [0x1400198a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002150
test rdx, rdx
je 0x14000274e
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
mov edx, 0x1000
cmp word [0x1400198a0], 0
movzx ecx, word [rax]
lea rax, [0x1400198a0]
je 0x140002618
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002198
test cx, cx
je 0x1400021e1
test rdx, rdx
je 0x140002753
lea r8, [0x14001b8a0]
jmp 0x1400021c9
test rdx, rdx
je 0x140002749
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x1400021c0
xor edx, edx
cmp word [0x1400190a0], 0
mov word [rax], dx
je 0x140002490
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 0x14000270e
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a0]
lea rdx, [rsp + 0xb0]
lea r9, [rsp + 0x88]
mov r8d, 8
call rsi
test eax, eax
je 0x1400026d6
cmp dword [rsp + 0x88], 8
jne 0x1400026d6
mov rbx, qword [rsp + 0xb0]
lea r15, [rsp + 0x8c]
lea rdi, [0x1400110a0]
test rbx, rbx
je 0x1400022f8
nop dword [rax]
mov r14d, 0x8000
mov rcx, qword [0x14001c0a0]
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 0x1400026d6
mov eax, dword [rsp + 0x8c]
cmp r14, rax
jne 0x1400026d6
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 0x1400026db
sub rbx, r14
jne 0x140002290
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002040
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x14000266b
cmp dword [rax + 0x84], 4
jbe 0x14000266b
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 0x140001f34
lea edx, [rbx - 8]
mov rcx, qword [0x14001c0a0]
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rbx
jmp 0x140001f52
xor r14d, r14d
xor r15d, r15d
lea rcx, [0x1400198a0]
mov rax, rdi
mov word [rbx], r14w
mov word [0x1400198a0], r15w
test dx, dx
jne 0x1400023a0
jmp 0x1400023b3
lea rdi, [0x1400200c0]
cmp rax, rdi
je 0x14000a126
add rax, 2
mov word [rcx], dx
add rcx, 2
movzx edx, word [rax]
test dx, dx
jne 0x140002390
xor r11d, r11d
mov word [rcx], r11w
cmp word [r12], 0
je 0x14000264a
mov edx, 0x1000
lea rax, [0x1400198a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x1400023d8
test rdx, rdx
je 0x140002744
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
mov edx, 0x1000
cmp word [r12], 0
movzx ecx, word [rax]
lea rax, [0x1400198a0]
je 0x14000263c
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002420
test cx, cx
je 0x140002469
test rdx, rdx
je 0x14000273a
lea r8, [0x14001b8a0]
jmp 0x140002451
test rdx, rdx
je 0x14000273f
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140002448
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 0x1400020d4
movzx ecx, word [0x1400198a0]
lea rax, [0x1400198a0]
lea rdx, [0x1400190a0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x1400024c1
jmp 0x1400024d4
cmp rax, r8
je 0x14000a126
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400024b8
xor eax, eax
mov word [rdx], ax
jmp 0x1400021f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rbp, [rsp + 0xb0]
mov edx, pe_nt_image_headers64
lea r8, [0x14000c0fa]
mov r9d, eax
mov rcx, rbp
mov rdi, rbp
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 0x1400026ec
mov rcx, qword [rsp + 0x98]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x8c], 0
mov qword [0x1400200c8], rcx
test rcx, rcx
je 0x1400025f5
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 0x1400025e1
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 0x1400021b4
jmp 0x1400021e1
lea rax, [0x1400198a0]
jmp 0x140002167
test cx, cx
jne 0x14000243c
jmp 0x140002469
lea rax, [0x1400198a0]
jmp 0x1400023ef
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001f34
mov rcx, r14
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
jmp 0x140001f2c
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 0x140002601
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.140009de0]
lea r8, [0x1400198a0]
lea rdx, str.Error__failed_to_open__ls_for_writing.
mov rcx, rax
call fcn.140001db0
mov ecx, 2
call sub.msvcrt.dll_exit
nop
jmp 0x14000a126
jmp 0x14000a126
jmp 0x14000a126
jmp 0x14000a126
jmp 0x14000a126
jmp 0x14000a126
sub rsp, 0x58
xor ecx, ecx
mov r8d, 0x1000
lea rdx, [0x14001c0c0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002810
call fcn.140001a10
test al, al
je 0x140002867
mov edx, 1
lea rcx, [0x1400019f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400027b0
add rsp, 0x58
jmp 0x140001de0
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