Function at 0x14000ad80
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 r15
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x70], rax
call fcn.14000f3fc
call fcn.14000f404
mov r8d, 0x1000
lea rdx, [0x140033640]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000ae17
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r15d, r15d
xor edx, edx
mov r8d, eax
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r15d
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_locate_onefile_filename.
call fcn.14000f4f4
mov rcx, qword [rsp + 0x50]
call fcn.14000f4f4
mov eax, 1
jmp 0x14000b62b
call fcn.14000a5d0
test al, al
je 0x14000b648
mov edx, 1
lea rcx, [0x14000ad50]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x14000ae76
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r15d, r15d
xor edx, edx
mov r8d, eax
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r15d
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Error__failed_to_register_signal_handler.
jmp 0x14000adfe
mov qword [rsp + 0x180], r14
xor edx, edx
lea r14, [0x140030e10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r15d, r15d
mov byte [0x140030e08], 1
mov qword [rsp + 0x30], r15
lea rcx, [0x140033640]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140032e28], rax
cmp rax, 0xffffffffffffffff
jne 0x14000aeea
lea rcx, str.Error__failed_to_access_unpacked_executable.
call fcn.14000a930
mov eax, 1
jmp 0x14000b623
mov qword [rsp + 0x1b0], rbx
lea rcx, [0x140033640]
mov qword [rsp + 0x1b8], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x1c0], rdi
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, eax
lea ecx, [rax + 1]
add rcx, rcx
call fcn.140012904
mov rdi, rax
test rax, rax
je 0x14000b64e
mov r8d, ebx
lea rcx, [0x140033640]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x14000afa6
mov r9, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.14001285c
test eax, eax
jne 0x14000afa6
mov rcx, qword [rsp + 0x50]
call fcn.140012904
mov rbx, rax
test rax, rax
je 0x14000b654
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rdx, rax
call fcn.14001285c
test eax, eax
je 0x14000afb1
mov rcx, rbx
call fcn.1400123f4
mov rcx, rdi
call fcn.1400123f4
mov rbx, r15
test rbx, rbx
je 0x14000b00f
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [rbp - 0x10]
mov rcx, rbx
lea rdx, str.dont_search_path
call qword [sym.imp.imagehlp.dll_MapAndLoad]
test eax, eax
je 0x14000affb
mov rax, qword [rbp + 8]
test rax, rax
je 0x14000aff1
cmp dword [rax + 0x84], 4
jbe 0x14000aff1
mov esi, dword [rax + 0xa8]
lea rcx, [rbp - 0x10]
call qword [sym.imp.imagehlp.dll_UnMapAndLoad]
mov rcx, rbx
call fcn.1400123f4
test esi, esi
je 0x14000b00f
lea edx, [rsi - 8]
xor r9d, r9d
jmp 0x14000b01a
mov r9d, 2
mov edx, 0xfffffff8
mov rcx, qword [0x140032e28]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000b642
mov rcx, qword [0x140032e28]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140032e28]
lea r9, [rsp + 0x50]
mov eax, eax
lea rdx, [rsp + 0x60]
mov r8d, 8
mov qword [0x140032e30], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000b684
cmp dword [rsp + 0x50], 8
jne 0x14000b684
mov rdx, qword [0x140032e30]
xor r9d, r9d
sub rdx, qword [rsp + 0x60]
xor r8d, r8d
mov rcx, qword [0x140032e28]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000b642
mov rcx, qword [0x140032e28]
lea r9, [rsp + 0x50]
mov r8d, 3
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000b67e
cmp dword [rsp + 0x50], 3
jne 0x14000b67e
cmp byte [rsp + 0x58], 0x4b
jne 0x14000b642
cmp byte [rsp + 0x59], 0x41
jne 0x14000b642
cmp byte [rsp + 0x5a], 0x59
jne 0x14000b642
mov ecx, 0x20003
call fcn.140012904
mov qword [0x140030df0], rax
test rax, rax
je 0x14000b678
mov ecx, 0x20000
call fcn.140012904
mov qword [0x140032e10], rax
test rax, rax
je 0x14000b678
call fcn.140005330
mov qword [0x140030de8], rax
test rax, rax
je 0x14000b678
mov qword [rsp + 0x190], r12
lea rsi, [0x140032e40]
mov qword [rsp + 0x188], r13
lea r12, [0x14002edd0]
mov r13d, 0x5c
lea rdi, [0x140035640]
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, rdi
call fcn.14000aac0
movzx eax, word [rsp + 0x50]
mov word [0x140035640], ax
test ax, ax
je 0x14000b4ca
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.14000aac0
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x14000b1a2
movzx r9d, word [0x140035640]
test r9w, r9w
je 0x14000b4ca
mov rbx, rdi
movzx eax, r9w
nop dword [rax + rax]
cmp ax, r13w
jne 0x14000b2db
cmp word [0x140030e10], r15w
mov edx, 0x1000
mov word [rbx], r15w
mov rcx, r12
mov word [0x14002edd0], r15w
je 0x14000b230
mov r8, r14
sub r8, r12
nop
cmp rdx, 1
jb 0x14000b65a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r15w
jne 0x14000b210
mov word [rcx], r15w
mov rax, r12
cmp word [0x14002edd0], r15w
mov ecx, 0x1000
je 0x14000b267
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r15w
jne 0x14000b250
cmp rcx, 1
jb 0x14000b65a
mov dword [rax], r13d
mov edx, 0x1000
cmp word [0x14002edd0], r15w
mov rax, r12
je 0x14000b28d
nop dword [rax]
add rax, 2
dec rdx
cmp word [rax], r15w
jne 0x14000b280
cmp word [0x140035640], r15w
je 0x14000b2c0
mov r8, rdi
sub r8, rax
nop dword [rax]
cmp rdx, 1
jb 0x14000b65a
movzx ecx, word [rax + r8]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [rax + r8], r15w
jne 0x14000b2a0
xor edx, edx
mov word [rax], r15w
mov rcx, r12
mov word [rbx], r13w
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx r9d, word [0x140035640]
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x14000b1e0
cmp word [0x140030e10], r15w
mov edx, 0x1000
mov word [0x14002edd0], r15w
mov rcx, r12
je 0x14000b330
mov r8, r14
sub r8, r12
nop dword [rax]
cmp rdx, 1
jb 0x14000b65a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r15w
jne 0x14000b310
mov word [rcx], r15w
mov rax, r12
cmp word [0x14002edd0], r15w
mov ecx, 0x1000
je 0x14000b367
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r15w
jne 0x14000b350
cmp rcx, 1
jb 0x14000b65a
mov dword [rax], r13d
mov edx, 0x1000
cmp word [0x14002edd0], r15w
mov rcx, r12
je 0x14000b38d
nop dword [rax]
add rcx, 2
dec rdx
cmp word [rcx], r15w
jne 0x14000b380
test r9w, r9w
je 0x14000b3c0
mov r8, rdi
sub r8, rcx
nop dword [rax]
cmp rdx, 1
jb 0x14000b65a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r15w
jne 0x14000b3a0
cmp word [0x140032e40], r15w
mov word [rcx], r15w
jne 0x14000b40a
cmp word [0x14002edd0], r15w
mov edx, 0x1000
mov rcx, rsi
je 0x14000b406
mov r8, r12
sub r8, rsi
cmp rdx, 1
jb 0x14000b65a
movzx eax, word [rcx + r8]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [rcx + r8], r15w
jne 0x14000b3e6
mov word [rcx], r15w
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14000aac0
mov rdi, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
mov dword [rsp + 0x28], r15d
mov r8d, 2
mov rcx, r12
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000b66c
test rdi, rdi
je 0x14000b4b5
nop dword [rax]
mov ebx, 0x8000
lea rcx, [0x140035e50]
cmp rdi, rbx
cmovbe ebx, edi
movsxd rsi, ebx
mov rdx, rsi
call fcn.14000aac0
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov r8d, ebx
lea rdx, [0x140035e50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000b660
sub rdi, rsi
jne 0x14000b460
lea rsi, [0x140032e40]
test rdi, rdi
jne 0x14000b666
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r14, [0x140030e10]
jmp 0x14000b174
mov rcx, qword [0x140032e28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140005460
mov rcx, qword [0x140030df0]
call fcn.1400123f4
mov rcx, qword [0x140032e10]
call fcn.1400123f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1400286e0]
mov edx, 0x80
mov r9d, eax
lea rcx, [rbp - 0x10]
call fcn.140001060
lea rdx, [rbp - 0x10]
lea rcx, str.NUITKA_ONEFILE_PARENT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x68
xor eax, eax
movups xmmword [rbp - 0x7c], xmm0
mov dword [rbp - 0x1c], eax
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000b672
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
mov qword [0x140030de0], rcx
mov dword [rsp + 0x5c], r15d
test rcx, rcx
je 0x14000b5f2
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140030de0]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000b5de
mov dword [rsp + 0x5c], 1
mov rcx, qword [0x140030de0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140030de0], r15
call fcn.14000ac60
mov eax, dword [rsp + 0x5c]
mov r13, qword [rsp + 0x188]
mov r12, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x180]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000b6a0
add rsp, 0x198
pop r15
pop rbp
ret
call fcn.14000a9e0
int3
call fcn.14000aa90
int3
call fcn.14000aa20
int3
call fcn.14000aa20
int3
call fcn.14000ee54
int3
call fcn.14000a9a0
int3
call fcn.14000aa00
int3
call fcn.14000aa60
int3
call fcn.14000aa40
int3
call fcn.14000aa20
int3
call fcn.14000aa00
int3
call fcn.14000aa00
int3