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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
xor r14d, r14d
mov dword [rbp + 0x40], 0x68
mov r13, r8
mov qword [rsp + 0x70], r14
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x48]
lea r8d, [r14 + 0x60]
mov r15, r9
call fcn.1400e43c0
xor r12b, r12b
test byte [0x140155960], 1
jne 0x1400ab2e1
lock bts qword [0x140155960], 0x1f
jae 0x1400ab229
test byte [0x140155960], 1
jne 0x1400ab2e1
xor edx, edx
lea rcx, [0x140155960]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x1400ab2e1
lea rcx, str.winsta.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov rcx, rax
lea rdx, [0x140133d78]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rcx, str.userenv.dll
mov qword [0x14015b1b8], 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 [0x14015b1a8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14015b1c0], rax
lock bts qword [0x140155960], 0
jb 0x1400ab2e1
mov rbx, qword [0x140155968]
test rbx, rbx
je 0x1400ab2ae
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x140155960], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x1400ab2e1
test rbx, rbx
je 0x1400ab2e1
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x140155968], r14
mov edx, esi
and edx, 0x3000
cmp edx, 0x3000
jne 0x1400ab2fb
mov eax, 0xc00000f0
jmp 0x1400ab8b9
cmp qword [rdi], r14
jne 0x1400ab310
cmp qword [rdi + 8], r14
jne 0x1400ab310
mov eax, 0xc0000030
jmp 0x1400ab8b9
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x50], rax
bt esi, 0x12
jae 0x1400ab4c7
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 0x1400ab35e
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 0x1400ab4c7
test dl, dl
je 0x1400ab4c7
mov rcx, qword [rdi + 8]
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x1400ab39a
mov rdx, rbx
inc rdx
cmp word [rcx + rdx*2], r14w
jne 0x1400ab383
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov r15, rax
jmp 0x1400ab39d
mov r15, r14
mov r8, qword [rdi + 0x18]
test r8, r8
jne 0x1400ab3a9
or esi, 2
movzx eax, sil
mov ecx, r14d
and al, 2
mov edx, 0x400
cmovne ecx, edx
test sil, 4
je 0x1400ab3c3
or ecx, 4
test sil, 8
je 0x1400ab3cd
bts ecx, 0x18
test sil, 0x10
je 0x1400ab3d6
or ecx, 0x10
test r15, r15
je 0x1400ab3e1
mov rdx, qword [r15 + 8]
jmp 0x1400ab3e4
mov rdx, r14
lea rax, [rbp - 0x70]
mov r9d, 1
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x40]
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 0x1400ab44b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400ab440
mov r14d, eax
jmp 0x1400ab44b
movzx r14d, ax
or r14d, 0xc0070000
test r15, r15
je 0x1400ab463
lea rcx, [r15 - 0x10]
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x1400ab463
call fcn.1400ae900
test r14d, r14d
js 0x1400ab4bf
test r13, r13
je 0x1400ab47b
mov eax, dword [rbp - 0x60]
mov qword [r13], rax
mov eax, dword [rbp - 0x5c]
mov qword [r13 + 8], rax
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x1400ab490
mov rax, qword [rbp - 0x70]
mov qword [rcx], rax
jmp 0x1400ab49a
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x110]
test rcx, rcx
je 0x1400ab4b5
mov rax, qword [rbp - 0x68]
mov qword [rcx], rax
mov eax, r14d
jmp 0x1400ab8b9
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
jmp 0x1400ab8b9
bt esi, 0xc
jae 0x1400ab639
cmp byte [0x14015e000], r14b
mov rax, qword [rdi + 0x30]
mov ebx, dword [sym.ProcessHacker.exe_ProcessQueryAccess]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r14
je 0x1400ab4f7
mov eax, ebx
and eax, 0x1410
cmp eax, ebx
je 0x1400ab53b
xorps xmm0, xmm0
mov dword [rbp - 0x38], 0x30
lea r9, [rbp - 0x80]
mov qword [rbp - 0x30], r14
lea r8, [rbp - 0x38]
mov dword [rbp - 0x20], r14d
mov edx, ebx
mov qword [rbp - 0x28], r14
lea rcx, [rsp + 0x68]
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x1400ab54b
cmp byte [0x14015e000], r14b
je 0x1400ab8b9
lea r8, [rbp - 0x80]
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1400c02c0
test eax, eax
js 0x1400ab8b9
mov r15, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
mov rcx, r15
mov edx, 0xf01ff
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x1400ab591
cmp byte [0x14015e000], r14b
je 0x1400ab591
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, r15
call fcn.1400c03e0
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1400ab8b7
mov r15, qword [rbp + 0x108]
bt esi, 0x11
jae 0x1400ab5b4
mov r12b, 1
bt esi, 0x10
jae 0x1400ab77e
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x54]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x48]
lea edx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400ab77e
mov rbx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xf8]
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400ab775
cmp dword [rbp + 0xf8], 1
jne 0x1400ab775
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x60], rbx
jmp 0x1400ab7e4
bt esi, 0xd
jae 0x1400ab68d
mov rax, qword [0x14015b1b8]
test rax, rax
jne 0x1400ab655
mov eax, 0xc000007a
jmp 0x1400ab8b9
mov edx, dword [rdi + 0x30]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x28]
xor ecx, ecx
mov dword [rsp + 0x20], 0x18
mov r8d, 0xe
call rax
test al, al
je 0x1400ab75a
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x60], rax
jmp 0x1400ab5ab
mov ebx, dword [rdi + 0x48]
test ebx, ebx
jne 0x1400ab72e
mov rcx, qword [rdi + 0x30]
mov ebx, 2
movzx eax, byte [rcx]
xor al, 0xe
test al, 0x1f
jne 0x1400ab72e
lea rdx, str.NT_AUTHORITY
call fcn.1400e4d4c
test eax, eax
jne 0x1400ab72e
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xf3
test al, 0x1f
jne 0x1400ab6ef
lea rdx, str.SYSTEM
call fcn.1400e4d4c
test eax, eax
jne 0x1400ab6ef
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 0x1400ab70c
lea rdx, str.LOCAL_SERVICE
call fcn.1400e4d4c
test eax, eax
je 0x1400ab729
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xe
test al, 0x1f
jne 0x1400ab72e
lea rdx, str.NETWORK_SERVICE
call fcn.1400e4d4c
test eax, eax
jne 0x1400ab72e
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 0x1400ab5b4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x1400ab8b9
movzx eax, ax
or eax, 0xc0070000
jmp 0x1400ab8b9
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test r12b, r12b
je 0x1400ab7e4
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [rbp - 8]
mov dword [rbp - 8], 0x30
mov edx, 0xf01ff
mov qword [rbp], r14
mov dword [rbp + 0x10], r14d
mov qword [rbp + 8], r14
movdqu xmmword [rbp + 0x18], 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 0x1400ab8b7
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x60], rax
bt esi, 0x11
jae 0x1400ab815
mov eax, dword [rdi + 0x28]
lea r8, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
mov r9d, 4
mov dword [rsp + 0x78], eax
lea edx, [r9 + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationToken]
mov ebx, eax
test eax, eax
js 0x1400ab8ac
cmp qword [rdi + 0x18], r14
jne 0x1400ab845
mov rax, qword [0x14015b1a8]
test rax, rax
je 0x1400ab845
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call rax
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x1400ab84a
or esi, 2
jmp 0x1400ab84a
mov r8, qword [rsp + 0x70]
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 + 0x110]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
mov rcx, qword [rsp + 0x70]
mov ebx, eax
test rcx, rcx
je 0x1400ab8ac
mov rdx, qword [0x14015b1c0]
test rdx, rdx
je 0x1400ab8ac
call rdx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret