Function at 0x140001a30
Capabilities:
Accept command line arguments
Create directory
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, 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 [0x14001c0a8], rax
cmp rax, 0xffffffffffffffff
je 0x1400022d9
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 0x140002353
mov r8d, ebx
mov rdx, rax
mov rcx, r13
call rsi
test eax, eax
je 0x1400022be
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 0x1400022be
mov rsi, qword [rsp + 0xb0]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140002353
mov r9, r12
mov r8, rsi
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], 0xffffffffffffffff
call rbx
test eax, eax
jne 0x1400022b6
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 0x140001f66
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, qword [0x14001c0a8]
mov rbx, qword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor r8d, r8d
mov edx, 0xfffffff8
mov r9d, 2
call rbx
cmp eax, 0xffffffff
je 0x14000235f
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001c0a8]
mov r9d, 1
call rbx
mov rcx, qword [0x14001c0a8]
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 [0x14001c0a0], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov rdx, rax
call rsi
test eax, eax
je 0x140002336
cmp dword [rsp + 0x7c], 8
jne 0x140002336
mov rdx, qword [0x14001c0a0]
xor r9d, r9d
xor r8d, r8d
sub edx, dword [rsp + 0x90]
mov rcx, qword [0x14001c0a8]
call rbx
cmp eax, 0xffffffff
je 0x14000235f
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a8]
lea rdx, [rsp + 0x79]
lea r9, [rsp + 0x80]
mov r8d, 3
call rsi
test eax, eax
je 0x140002336
cmp dword [rsp + 0x80], 3
jne 0x140002336
cmp byte [rsp + 0x79], 0x4b
jne 0x14000235f
cmp byte [rsp + 0x7a], 0x41
jne 0x14000235f
cmp byte [rsp + 0x7b], 0x58
jne 0x14000235f
lea r13, [rsp + 0x84]
lea rbp, [rsp + 0x76]
nop
lea rbx, [0x14001b8a0]
jmp 0x140001cb4
add rbx, 2
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a8]
mov r9, r13
mov rdx, rbp
mov r8d, 2
call rsi
test eax, eax
je 0x140002336
cmp dword [rsp + 0x84], 2
jne 0x140002336
movzx eax, word [rsp + 0x76]
mov word [rbx], ax
test ax, ax
jne 0x140001cb0
lea rax, [0x14001b8a0]
movzx eax, word [rax]
test ax, ax
je 0x140002140
lea rbx, [0x14001b8a0]
lea r12, [0x1400198a0]
nop word cs:[rax + rax]
lea rdi, [0x14001e0c0]
movzx edx, word [rdi]
cmp ax, 0x5c
je 0x140001fc8
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140001d20
lea rax, [0x14001e0c0]
xor r8d, r8d
lea rdx, [0x1400198a0]
movzx ecx, word [rax]
mov word [0x1400198a0], r8w
test cx, cx
jne 0x140001d78
jmp 0x140001d8b
lea rdi, [0x1400200c0]
cmp rax, rdi
je 0x14000a600
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140001d68
xor ecx, ecx
mov word [rdx], cx
cmp word [0x1400198a0], 0
je 0x140002290
mov edx, 0x1000
lea rax, [0x1400198a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001db0
test rdx, rdx
je 0x140002397
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
mov edx, 0x1000
cmp word [0x1400198a0], 0
movzx ecx, word [rax]
lea rax, [0x1400198a0]
je 0x140002280
nop dword [rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001df8
test cx, cx
je 0x140001e41
test rdx, rdx
je 0x1400023a6
lea r8, [0x14001b8a0]
jmp 0x140001e29
test rdx, rdx
je 0x1400023ab
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x140001e20
xor edx, edx
cmp word [0x1400190a0], 0
mov word [rax], dx
je 0x1400020f0
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14001c0a8]
lea rdx, [rsp + 0xb0]
lea r9, [rsp + 0x88]
mov r8d, 8
call rsi
test eax, eax
je 0x140002336
cmp dword [rsp + 0x88], 8
jne 0x140002336
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 0x14000236b
lea r15, [rsp + 0x8c]
lea rdi, [0x1400110a0]
test rbx, rbx
je 0x140001f58
nop dword [rax]
mov r14d, 0x8000
mov rcx, qword [0x14001c0a8]
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 0x140002336
mov eax, dword [rsp + 0x8c]
cmp r14, rax
jne 0x140002336
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 0x14000233b
sub rbx, r14
jne 0x140001ef0
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x140001ca0
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x1400022cb
cmp dword [rax + 0x84], 4
jbe 0x1400022cb
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 0x140001b84
lea edx, [rbx - 8]
mov rcx, qword [0x14001c0a8]
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [sym.imp.KERNEL32.DLL_SetFilePointer]
call rbx
jmp 0x140001ba2
xor r14d, r14d
xor r15d, r15d
lea rcx, [0x1400198a0]
mov rax, rdi
mov word [rbx], r14w
mov word [0x1400198a0], r15w
test dx, dx
jne 0x140002000
jmp 0x140002013
lea rdi, [0x1400200c0]
cmp rax, rdi
je 0x14000a600
add rax, 2
mov word [rcx], dx
add rcx, 2
movzx edx, word [rax]
test dx, dx
jne 0x140001ff0
xor r11d, r11d
mov word [rcx], r11w
cmp word [r12], 0
je 0x1400022aa
mov edx, 0x1000
lea rax, [0x1400198a0]
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002038
test rdx, rdx
je 0x1400023b0
mov dword [rax], 0x5c
lea rax, [0x14001b8a0]
mov edx, 0x1000
cmp word [r12], 0
movzx ecx, word [rax]
lea rax, [0x1400198a0]
je 0x14000229c
nop word [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140002080
test cx, cx
je 0x1400020c9
test rdx, rdx
je 0x14000239c
lea r8, [0x14001b8a0]
jmp 0x1400020b1
test rdx, rdx
je 0x1400023a1
add r8, 2
mov word [rax], cx
add rax, 2
sub rdx, 1
movzx ecx, word [r8]
test cx, cx
jne 0x1400020a8
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 0x140001d34
movzx ecx, word [0x1400198a0]
lea rax, [0x1400198a0]
lea rdx, [0x1400190a0]
lea r8, [rax + 0x2000]
test cx, cx
jne 0x140002121
jmp 0x140002134
cmp rax, r8
je 0x14000a600
add rax, 2
mov word [rdx], cx
add rdx, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140002118
xor eax, eax
mov word [rdx], ax
jmp 0x140001e54
lea rbp, [rsp + 0xb0]
mov rcx, qword [0x14001c0a8]
mov rbx, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rbx
mov rdi, rbp
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea r8, [0x14000c190]
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 + 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 0x140002347
mov rcx, qword [rsp + 0x98]
call rbx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x8c], 0
mov qword [0x1400200c8], rcx
test rcx, rcx
je 0x14000225e
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 0x14000224a
mov dword [rsp + 0x8c], 1
mov rcx, qword [0x1400200c8]
call rbx
mov qword [0x1400200c8], 0
call fcn.1400018e0
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 0x140001e14
jmp 0x140001e41
lea rax, [0x1400198a0]
jmp 0x140001dc7
test cx, cx
jne 0x14000209c
jmp 0x1400020c9
lea rax, [0x1400198a0]
jmp 0x14000204f
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001b84
mov rcx, r14
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
jmp 0x140001b7c
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 0x14000226a
call fcn.1400018c0
lea rcx, str.Error__couldnt_runtime_expand_temporary_files.
call fcn.140001860
lea rcx, str.Error__couldnt_launch_child.
call fcn.140001860
lea rcx, str.Error__couldnt_allocate_memory.
call fcn.140001860
lea rcx, str.Error__couldnt_find_attached_data.
call fcn.140001860
mov ecx, 2
call qword [fcn.140009ce0]
lea r8, [0x1400198a0]
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
nop
jmp 0x14000a600
jmp 0x14000a600
jmp 0x14000a600
jmp 0x14000a600
jmp 0x14000a600
jmp 0x14000a600
sub rsp, 0x58
xor ecx, ecx
mov r8d, 0x1000
lea rdx, [0x14001c0c0]
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x1400029c0
call fcn.1400023c0
test al, al
je 0x140002a20
mov edx, 1
lea rcx, [0x140001a10]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
test eax, eax
je 0x140002960
add rsp, 0x58
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, 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.140009ce0]
lea r8, str._TEMP_onefile__PID___TIME_
lea rdx, str.Error__couldnt_runtime_expand_directory_spec__ls._n
mov rcx, rax
call fcn.140001810
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp qword [sym.imp.imagehlp.dll_UnMapAndLoad]
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp 0x140001720