Function at 0x14002bf50
Capabilities:
Create process on windows
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
xor r14d, r14d
mov dword [rbp + 0x30], 0x68
mov r12, r8
mov qword [rsp + 0x68], r14
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x38]
lea r8d, [r14 + 0x60]
mov r13, r9
call fcn.1400e2690
xor r15b, r15b
test byte [0x1401554a0], 1
jne 0x14002c094
lock bts qword [0x1401554a0], 0x1f
jae 0x14002bfdc
test byte [0x1401554a0], 1
jne 0x14002c094
xor edx, edx
lea rcx, [0x1401554a0]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14002c094
lea rcx, [0x140125388]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, [0x1401253a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.userenv.dll
mov qword [0x14015a3d8], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.CreateEnvironmentBlock
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DestroyEnvironmentBlock
mov rcx, rbx
mov qword [0x14015a3c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015a3e0], rax
lock bts qword [0x1401554a0], 0
jb 0x14002c094
mov rbx, qword [0x1401554a8]
test rbx, rbx
je 0x14002c061
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x1401554a0], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x14002c094
test rbx, rbx
je 0x14002c094
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x1401554a8], r14
mov edx, esi
and edx, 0x3000
cmp edx, 0x3000
jne 0x14002c0ae
mov eax, 0xc00000f0
jmp 0x14002c634
cmp qword [rdi], r14
jne 0x14002c0c3
cmp qword [rdi + 8], r14
jne 0x14002c0c3
mov eax, 0xc0000030
jmp 0x14002c634
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x40], rax
bt esi, 0x12
jae 0x14002c275
test edx, edx
mov al, 1
movzx ecx, al
mov eax, esi
cmovne ecx, r14d
and eax, 0x10000
movzx edx, cl
cmovne edx, r14d
bt esi, 0x11
jae 0x14002c111
mov rax, qword gs:[0x30]
movzx edx, dl
mov rcx, qword [rax + 0x60]
mov eax, dword [rcx + 0x2c0]
cmp dword [rdi + 0x28], eax
cmovne edx, r14d
test dword [rdi + 0x48], 0xfffffffd
jne 0x14002c275
test dl, dl
je 0x14002c275
mov rcx, qword [rdi + 8]
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x14002c14d
mov rdx, rbx
inc rdx
cmp word [rcx + rdx*2], r14w
jne 0x14002c136
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov r15, rax
jmp 0x14002c150
mov r15, r14
mov r8, qword [rdi + 0x18]
test r8, r8
jne 0x14002c15c
or esi, 2
movzx eax, sil
mov ecx, r14d
and al, 2
mov edx, 0x400
cmovne ecx, edx
test sil, 4
je 0x14002c176
or ecx, 4
test sil, 8
je 0x14002c180
bts ecx, 0x18
test sil, 0x10
je 0x14002c189
or ecx, 0x10
test r15, r15
je 0x14002c194
mov rdx, qword [r15 + 8]
jmp 0x14002c197
mov rdx, r14
lea rax, [rbp - 0x80]
mov r9d, 1
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi]
mov qword [rsp + 0x38], r8
mov r8, qword [rdi + 0x40]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rdi + 0x38]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x14002c1fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14002c1f3
mov r14d, eax
jmp 0x14002c1fe
movzx r14d, ax
or r14d, 0xc0070000
test r15, r15
je 0x14002c216
lea rcx, [r15 - 0x10]
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x14002c216
call fcn.1400258b0
test r14d, r14d
js 0x14002c26d
test r12, r12
je 0x14002c22f
mov eax, dword [rbp - 0x70]
mov qword [r12], rax
mov eax, dword [rbp - 0x6c]
mov qword [r12 + 8], rax
test r13, r13
je 0x14002c23e
mov rax, qword [rbp - 0x80]
mov qword [r13], rax
jmp 0x14002c248
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x14002c263
mov rax, qword [rbp - 0x78]
mov qword [rcx], rax
mov eax, r14d
jmp 0x14002c634
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
jmp 0x14002c634
bt esi, 0xc
jae 0x14002c3b4
mov r8, qword [rdi + 0x30]
lea rcx, [rsp + 0x78]
mov edx, dword [sym.ProcessHacker.exe_ProcessQueryAccess]
call sym.ProcessHacker.exe_PhOpenProcess
test eax, eax
js 0x14002c634
mov rcx, qword [0x14015a2a8]
test rcx, rcx
je 0x14002c2fc
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x48], r14d
xor r8d, r8d
mov qword [rbp - 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
mov dword [rsp + 0x38], 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 0x999920cf
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x40], 0xf01ff
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
jmp 0x14002c311
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14002c632
bt esi, 0x11
jae 0x14002c32f
mov r15b, 1
bt esi, 0x10
jae 0x14002c4f9
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x64]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x58]
lea edx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x14002c4f9
mov rbx, qword [rbp - 0x58]
lea rax, [rbp - 0x60]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xd8]
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x14002c4f0
cmp dword [rbp + 0xd8], 1
jne 0x14002c4f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x60], rbx
jmp 0x14002c55f
bt esi, 0xd
jae 0x14002c408
mov rax, qword [0x14015a3d8]
test rax, rax
jne 0x14002c3d0
mov eax, 0xc000007a
jmp 0x14002c634
mov edx, dword [rdi + 0x30]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x28], rcx
lea r9, [rbp]
xor ecx, ecx
mov dword [rsp + 0x20], 0x18
mov r8d, 0xe
call rax
test al, al
je 0x14002c4d5
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x14002c326
mov ebx, dword [rdi + 0x48]
test ebx, ebx
jne 0x14002c4a9
mov rcx, qword [rdi + 0x30]
mov ebx, 2
movzx eax, byte [rcx]
xor al, 0xe
test al, 0x1f
jne 0x14002c4a9
lea rdx, str.NT_AUTHORITY
call fcn.1400e9230
test eax, eax
jne 0x14002c4a9
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xf3
test al, 0x1f
jne 0x14002c46a
lea rdx, str.SYSTEM
call fcn.1400e9230
test eax, eax
jne 0x14002c46a
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
mov ebx, 9
mov eax, 5
cmovae ebx, eax
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xc
test al, 0x1f
jne 0x14002c487
lea rdx, str.LOCAL_SERVICE
call fcn.1400e9230
test eax, eax
je 0x14002c4a4
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xe
test al, 0x1f
jne 0x14002c4a9
lea rdx, str.NETWORK_SERVICE
call fcn.1400e9230
test eax, eax
jne 0x14002c4a9
mov ebx, 5
mov r8, qword [rdi + 0x40]
lea rax, [rsp + 0x60]
mov rdx, qword [rdi + 0x30]
mov r9d, ebx
mov rcx, qword [rdi + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x14002c32f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14002c634
movzx eax, ax
or eax, 0xc0070000
jmp 0x14002c634
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test r15b, r15b
je 0x14002c55f
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0xf01ff
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], r14d
mov qword [rbp - 0x20], r14
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14002c632
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x60], rax
bt esi, 0x11
jae 0x14002c590
mov eax, dword [rdi + 0x28]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r9d, 4
mov dword [rsp + 0x70], eax
lea edx, [r9 + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationToken]
mov ebx, eax
test eax, eax
js 0x14002c627
cmp qword [rdi + 0x18], r14
jne 0x14002c5c0
mov rax, qword [0x14015a3c8]
test rax, rax
je 0x14002c5c0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call rax
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x14002c5c5
or esi, 2
jmp 0x14002c5c5
mov r8, qword [rsp + 0x68]
mov rax, qword [rdi + 0x18]
mov r9, qword [rdi + 0x10]
test rax, rax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
cmovne r8, rax
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test rcx, rcx
je 0x14002c627
mov rdx, qword [0x14015a3e0]
test rdx, rdx
je 0x14002c627
call rdx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret