Function at 0x1400aaef0
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.1400e3c20
xor r15b, r15b
test byte [0x140156ae8], 1
jne 0x1400ab034
lock bts qword [0x140156ae8], 0x1f
jae 0x1400aaf7c
test byte [0x140156ae8], 1
jne 0x1400ab034
xor edx, edx
lea rcx, [0x140156ae8]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x1400ab034
lea rcx, str.winsta.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, [0x140134998]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.userenv.dll
mov qword [0x14015c338], 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 [0x14015c328], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015c340], rax
lock bts qword [0x140156ae8], 0
jb 0x1400ab034
mov rbx, qword [0x140156af0]
test rbx, rbx
je 0x1400ab001
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x140156ae8], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x1400ab034
test rbx, rbx
je 0x1400ab034
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x140156af0], r14
mov edx, esi
and edx, 0x3000
cmp edx, 0x3000
jne 0x1400ab04e
mov eax, 0xc00000f0
jmp 0x1400ab5d4
cmp qword [rdi], r14
jne 0x1400ab063
cmp qword [rdi + 8], r14
jne 0x1400ab063
mov eax, 0xc0000030
jmp 0x1400ab5d4
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x40], rax
bt esi, 0x12
jae 0x1400ab215
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 0x1400ab0b1
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 0x1400ab215
test dl, dl
je 0x1400ab215
mov rcx, qword [rdi + 8]
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x1400ab0ed
mov rdx, rbx
inc rdx
cmp word [rcx + rdx*2], r14w
jne 0x1400ab0d6
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov r15, rax
jmp 0x1400ab0f0
mov r15, r14
mov r8, qword [rdi + 0x18]
test r8, r8
jne 0x1400ab0fc
or esi, 2
movzx eax, sil
mov ecx, r14d
and al, 2
mov edx, 0x400
cmovne ecx, edx
test sil, 4
je 0x1400ab116
or ecx, 4
test sil, 8
je 0x1400ab120
bts ecx, 0x18
test sil, 0x10
je 0x1400ab129
or ecx, 0x10
test r15, r15
je 0x1400ab134
mov rdx, qword [r15 + 8]
jmp 0x1400ab137
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 0x1400ab19e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400ab193
mov r14d, eax
jmp 0x1400ab19e
movzx r14d, ax
or r14d, 0xc0070000
test r15, r15
je 0x1400ab1b6
lea rcx, [r15 - 0x10]
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x1400ab1b6
call fcn.1400ae580
test r14d, r14d
js 0x1400ab20d
test r12, r12
je 0x1400ab1cf
mov eax, dword [rbp - 0x70]
mov qword [r12], rax
mov eax, dword [rbp - 0x6c]
mov qword [r12 + 8], rax
test r13, r13
je 0x1400ab1de
mov rax, qword [rbp - 0x80]
mov qword [r13], rax
jmp 0x1400ab1e8
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x1400ab203
mov rax, qword [rbp - 0x78]
mov qword [rcx], rax
mov eax, r14d
jmp 0x1400ab5d4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
jmp 0x1400ab5d4
bt esi, 0xc
jae 0x1400ab354
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 0x1400ab5d4
mov rcx, qword [0x14015c480]
test rcx, rcx
je 0x1400ab29c
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 0x1400ab2b1
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 0x1400ab5d2
bt esi, 0x11
jae 0x1400ab2cf
mov r15b, 1
bt esi, 0x10
jae 0x1400ab499
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 0x1400ab499
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 0x1400ab490
cmp dword [rbp + 0xd8], 1
jne 0x1400ab490
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x60], rbx
jmp 0x1400ab4ff
bt esi, 0xd
jae 0x1400ab3a8
mov rax, qword [0x14015c338]
test rax, rax
jne 0x1400ab370
mov eax, 0xc000007a
jmp 0x1400ab5d4
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 0x1400ab475
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x1400ab2c6
mov ebx, dword [rdi + 0x48]
test ebx, ebx
jne 0x1400ab449
mov rcx, qword [rdi + 0x30]
mov ebx, 2
movzx eax, byte [rcx]
xor al, 0xe
test al, 0x1f
jne 0x1400ab449
lea rdx, str.NT_AUTHORITY
call fcn.1400e45ac
test eax, eax
jne 0x1400ab449
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xf3
test al, 0x1f
jne 0x1400ab40a
lea rdx, str.SYSTEM
call fcn.1400e45ac
test eax, eax
jne 0x1400ab40a
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 0x1400ab427
lea rdx, str.LOCAL_SERVICE
call fcn.1400e45ac
test eax, eax
je 0x1400ab444
mov rcx, qword [rdi + 0x38]
movzx eax, byte [rcx]
xor al, 0xe
test al, 0x1f
jne 0x1400ab449
lea rdx, str.NETWORK_SERVICE
call fcn.1400e45ac
test eax, eax
jne 0x1400ab449
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 0x1400ab2cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400ab5d4
movzx eax, ax
or eax, 0xc0070000
jmp 0x1400ab5d4
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test r15b, r15b
je 0x1400ab4ff
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 0x1400ab5d2
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x60], rax
bt esi, 0x11
jae 0x1400ab530
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 0x1400ab5c7
cmp qword [rdi + 0x18], r14
jne 0x1400ab560
mov rax, qword [0x14015c328]
test rax, rax
je 0x1400ab560
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call rax
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x1400ab565
or esi, 2
jmp 0x1400ab565
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 0x1400ab5c7
mov rdx, qword [0x14015c340]
test rdx, rdx
je 0x1400ab5c7
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