Function at 0x1400029c0
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:
lea rcx, [0x140001550]
jmp fcn.140001520
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, [0x14001c060]
lea r13, [0x14001a060]
mov qword [rsp + 0x60], rax
call rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov rcx, r13
mov byte [0x14001e060], 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 [0x14001a048], rax
cmp rax, 0xffffffffffffffff
je 0x140002029
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 0x1400020a3
mov r8d, ebx
mov rdx, rax
mov rcx, r13
call rsi
test eax, eax
je 0x14000200e
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 0x14000200e
mov rsi, qword [rsp + 0xb0]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400020a3
mov r9, r12
mov r8, rsi
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], 0xffffffffffffffff
call rbx
test eax, eax
jne 0x140002006
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 0x140001cb6
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, qword [0x14001a048]
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
mov edx, 0xfffffff8
mov r9d, 2
call rbx
cmp eax, 0xffffffff
je 0x1400020af
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001a048]
mov r9d, 1
call rbx
mov rcx, qword [0x14001a048]
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 [0x14001a040], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov rdx, rax
call rsi
test eax, eax
je 0x140002086
cmp dword [rsp + 0x7c], 8
jne 0x140002086
mov rdx, qword [0x14001a040]
xor r9d, r9d
xor r8d, r8d
sub edx, dword [rsp + 0x90]
mov rcx, qword [0x14001a048]
call rbx
cmp eax, 0xffffffff
je 0x1400020af
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001a048]
lea rdx, [rsp + 0x79]
lea r9, [rsp + 0x80]
mov r8d, 3
call rsi
test eax, eax
je 0x140002086
cmp dword [rsp + 0x80], 3
jne 0x140002086
cmp byte [rsp + 0x79], 0x4b
jne 0x1400020af
cmp byte [rsp + 0x7a], 0x41
jne 0x1400020af
cmp byte [rsp + 0x7b], 0x58
jne 0x1400020af
lea r13, [rsp + 0x84]
lea rbp, [rsp + 0x76]
nop
lea rbx, [0x140019840]
jmp 0x140001a04
add rbx, 2
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001a048]
mov r9, r13
mov rdx, rbp
mov r8d, 2
call rsi
test eax, eax
je 0x140002086
cmp dword [rsp + 0x84], 2
jne 0x140002086
movzx eax, word [rsp + 0x76]
mov word [rbx], ax
test ax, ax
jne 0x140001a00
lea rax, [0x140019840]
movzx eax, word [rax]
test ax, ax
je 0x140001e90
lea rbx, [0x140019840]
lea r12, [0x140017840]
nop word cs:[rax + rax]
lea rdi, [0x14001c060]
movzx edx, word [rdi]
cmp ax, 0x5c
je 0x140001d18
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140001a70
lea rax, [0x14001c060]
xor r8d, r8d
lea rdx, [0x140017840]
movzx ecx, word [rax]
mov word [0x140017840], r8w
test cx, cx
jne 0x140001ac8
jmp 0x140001adb
lea rdi, [0x14001e060]
cmp rax, rdi
je 0x140009020
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140001ab8
xor ecx, ecx
mov word [rdx], cx
cmp word [0x140017840], 0
je 0x140001fe0
mov edx, 0x1000
lea rax, [0x140017840]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001b00
test rdx, rdx
je 0x1400020e7
mov dword [rax], 0x5c
lea rax, [0x140019840]
mov edx, 0x1000
cmp word [0x140017840], 0
movzx ecx, word [rax]
lea rax, [0x140017840]
je 0x140001fd0
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001b48
test cx, cx
je 0x140001b91
test rdx, rdx
je 0x1400020f6
lea r8, [0x140019840]
jmp 0x140001b79
test rdx, rdx
je 0x1400020fb
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140001b70
xor edx, edx
cmp word [0x140017040], 0
mov word [rax], dx
je 0x140001e40
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001a048]
lea rdx, [rsp + 0xb0]
lea r9, [rsp + 0x88]
mov r8d, 8
call rsi
test eax, eax
je 0x140002086
cmp dword [rsp + 0x88], 8
jne 0x140002086
mov rcx, r12
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0xb0]
mov r8d, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call rax
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400020bb
lea r15, [rsp + 0x8c]
lea rdi, [0x14000f040]
test rbx, rbx
je 0x140001ca8
nop dword [rax]
mov r14d, 0x8000
mov rcx, qword [0x14001a048]
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 0x140002086
mov eax, dword [rsp + 0x8c]
cmp r14, rax
jne 0x140002086
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 0x14000208b
sub rbx, r14
jne 0x140001c40
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400019f0
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x14000201b
cmp dword [rax + 0x84], 4
jbe 0x14000201b
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 0x1400018d4
lea edx, [rbx - 8]
mov rcx, qword [0x14001a048]
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rbx
jmp 0x1400018f2
xor r14d, r14d
xor r15d, r15d
lea rcx, [0x140017840]
mov rax, rdi
mov word [rbx], r14w
mov word [0x140017840], r15w
test dx, dx
jne 0x140001d50
jmp 0x140001d63
lea rdi, [0x14001e060]
cmp rax, rdi
je 0x140009020
add rax, 2
mov word [rcx], dx
add rcx, 2
movzx edx, word [rax]
test dx, dx
jne 0x140001d40
xor r11d, r11d
mov word [rcx], r11w
cmp word [r12], 0
je 0x140001ffa
mov edx, 0x1000
lea rax, [0x140017840]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001d88
test rdx, rdx
je 0x140002100
mov dword [rax], 0x5c
lea rax, [0x140019840]
mov edx, 0x1000
cmp word [r12], 0
movzx ecx, word [rax]
lea rax, [0x140017840]
je 0x140001fec
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001dd0
test cx, cx
je 0x140001e19
test rdx, rdx
je 0x1400020ec
lea r8, [0x140019840]
jmp 0x140001e01
test rdx, rdx
je 0x1400020f1
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140001df8
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 0x140001a84
movzx ecx, word [0x140017840]
lea rax, [0x140017840]
lea rdx, [0x140017040]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x140001e71
jmp 0x140001e84
cmp rax, r8
je 0x140009020
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140001e68
xor eax, eax
mov word [rdx], ax
jmp 0x140001ba4
lea rbp, [rsp + 0xb0]
mov rcx, qword [0x14001a048]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14000b140]
mov edx, pe_nt_image_headers64
mov rcx, rbp
mov r9d, eax
call fcn.140001590
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, [0x140017040]
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 0x140002097
mov rcx, qword [rsp + 0x98]
call rbx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x8c], 0
mov qword [0x14001e068], rcx
test rcx, rcx
je 0x140001fae
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14001e068]
lea rdx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140001f9a
mov dword [rsp + 0x8c], 1
mov rcx, qword [0x14001e068]
call rbx
mov qword [0x14001e068], 0
call fcn.140001630
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 0x140001b64
jmp 0x140001b91
lea rax, [0x140017840]
jmp 0x140001b17
test cx, cx
jne 0x140001dec
jmp 0x140001e19
lea rax, [0x140017840]
jmp 0x140001d9f
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x1400018d4
mov rcx, r14
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
jmp 0x1400018cc
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 0x140001fba
call fcn.140001610
lea rcx, str.Error__couldnt_runtime_expand_temporary_files.
call fcn.1400015b0
lea rcx, str.Error__couldnt_launch_child.
call fcn.1400015b0
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.1400015b0
lea rcx, str.Error__couldnt_find_attached_data.
call fcn.1400015b0
mov ecx, 2
call qword [fcn.140008d80]
lea r8, [0x140017840]
lea rdx, str.Error__failed_to_open__ls_for_writing._n
mov rcx, rax
call fcn.140001560
mov ecx, 2
call sub.msvcrt.dll_exit
nop
jmp 0x140009020
jmp 0x140009020
jmp 0x140009020
jmp 0x140009020
jmp 0x140009020
jmp 0x140009020
sub rsp, 0x58
xor ecx, ecx
mov r8d, 0x1000
lea rdx, [0x14001a060]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002840
call fcn.140002110
test al, al
je 0x1400028a0
mov edx, 1
lea rcx, [0x140001760]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400027e0
add rsp, 0x58
jmp 0x140001780
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
mov ecx, 2
call qword [fcn.140008d80]
lea r8, str._TEMP_onefile__PID___TIME_
lea rdx, str.Error__couldnt_runtime_expand_directory_spec__ls._n
mov rcx, rax
call fcn.140001560
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp qword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov rax, qword [0x14000ba50]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x14000ba40]
mov r8, qword [rax]
mov rax, qword [0x14000ba30]
mov rcx, qword [rax]
jmp 0x140002790
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp 0x140001540