Function at 0x7ff7c0113310
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov r8, rdx
mov rdx, rcx
lea rcx, [0x7ff7c018d7c0]
call sym.ProcessHacker.exe_PhFormatString
mov rdi, rax
call sym.ProcessHacker.exe_PhGetSystemDirectory
mov rbx, rax
mov r15d, 0xffffffff
test rax, rax
je 0x7ff7c01133a1
mov r9, qword [rdi + 8]
lea r8, [0x7ff7c015286c]
mov rdx, qword [rax + 8]
lea ecx, [r15 + 4]
call sym.ProcessHacker.exe_PhConcatStrings
mov rcx, rdi
mov rdi, rax
test rcx, rcx
je 0x7ff7c011338b
add rcx, 0xfffffffffffffff0
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c011338b
call fcn.7ff7c00c6290
lea rcx, [rbx - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c01133a1
call fcn.7ff7c00c6290
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.7ff7c00e1cf0
test eax, eax
js 0x7ff7c0113787
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.7ff7c00e1cf0
mov ebx, eax
test eax, eax
jns 0x7ff7c01133fa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
add rsp, 0x158
pop r15
pop rdi
pop rbx
pop rbp
ret
mov rax, qword ds:[rsp + 0x60]
xorps xmm0, xmm0
mov qword [rsp + 0x180], rsi
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x150], r12
mov qword [rbp - 0x20], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x148], r13
xor r13d, r13d
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x18], rax
mov ebx, r13d
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x10], rax
mov esi, r13d
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x34], 0x101
movups xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x30], r13w
mov rcx, qword [rdi + 8]
mov edi, r13d
mov qword [rsp + 0x140], r14
test rcx, rcx
je 0x7ff7c01135a8
call sym.ProcessHacker.exe_PhCreateString
mov rsi, rax
mov r12, rax
test rax, rax
je 0x7ff7c01135a8
mov rcx, qword [rax + 8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
je 0x7ff7c01135a8
mov rcx, qword ds:[rax]
call sym.ProcessHacker.exe_PhCreateString
mov rcx, r14
mov rbx, rax
mov r13, rax
call qword [sym.imp.kernel32.dll_LocalFree]
test rbx, rbx
je 0x7ff7c01135a5
mov rcx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
jne 0x7ff7c0113501
mov rcx, qword [rbx + 8]
call fcn.7ff7c00c34e0
mov rbx, rax
lea rcx, [r13 - 0x10]
test rax, rax
mov eax, r15d
je 0x7ff7c0113542
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c0113501
call fcn.7ff7c00c6290
mov r14, rbx
cmp qword [rbx], rdi
je 0x7ff7c01135a5
movups xmm0, xmmword [rbx]
mov edx, 0x5c
xor r8d, r8d
mov rcx, rbx
movups xmmword [rbp], xmm0
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x7ff7c01135a5
lea rbx, ds:[rax + rax]
test rbx, rbx
jne 0x7ff7c011355c
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rdi, rax
xor r13d, r13d
jmp 0x7ff7c0113597
xor r13d, r13d
mov ebx, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c01135a8
call fcn.7ff7c00c6290
jmp 0x7ff7c01135a8
mov rdx, qword [0x7ff7c01d3b58]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rbp + 8]
mov rdi, rax
xor r13d, r13d
mov qword [rax], rbx
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + rbx], r13w
test rdx, rdx
je 0x7ff7c0113597
mov rcx, qword [rdi + 8]
mov r8, rbx
call fcn.7ff7c0125120
mov rbx, r14
test rdi, rdi
je 0x7ff7c01135a8
mov rax, qword [rdi + 8]
jmp 0x7ff7c01135ab
xor r13d, r13d
mov rax, r13
mov r12, qword [rsp + 0x150]
test rsi, rsi
je 0x7ff7c01135be
mov rdx, qword [rsi + 8]
jmp 0x7ff7c01135c1
mov rdx, r13
test rbx, rbx
je 0x7ff7c01135cc
mov rcx, qword [rbx + 8]
jmp 0x7ff7c01135cf
mov rcx, r13
lea r8, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], r8
lea r8, [rbp - 0x70]
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
call qword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x7ff7c0113612
mov r14d, r13d
jmp 0x7ff7c011362a
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14d, eax
test eax, eax
jle 0x7ff7c011362a
movzx r14d, ax
or r14d, 0xc0070000
test rbx, rbx
je 0x7ff7c0113645
lea rcx, [rbx - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c0113645
call fcn.7ff7c00c6290
test rsi, rsi
je 0x7ff7c0113660
lea rcx, [rsi - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c0113660
call fcn.7ff7c00c6290
test rdi, rdi
je 0x7ff7c011367b
lea rcx, ds:[rdi - 0x10]
lock xadd dword [rcx + 8], r15d
cmp r15d, 1
jne 0x7ff7c011367b
call fcn.7ff7c00c6290
test r14d, r14d
js 0x7ff7c011371e
mov rcx, qword ds:[rbp - 0x80]
mov rdi, qword [rsp + 0x78]
test rcx, rcx
je 0x7ff7c011369b
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0x58]
mov dl, 1
mov rcx, rsi
call fcn.7ff7c00c58b0
mov r9d, 0x30
mov qword [rsp + 0x20], r13
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, rdi
mov r14, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
mov ebx, eax
mov rax, qword [rbp + 0x98]
cmovns ebx, dword [rbp + 0x10]
test rax, rax
je 0x7ff7c01136fd
test ebx, ebx
jne 0x7ff7c01136fd
mov qword [rax], r14
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
jmp 0x7ff7c011376f
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x7ff7c011372e
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x7ff7c011373d
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
mov r13, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x180]
mov r14, qword [rsp + 0x140]
add rsp, 0x158
pop r15
pop rdi
pop rbx
pop rbp
ret