Function at 0x140001810
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
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x80], rax
call fcn.140001230
test al, al
je 0x140002026
mov qword [rsp + 0x198], r14
lea rcx, [0x1400017e0]
mov qword [rsp + 0x190], r15
mov r15d, 1
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x1400018ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov r8d, eax
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_register_signal_handler.
call fcn.1400067ec
mov rcx, qword [rsp + 0x50]
call fcn.1400067ec
mov eax, r15d
jmp 0x140001ff8
mov r8d, 0x1000
mov qword [rsp + 0x1c8], rsi
lea rdx, [0x140033db0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002020
xor r14d, r14d
lea rcx, [0x140033db0]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov r8d, r15d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140029598], rax
cmp rax, 0xffffffffffffffff
jne 0x140001967
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x50]
mov ecx, 0x1300
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_access_unpacked_executable.
call fcn.1400067ec
mov rcx, qword [rsp + 0x50]
call fcn.1400067ec
mov eax, r15d
jmp 0x140001ff0
mov r8d, 0x1000
lea rdx, [0x140033db0]
xor ecx, ecx
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002020
mov qword [rsp + 0x1c0], rbx
lea rcx, [0x140033db0]
xor r8d, r8d
mov qword [rsp + 0x1d0], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, eax
lea ecx, [rax + 1]
add rcx, rcx
call fcn.140009c04
mov rdi, rax
test rax, rax
je 0x14000202c
mov r8d, ebx
lea rcx, [0x140033db0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x140001a38
mov r9, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140009b5c
test eax, eax
jne 0x140001a38
mov rcx, qword [rsp + 0x50]
call fcn.140009c04
mov rbx, rax
test rax, rax
je 0x140002032
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rdx, rax
call fcn.140009b5c
test eax, eax
je 0x140001a3b
mov rcx, rbx
call fcn.1400096f4
mov rbx, r14
mov rcx, rdi
call fcn.1400096f4
test rbx, rbx
je 0x140001a9e
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea r8, [rbp]
mov rcx, rbx
lea rdx, str.dont_search_path
call qword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
je 0x140001a8a
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x140001a80
cmp dword [rax + 0x84], 4
jbe 0x140001a80
mov esi, dword [rax + 0xa8]
lea rcx, [rbp]
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov rcx, rbx
call fcn.1400096f4
test esi, esi
je 0x140001a9e
lea edx, [rsi - 8]
xor r9d, r9d
jmp 0x140001aa8
mov r9d, 2
lea edx, [r9 - 0xa]
mov rcx, qword [0x140029598]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x1a0], r13
cmp eax, 0xffffffff
je 0x140002068
mov rcx, qword [0x140029598]
mov r9d, r15d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140029598]
lea r9, [rsp + 0x60]
mov eax, eax
lea rdx, [rsp + 0x50]
mov r8d, 8
mov qword [0x14002b5a0], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002062
cmp dword [rsp + 0x60], 8
jne 0x140002062
mov rdx, qword [0x14002b5a0]
xor r9d, r9d
sub rdx, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [0x140029598]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140002068
mov rcx, qword [0x140029598]
lea r9, [rsp + 0x64]
mov r8d, 3
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000205c
cmp dword [rsp + 0x64], 3
jne 0x14000205c
cmp byte [rsp + 0x58], 0x4b
jne 0x140002068
cmp byte [rsp + 0x59], 0x41
jne 0x140002068
cmp byte [rsp + 0x5a], 0x58
jne 0x140002068
mov byte [0x14002b5a8], r15b
lea r12, [0x140024d90]
mov edi, 0x5c
lea r13, [0x140026d90]
lea r15, [0x1400335b0]
mov rbx, r15
lea rsi, [0x140028d90]
nop dword [rax]
mov rcx, qword [0x140029598]
lea r9, [rsp + 0x68]
mov r8d, 2
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002056
cmp dword [rsp + 0x68], 2
jne 0x140002056
movzx eax, word [rsp + 0x60]
mov word [rbx], ax
test ax, ax
je 0x140001c18
add rbx, 2
jmp 0x140001bd0
cmp word [0x1400335b0], r14w
je 0x140001eb7
cmp word [0x1400295a0], r14w
mov edx, 0x1000
mov word [0x140024d90], r14w
mov rcx, r12
je 0x140001c70
lea r8, [0x1400295a0]
sub r8, r12
nop word [rax + rax]
cmp rdx, 1
jb 0x14000204a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r14w
jne 0x140001c50
mov word [rcx], r14w
mov rax, r12
cmp word [0x140024d90], r14w
mov ecx, 0x1000
je 0x140001ca7
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140001c90
cmp rcx, 1
jb 0x14000204a
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x140024d90], r14w
mov rax, r12
je 0x140001ccd
nop
add rax, 2
dec rdx
cmp word [rax], r14w
jne 0x140001cc0
mov r8, r15
sub r8, rax
cmp rdx, 1
jb 0x14000204a
movzx ecx, word [rax + r8]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [rax + r8], r14w
jne 0x140001cd3
cmp word [0x140028d90], r14w
mov word [rax], r14w
jne 0x140001d44
cmp word [0x140024d90], r14w
mov edx, 0x1000
mov rcx, rsi
je 0x140001d40
mov r8, r12
sub r8, rsi
nop dword [rax]
cmp rdx, 1
jb 0x14000204a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r14w
jne 0x140001d20
mov word [rcx], r14w
mov rcx, qword [0x140029598]
lea r9, [rsp + 0x6c]
mov r8d, 8
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002044
cmp dword [rsp + 0x6c], 8
jne 0x140002044
cmp word [0x140024d90], r14w
mov edx, 0x1000
mov rsi, qword [rsp + 0x70]
mov rcx, r13
mov word [0x140026d90], r14w
je 0x140001dc0
mov r8, r12
sub r8, r13
nop
cmp rdx, 1
jb 0x14000204a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r14w
jne 0x140001da0
mov word [rcx], r14w
mov rbx, r13
movzx eax, word [0x140026d90]
test ax, ax
je 0x140001df8
cmp ax, 0x5c
jne 0x140001deb
xor edx, edx
mov word [rbx], r14w
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rbx], di
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140001dd3
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov rcx, r12
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000203e
test rsi, rsi
je 0x140001ea9
mov rcx, qword [0x140029598]
lea r9, [rsp + 0x50]
mov edi, 0x8000
mov qword [rsp + 0x20], r14
cmp rsi, rdi
lea rdx, [0x14002b5b0]
cmovbe edi, esi
mov r8d, edi
movsxd rbx, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000205c
mov eax, dword [rsp + 0x50]
cmp rax, rbx
jne 0x14000205c
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, edi
lea rdx, [0x14002b5b0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002038
sub rsi, rbx
jne 0x140001e31
lea edi, [rsi + 0x5c]
test rsi, rsi
jne 0x14000205c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001bbc
mov rcx, qword [0x140029598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x140020708]
mov edx, 0x80
mov r9d, eax
lea rcx, [rbp]
call fcn.140001060
lea rdx, [rbp]
lea rcx, str.NUITKA_ONEFILE_PARENT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0xc], eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002050
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov qword [0x140029590], rcx
mov dword [rsp + 0x5c], r14d
test rcx, rcx
je 0x140001fc7
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140029590]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [rsp + 0x5c]
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [rsp + 0x5c], ecx
mov rcx, qword [0x140029590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140029590], r14
call fcn.1400016f0
mov eax, dword [rsp + 0x5c]
mov r13, qword [rsp + 0x1a0]
mov r12, qword [rsp + 0x1a8]
mov rdi, qword [rsp + 0x1d0]
mov rbx, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x198]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140002080
add rsp, 0x1b0
pop rbp
ret
call fcn.140006154
int3
call fcn.1400016c0
int3
call fcn.140001650
int3
call fcn.140001650
int3
call fcn.1400015f0
int3
call fcn.140001690
int3
call fcn.140001630
int3
call fcn.140006154
int3
call fcn.140001670
int3
call fcn.140001630
int3
call fcn.140001630
int3
call fcn.140001630
int3
call fcn.140001610
int3