Function at 0x1400031b8
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov esi, ecx
mov dword [rsp + 0x78], 0x18
xor r12d, r12d
mov dword [rbp - 0x78], 1
lea rcx, [rbp + 0x20]
mov qword [rbp - 0x80], r12
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea ebx, [r12 + 0x68]
xor edx, edx
mov r8d, ebx
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x50], ebx
mov dword [rbp - 0x14], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [rsp + 0x78]
mov qword [rbp + 0x10], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140003590
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140003590
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r14d, [r12 + 2]
mov r8, rbx
mov dword [rsp + 0x30], r14d
lea r9, [rsp + 0x60]
mov dword [rsp + 0x28], r12d
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, eax
call fcn.14000305c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r14d
lea r9, [rsp + 0x60]
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov dword [rsp + 0x20], r12d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, eax
call fcn.14000305c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
mov ecx, 0xde
mov qword [rsp + 0x58], rax
call fcn.140007930
mov r9, qword [rsp + 0x68]
lea r8, [0x14002fd4c]
lea edx, [r12 + 0x11]
mov r14, rax
lea rcx, [rbp + 0x90]
call fcn.14000350c
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, str.MPCL_WRITE_PIPE_HANDLE
lea r8, str._s_s
lea edi, [r12 + 0x6f]
mov rcx, r14
mov edx, edi
call fcn.14000350c
mov r9, qword [rsp + 0x70]
lea r8, [0x14002fd4c]
inc eax
lea edx, [r12 + 0x11]
movsxd rcx, eax
sub rdi, rcx
lea rbx, [r14 + rcx*2]
lea rcx, [rbp + 0x90]
call fcn.14000350c
lea rax, [rbp + 0x90]
mov rdx, rdi
lea r9, str.MPCL_READ_PIPE_HANDLE
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov rcx, rbx
call fcn.14000350c
inc eax
mov dword [rsp + 0x20], esi
movsxd rcx, eax
lea r9, str.MPCL_SERVER_ID
sub rdi, rcx
lea r8, str._s_d
mov rdx, rdi
lea rbx, [rbx + rcx*2]
mov rcx, rbx
call fcn.14000350c
movsxd rcx, eax
mov word [rbx + rcx*2 + 2], r12w
mov rcx, r14
call fcn.140002f08
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea rcx, [0x14005f450]
mov rdx, rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001f53a
cmp dword [0x1400614a0], r12d
mov rdi, qword [rbp - 0x70]
jne 0x14001f557
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14000349d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x1400034ab
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 0x20
call fcn.140007930
test rax, rax
je 0x140003506
mov rdx, qword [rsp + 0x50]
lea r8, [0x14002fcf8]
mov rcx, qword [rsp + 0x58]
mov qword [rax], r8
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
mov qword [rax + 8], rdi
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.140011610
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
mov rax, r12
jmp 0x1400034da
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rbp - 0x68]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
jmp 0x14000346f