Function at 0x14000b340
Capabilities:
Accept command line arguments
Check if file exists
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 [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x80], rax
lea rdx, str._TEMP_onefile__PID___TIME_
lea rcx, [0x1400365f0]
call fcn.14000a630
test al, al
je 0x14000bc05
mov edx, 1
mov qword [rsp + 0x198], r14
lea rcx, [0x14000add0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x14000b3ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x58]
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.140010194
mov rcx, qword [rsp + 0x58]
call fcn.140010194
lea eax, [r14 + 1]
jmp 0x14000bbdf
mov r8d, 0x1000
mov qword [rsp + 0x1c8], rsi
lea rdx, [0x140040e20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000bbff
xor r14d, r14d
lea rcx, [0x140040e20]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400345e8], rax
cmp rax, 0xffffffffffffffff
jne 0x14000b49c
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 + 0x58]
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.140010194
mov rcx, qword [rsp + 0x58]
call fcn.140010194
lea eax, [r14 + 1]
jmp 0x14000bbd7
mov r8d, 0x1000
lea rdx, [0x140040e20]
xor ecx, ecx
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000bbff
mov qword [rsp + 0x1c0], rbx
lea rcx, [0x140040e20]
xor r8d, r8d
mov qword [rsp + 0x1d0], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, eax
lea ecx, [rax + 1]
add rcx, rcx
call fcn.1400135a4
mov rbx, rax
test rax, rax
je 0x14000bc0b
mov r8d, edi
lea rcx, [0x140040e20]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x14000b571
mov r9, rbx
mov qword [rsp + 0x20], 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call fcn.1400134fc
test eax, eax
jne 0x14000b571
mov rcx, qword [rsp + 0x58]
call fcn.1400135a4
mov rdi, rax
test rax, rax
je 0x14000bc11
mov r8, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
mov r9, rbx
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rdx, rax
call fcn.1400134fc
test eax, eax
je 0x14000b9a7
mov rcx, rdi
call fcn.140013094
mov rcx, rbx
call fcn.140013094
mov r9d, 2
lea edx, [r9 - 0xa]
mov rcx, qword [0x1400345e8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x1a0], r13
mov qword [rsp + 0x190], r15
cmp eax, 0xffffffff
je 0x14000bc41
mov rcx, qword [0x1400345e8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x1400345e8]
lea r9, [rsp + 0x50]
mov eax, eax
lea rdx, [rsp + 0x58]
mov r8d, 8
mov qword [0x140038608], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000bc3b
cmp dword [rsp + 0x50], 8
jne 0x14000bc3b
mov rdx, qword [0x140038608]
xor r9d, r9d
sub rdx, qword [rsp + 0x58]
xor r8d, r8d
mov rcx, qword [0x1400345e8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000bc41
mov rcx, qword [0x1400345e8]
lea r9, [rsp + 0x50]
mov r8d, 3
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000bc35
cmp dword [rsp + 0x50], 3
jne 0x14000bc35
cmp byte [rsp + 0x60], 0x4b
jne 0x14000bc41
cmp byte [rsp + 0x61], 0x41
jne 0x14000bc41
cmp byte [rsp + 0x62], 0x59
jne 0x14000bc41
mov ecx, 0x20003
call fcn.1400135a4
mov qword [0x1400345d0], rax
test rax, rax
je 0x14000bc2f
mov ecx, 0x20000
call fcn.1400135a4
mov qword [0x1400385f0], rax
test rax, rax
je 0x14000bc2f
call fcn.140005470
mov qword [0x1400345c8], rax
test rax, rax
je 0x14000bc2f
call fcn.14000ae00
mov byte [0x140038610], 1
lea r12, [0x14002fda0]
mov esi, 0x5c
lea r13, [0x140031da0]
lea r15, [0x140040620]
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, r15
lea rdi, [0x140033da0]
call fcn.14000aaf0
movzx eax, word [rsp + 0x50]
mov word [0x140040620], ax
test ax, ax
je 0x14000ba0f
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.14000aaf0
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x14000b730
cmp word [0x140040620], r14w
je 0x14000ba0f
cmp word [0x1400365f0], r14w
mov edx, 0x1000
mov word [0x14002fda0], r14w
mov rcx, r12
je 0x14000b7a2
lea r8, [0x1400365f0]
sub r8, r12
cmp rdx, 1
jb 0x14000bc23
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r14w
jne 0x14000b782
mov word [rcx], r14w
mov rax, r12
cmp word [0x14002fda0], r14w
mov ecx, 0x1000
je 0x14000b7d7
nop dword [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000b7c0
cmp rcx, 1
jb 0x14000bc23
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x14002fda0], r14w
mov rax, r12
je 0x14000b7fd
nop
add rax, 2
dec rdx
cmp word [rax], r14w
jne 0x14000b7f0
mov r8, r15
sub r8, rax
cmp rdx, 1
jb 0x14000bc23
movzx ecx, word [rax + r8]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [rax + r8], r14w
jne 0x14000b803
cmp word [0x140033da0], r14w
mov word [rax], r14w
jne 0x14000b874
cmp word [0x14002fda0], r14w
mov edx, 0x1000
mov rcx, rdi
je 0x14000b870
mov r8, r12
sub r8, rdi
nop dword [rax]
cmp rdx, 1
jb 0x14000bc23
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r14w
jne 0x14000b850
mov word [rcx], r14w
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.14000aaf0
cmp word [0x14002fda0], r14w
mov edx, 0x1000
mov rdi, qword [rsp + 0x68]
mov rcx, r13
mov word [0x140031da0], r14w
je 0x14000b8d0
mov r8, r12
sub r8, r13
nop dword [rax + rax]
cmp rdx, 1
jb 0x14000bc23
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r14w
jne 0x14000b8b0
mov word [rcx], r14w
mov rbx, r13
movzx eax, word [0x140031da0]
test ax, ax
je 0x14000b908
cmp ax, 0x5c
jne 0x14000b8fb
xor edx, edx
mov word [rbx], r14w
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rbx], si
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x14000b8e3
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 0x14000bc1d
test rdi, rdi
je 0x14000b999
mov ebx, 0x8000
lea rcx, [0x140038620]
cmp rdi, rbx
cmovbe ebx, edi
movsxd rsi, ebx
mov rdx, rsi
call fcn.14000aaf0
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [0x140038620]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bc17
sub rdi, rsi
jne 0x14000b941
lea esi, [rdi + 0x5c]
test rdi, rdi
jne 0x14000bc35
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b6f0
mov rcx, rbx
call fcn.140013094
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [rbp]
mov rcx, rdi
lea rdx, str.dont_search_path
call qword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
je 0x14000b9f4
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x14000b9ea
cmp dword [rax + 0x84], 4
jbe 0x14000b9ea
mov esi, dword [rax + 0xa8]
lea rcx, [rbp]
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov rcx, rdi
call fcn.140013094
test esi, esi
je 0x14000b579
lea edx, [rsi - 8]
xor r9d, r9d
jmp 0x14000b583
mov rcx, qword [0x1400345e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140005580
mov rcx, qword [0x1400345d0]
call fcn.140013094
mov rcx, qword [0x1400385f0]
call fcn.140013094
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x140029800]
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, rdi
lea rax, [rsp + 0x70]
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 0x14000bc29
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
mov ebx, 0x32
mov qword [0x1400345c0], rax
mov dword [rsp + 0x64], r14d
test rax, rax
je 0x14000bba6
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400345c0]
lea rdx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14000bb8a
cmp dword [rsp + 0x64], 0x103
jne 0x14000bb92
cmp byte [0x1400345b8], r14b
je 0x14000bb73
lea rcx, [0x1400345f0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000bb6a
mov rcx, qword [0x1400345b0]
test rcx, rcx
je 0x14000bb61
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x1400345b0], r14
mov byte [0x1400345b8], r14b
jmp 0x14000bb73
cmp byte [0x1400345b8], r14b
jne 0x14000bb78
mov ebx, 0xffffffff
mov rax, qword [0x1400345c0]
test rax, rax
jne 0x14000bb03
jmp 0x14000bba6
mov dword [rsp + 0x64], 1
mov rcx, qword [0x1400345c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400345c0], r14
call fcn.14000ac90
mov eax, dword [rsp + 0x64]
mov r12, qword [rsp + 0x1a8]
mov r13, qword [rsp + 0x1a0]
mov r15, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x1d0]
mov rbx, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x198]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000bc60
add rsp, 0x1b0
pop rbp
ret
call fcn.14000faf4
int3
call fcn.14000aac0
int3
call fcn.14000aa50
int3
call fcn.14000aa50
int3
call fcn.14000a9d0
int3
call fcn.14000aa90
int3
call fcn.14000faf4
int3
call fcn.14000aa70
int3
call fcn.14000aa50
int3
call fcn.14000aa30
int3
call fcn.14000aa30
int3
call fcn.14000aa10
int3