Function at 0x140002770
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 0x1400017a0
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 0x1400017b5
lea rcx, [0x1400017d0]
add rsp, 0x28
pop rbx
pop r12
pop r13
pop rbp
jmp fcn.1400016c7
lea rax, [0x140001710]
lea rbx, [0x140001700]
mov qword [0x14000b010], rax
lea rdx, [0x140011060]
lea rcx, [section..eh_fram]
call rbx
jmp 0x140001787
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
lea r13, [0x14001e0c0]
xor ecx, ecx
mov r8d, 0x1000
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000a490
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 0x1400021ec
mov r8d, ebx
mov rdx, rax
mov rcx, r13
call rsi
test eax, eax
je 0x14000219c
lea r14, [rsp + 0x80]
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 0x14000219c
mov rsi, qword [rsp + 0x80]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400021ec
mov r9, r12
mov r8, rsi
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], 0xffffffffffffffff
call rbx
test eax, eax
jne 0x140002194
mov rcx, r12
call sub.msvcrt.dll_free
xor r9d, r9d
mov r8, r14
mov rcx, r13
mov dword [rsp + 0x20], 1
lea rdx, str.dont_search_path
call qword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
jne 0x140001bc8
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, qword [0x1400200c0]
mov rsi, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
mov edx, 0xfffffff8
mov r9d, 2
call rsi
cmp eax, 0xffffffff
je 0x1400021b5
xor r8d, r8d
xor edx, edx
lea r13, [rsp + 0x60]
mov r9d, 1
mov rcx, qword [0x1400200c0]
lea rbp, [rsp + 0x80]
call rsi
mov rcx, qword [0x1400200c0]
mov r9, r13
mov rdx, rbp
mov eax, eax
mov rbx, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov r8d, 8
mov qword [0x14001e0a0], rax
call rbx
test eax, eax
je 0x140001bbf
cmp dword [rsp + 0x60], 8
je 0x140001c29
call fcn.1400018c0
nop dword [rax]
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140001c1b
cmp dword [rax + 0x84], 4
jbe 0x140001c1b
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 0x140001b3e
mov rcx, qword [0x1400200c0]
lea edx, [rbx - 8]
xor r9d, r9d
xor r8d, r8d
mov rsi, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rsi
jmp 0x140001b5c
mov rcx, r14
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
jmp 0x140001b36
mov rdx, qword [0x14001e0a0]
xor r9d, r9d
xor r8d, r8d
sub edx, dword [rsp + 0x80]
mov rcx, qword [0x1400200c0]
call rsi
cmp eax, 0xffffffff
je 0x1400021b5
mov rcx, qword [0x1400200c0]
lea rdx, [rsp + 0x59]
mov r9, rbp
mov qword [rsp + 0x20], 0
mov r8d, 3
call rbx
test eax, eax
jne 0x140001c80
call fcn.1400018c0
nop dword [rax + rax]
cmp dword [rsp + 0x80], 3
jne 0x140001c73
cmp byte [rsp + 0x59], 0x4b
jne 0x1400021b5
cmp byte [rsp + 0x5a], 0x41
jne 0x1400021b5
cmp byte [rsp + 0x5b], 0x58
jne 0x1400021b5
mov byte [0x1400220e0], 1
nop word [rax + rax]
lea rsi, [0x14001d8a0]
nop
mov qword [rsp + 0x20], 0
mov rcx, qword [0x1400200c0]
mov r9, rbp
mov rdx, r13
mov r8d, 2
call rbx
test eax, eax
jne 0x140001cf0
call fcn.1400018c0
nop word [rax + rax]
cmp dword [rsp + 0x80], 2
jne 0x140001ce2
movzx eax, word [rsp + 0x60]
mov word [rsi], ax
test ax, ax
je 0x140001d10
add rsi, 2
jmp 0x140001cc0
lea rax, [0x14001d8a0]
movzx ecx, word [rax]
test cx, cx
je 0x140002075
movzx edx, word [0x1400200e0]
xor esi, esi
lea rax, [0x14001b8a0]
lea r8, [0x1400200e0]
mov word [0x14001b8a0], si
test dx, dx
jne 0x140001d60
jmp 0x140001d74
lea rdi, [0x14001d8a0]
cmp rax, rdi
je 0x14000a490
add r8, 2
mov word [rax], dx
add rax, 2
movzx edx, word [r8]
test dx, dx
jne 0x140001d50
xor r11d, r11d
mov word [rax], r11w
lea rax, [0x14001b8a0]
cmp word [rax], 0
je 0x140002069
mov edx, 0x1000
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001d98
test rdx, rdx
je 0x14000220f
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
cmp word [rax], 0
je 0x140002058
mov edx, 0x1000
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001dd0
test rdx, rdx
je 0x140002205
lea r8, [0x14001d8a0]
jmp 0x140001df9
test rdx, rdx
je 0x14000220a
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140001df0
xor r10d, r10d
cmp word [0x14001b0a0], 0
mov word [rax], r10w
je 0x140002000
mov qword [rsp + 0x20], 0
mov rcx, qword [0x1400200c0]
mov r9, r13
mov rdx, rbp
mov r8d, 8
call rbx
test eax, eax
jne 0x140001e50
call fcn.1400018c0
nop dword [rax]
cmp dword [rsp + 0x60], 8
jne 0x140001e48
xor eax, eax
lea r12, [0x1400110a0]
mov r15, qword [rsp + 0x80]
lea rcx, [0x14001b8a0]
mov word [0x1400110a0], ax
lea rax, [0x14001b8a0]
lea r8, [r12 + 0x2000]
movzx edx, word [rax]
mov rax, r12
test dx, dx
jne 0x140001ea1
jmp 0x140001eb4
cmp rax, r8
je 0x14000a490
add rcx, 2
mov word [rax], dx
add rax, 2
movzx edx, word [rcx]
test dx, dx
jne 0x140001e98
xor r8d, r8d
mov word [rax], r8w
movzx eax, word [0x1400110a0]
test ax, ax
je 0x140001eef
mov rsi, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdi, [0x1400110a0]
nop dword [rax]
cmp ax, 0x5c
je 0x140001fd0
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x140001ed8
mov dword [rsp + 0x28], 0
xor r9d, r9d
mov r8d, 2
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
lea rcx, [0x14001b8a0]
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400021c1
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
lea rsi, [0x1400130a0]
test r15, r15
je 0x140001fbb
nop dword [rax + rax]
mov r10d, 0x8000
mov rcx, qword [0x1400200c0]
mov r9, rbp
mov rdx, rsi
mov qword [rsp + 0x20], 0
cmp r15, r10
cmovbe r10, r15
mov r14, r10
mov r8d, r10d
call rbx
test eax, eax
jne 0x140001f80
call fcn.1400018c0
nop dword [rax]
mov eax, dword [rsp + 0x80]
cmp r14, rax
jne 0x140001f77
mov r9, rbp
mov r8d, r14d
mov rdx, rsi
mov rcx, r12
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x20], 0
call rdi
test eax, eax
je 0x1400021a9
sub r15, r14
jne 0x140001f48
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001cb8
xor edx, edx
mov rcx, r12
add rdi, 2
mov word [rdi - 2], dx
xor edx, edx
call rsi
mov ecx, 0x5c
mov word [rdi - 2], cx
movzx eax, word [rdi]
test ax, ax
jne 0x140001ed8
jmp 0x140001eef
lea rax, [0x14001b8a0]
lea rcx, [0x14001b8a0]
movzx edx, word [rax]
lea rax, [0x14001b0a0]
lea r8, [rax + 0x2000]
test dx, dx
jne 0x140002039
jmp 0x14000204c
cmp rax, r8
je 0x14000a490
add rcx, 2
mov word [rax], dx
add rax, 2
movzx edx, word [rcx]
test dx, dx
jne 0x140002030
xor r9d, r9d
mov word [rax], r9w
jmp 0x140001e26
lea rax, [0x14001b8a0]
mov edx, 0x1000
jmp 0x140001de7
lea rax, [0x14001b8a0]
jmp 0x140001daf
mov rcx, qword [0x1400200c0]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbp
call rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14000c160]
mov edx, pe_nt_image_headers64
mov rcx, rbp
mov r9d, eax
call fcn.140001840
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 + 0x80], 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, [0x14001b0a0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400021f8
mov rcx, qword [rsp + 0x68]
call rbx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x5c], 0
mov qword [0x1400220e8], rcx
test rcx, rcx
je 0x140002177
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400220e8]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002163
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x1400220e8]
call rbx
mov qword [0x1400220e8], 0
call fcn.1400018e0
mov eax, dword [rsp + 0x5c]
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001b3e
lea rcx, str.Error__couldnt_runtime_expand_temporary_files.
call fcn.140001860
lea rcx, str.Error__couldnt_find_attached_data.
call fcn.140001860
mov ecx, 2
call qword [fcn.140009b30]
lea r8, [0x14001b8a0]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.140001810
mov ecx, 2
call sub.msvcrt.dll_exit
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.140001860
lea rcx, str.Error__couldnt_launch_child.
call fcn.140001860
nop
jmp 0x14000a490
jmp 0x14000a490
jmp 0x14000a490
push r12
sub rsp, 0x50
call fcn.140002220
test al, al
je 0x1400028c8
mov edx, 1
lea rcx, [0x140001a10]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140002808
lea r12, [0x14001e0c0]
xor ecx, ecx
mov r8d, 0x1000
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000a49c
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, 1
mov rcx, r12
mov dword [rsp + 0x28], 0
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400200c0], rax
cmp rax, 0xffffffffffffffff
je 0x140002868
add rsp, 0x50
pop r12
jmp 0x140001a30
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, 0x50
pop r12
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_access_unpacked_executable.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_puts
mov eax, 1
add rsp, 0x50
pop r12
ret
mov ecx, 2
call qword [fcn.140009b30]
lea r8, str._TEMP_onefile__PID___TIME_
lea rdx, str.Error__couldnt_runtime_expand_spec__ls._n
mov rcx, rax
call fcn.140001810
call sub.msvcrt.dll_abort
nop
nop
jmp qword [sym.imp.imagehlp.dll_UnMapAndLoad]
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x140001720