Function at 0x140072bf0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rsi, r9
mov rbp, r8
mov r12, rdx
mov r14, rcx
lea rbx, [rsp + 0x70]
mov edi, 8
nop word [rax + rax]
lea rcx, [0x1400d640c]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
add rbx, 2
mov r11d, eax
mov eax, 0x4ec4ec4f
mul r11d
shr edx, 3
imul edx, edx, 0x1a
sub r11d, edx
add r11w, 0x41
sub rdi, 1
mov word [rbx - 2], r11w
jne 0x140072c30
lea r9, [rsp + 0x70]
lea r8, str.ProcessHacker_s
lea edx, [rdi + 0x28]
lea rcx, [rsp + 0x100]
xor r15d, r15d
mov word [rsp + 0x80], r15w
call fcn.140094c64
movzx eax, byte [rsp + 0x200]
mov r9d, dword [rsp + 0x1e0]
lea r11, [rsp + 0x100]
mov r8, rsi
mov qword [rsp + 0x40], r11
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x1f0]
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1e8]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140072270
mov r13, rax
test rax, rax
jne 0x140072cf3
mov eax, 0xc0000030
jmp 0x140072f56
or edi, 0xffffffff
cmp byte [0x1400d8fb8], r15b
je 0x140072d17
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x100]
call fcn.1400729c0
mov ebx, eax
jmp 0x140072f42
mov rbx, qword [0x1400d91a8]
mov esi, 0x64
xor r8d, r8d
lea edx, [rsi + 0x12]
mov rcx, rbx
mov dword [rsp + 0x58], esi
call fcn.14001fbe0
lock add dword [rbx + 0x18], 1
mov qword [rax + 0x10], rbx
lea rbx, [rax + 0x20]
mov dword [rax], 1
mov qword [rax + 8], 0x76
mov word [rbx + 2], si
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov word [rbx + 0x74], r15w
movzx edx, r15w
add edx, 0x62
mov word [rbx], r15w
mov word [rax], r15w
mov qword [rsp + 0x60], rbx
cmp edx, esi
jbe 0x140072d88
lea rcx, [rsp + 0x58]
call fcn.140002670
mov rbx, qword [rsp + 0x60]
movzx eax, word [rbx]
lea rdx, str._c__ctype_processhacker__caction_runas__cobject__
mov r8d, 0x62
shr rax, 1
lea rcx, [rbx + rax*2 + 0x10]
call fcn.140094930
add word [rbx], 0x62
movzx eax, word [rbx]
shr rax, 1
mov rcx, r13
mov word [rbx + rax*2 + 0x10], r15w
call sym.ProcessHacker.exe_PhEscapeCommandLinePart
movzx esi, word [rax]
mov r12, rax
lea rbp, [rax + 0x10]
test esi, esi
je 0x140072e0f
movzx edx, word [rbx]
add edx, esi
cmp dword [rsp + 0x58], edx
jae 0x140072de5
lea rcx, [rsp + 0x58]
call fcn.140002670
mov rbx, qword [rsp + 0x60]
test rbp, rbp
je 0x140072e00
movzx eax, word [rbx]
mov r8, rsi
mov rdx, rbp
shr rax, 1
lea rcx, [rbx + rax*2 + 0x10]
call fcn.140094930
add word [rbx], si
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r15w
lea rcx, [r12 - 0x20]
mov eax, edi
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x140072e24
call fcn.14001fcd0
lea r8, [rsp + 0x100]
lea rdx, str.___servicename__s
lea rcx, [rsp + 0x58]
call sym.ProcessHacker.exe_PhAppendFormatStringBuilder
xor edx, edx
lea rcx, [rsp + 0x94]
lea r8d, [rdx + 0x6c]
mov dword [rsp + 0x90], 0x70
call fcn.14009e740
mov r11, qword [0x1400d8270]
mov rbp, qword [rsp + 0x60]
add r11, 0x10
cmp dword [0x1400d8fc0], 0x3c
lea rax, [rbp + 0x10]
mov qword [rsp + 0xb0], rax
lea rax, str.runas
lea rcx, [rsp + 0x90]
cmovb rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], r11
mov dword [rsp + 0x94], 0x40
mov dword [rsp + 0xc0], 5
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140072f29
mov rsi, qword [rsp + 0xf8]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x68], 0xfffffffffa0a1f00
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x140072f1e
lea r9d, [rax + 0x30]
lea r8, [rsp + 0x160]
xor edx, edx
mov rcx, rsi
mov ebx, r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
cmovns ebx, dword [rsp + 0x160]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140072f2e
mov ebx, 0xc0000120
lea rcx, [rbp - 0x20]
mov eax, edi
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x140072f42
call fcn.14001fcd0
lea rcx, [r13 - 0x20]
lock xadd dword [rcx], edi
add edi, 0xffffffff
jne 0x140072f54
call fcn.14001fcd0
mov eax, ebx
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret