Function at 0x14000388c
Capabilities:
Create process on windows
Get common file path
Set current directory
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0xa08]
sub rsp, 0xaf0
mov rax, qword [0x1400153c8]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov r12, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectA]
xor ecx, ecx
lea rdx, str.Job_creation_failed
test rax, rax
mov qword [0x1400173f0], rax
setne cl
call fcn.1400030cc
mov rcx, qword [0x1400173f0]
lea r11, [rsp + 0x50]
mov ebx, 0x90
mov edi, 9
lea r8, [0x140017410]
mov r9d, ebx
mov edx, edi
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140003923
cmp dword [rsp + 0x50], ebx
jne 0x140003923
lea ecx, [rdi - 8]
jmp 0x140003925
xor ecx, ecx
lea rdx, str.Job_information_querying_failed
call fcn.1400030cc
mov rcx, qword [0x1400173f0]
or dword [0x140017420], 0x3000
lea r8, [0x140017410]
mov r9d, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
lea rdx, str.Job_information_setting_failed
mov ecx, eax
call fcn.1400030cc
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x68]
call fcn.140009770
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test dword [rbp - 0x64], 0x600
jne 0x140003a03
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rsi
mov rbx, rax
call fcn.140003630
lea rdx, str.making_stdin_inheritable_failed
mov ecx, eax
call fcn.1400030cc
mov rcx, rdi
call fcn.140003630
lea rdx, str.making_stdout_inheritable_failed
mov ecx, eax
call fcn.1400030cc
mov rcx, rbx
call fcn.140003630
lea rdx, str.making_stderr_inheritable_failed
mov ecx, eax
call fcn.1400030cc
bts dword [rbp - 0x64], 8
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rbx
lea rax, [rsp + 0x60]
lea rbx, [0x1400173f8]
xor r9d, r9d
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r8d, r8d
mov rdx, r12
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140003a92
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x1e0]
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rcx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea r9, [rbp + 0x1e0]
lea rdx, str.Unable_to_create_process_using__ls:__ls
mov r8, r12
xor ecx, ecx
call fcn.140003000
mov rdx, qword [0x1400173f8]
mov rcx, qword [0x1400173f0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp word [rbp - 0x5e], 4
jb 0x140003b28
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x140003b28
movsxd rdi, dword [rdx]
movzx eax, word [rbp - 0x5e]
lea rcx, [rdi + rdi*8 + 4]
cmp rax, rcx
jb 0x140003b28
lea rcx, [0x140003674]
lea rsi, [rdi + rdx + 4]
call fcn.1400053ac
lea rbx, [rsi + 0x18]
lea r12, [rsi + rdi*8]
mov r13, rax
cmp rbx, r12
jae 0x140003b19
mov rdi, rbx
sub rdi, rsi
cmp qword [rbx], 0
je 0x140003b0c
cmp qword [rbx], 0xffffffffffffffff
je 0x140003b0c
cmp qword [rbx], 0xfffffffffffffffe
je 0x140003b0c
mov rcx, rdi
sar rcx, 3
call fcn.1400063ac
add rbx, 8
add rdi, 8
cmp rbx, r12
jb 0x140003aee
mov rcx, r13
call fcn.1400053ac
lea rbx, [0x1400173f8]
call fcn.1400036c8
lea rdx, [rbp - 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140003b4f
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [0x140003530]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rdx, str.control_handler_setting_failed
mov ecx, eax
call fcn.1400030cc
mov rcx, rbx
call fcn.14000357c
mov rcx, qword [0x140017400]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400173f8]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [0x1400173f8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea rdx, str.Failed_to_get_exit_code_of_process
mov ecx, eax
call fcn.1400030cc
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExitProcess]