Function at 0x7ff7c00158b0
Capabilities:
Check processdebugport

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
xor r14d, r14d
mov rsi, rcx
test byte [0x7ff7c01cd760], 1
jne 0x7ff7c00159b5
lock bts qword [0x7ff7c01cd760], 0x1f
jae 0x7ff7c0015909
test byte [0x7ff7c01cd760], 1
jne 0x7ff7c00159b5
xor edx, edx
lea rcx, [0x7ff7c01cd760]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x7ff7c00159b5
mov rdx, qword [0x7ff7c01d3b00]
mov ecx, 0x40
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, 1
mov ecx, ebx
mov word [rax], r14w
lock xadd dword [0x7ff7c01d3acc], ecx
movzx edx, cl
lea rdi, [0x7ff7c01d78c0]
lea rcx, [0x7ff7c0015d20]
mov byte [rax + 2], dl
mov qword [rax + 8], rcx
lea rcx, [0x7ff7c017cf90]
mov qword [rax + 0x10], rcx
lea ecx, [rbx + 0x3f]
mov qword [rdi + rdx*8], rax
mov rdx, qword [0x7ff7c01d3b00]
mov dword [rax + 4], r14d
mov qword [0x7ff7c01d3108], rax
call sym.ProcessHacker.exe_PhCreateObject
mov word ds:[rax], r14w
lock xadd dword [0x7ff7c01d3acc], ebx
movzx ebx, bl
lea rdx, [0x7ff7c0015ee0]
mov qword [rax + 8], rdx
lea rcx, [0x7ff7c01cd760]
lea rdx, [0x7ff7c017cfb0]
mov byte [rax + 2], bl
mov qword [rax + 0x10], rdx
mov qword [rdi + rbx*8], rax
mov dword [rax + 4], r14d
mov qword [0x7ff7c01d3100], rax
call sym.ProcessHacker.exe_PhfSetEvent
mov rcx, qword [0x7ff7c01d3038]
mov rdx, qword [0x7ff7c01d3108]
add rcx, 0xe0
mov qword [0x7ff7c01d3030], 0xe0
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
mov rdi, rax
call fcn.7ff7c0123170
mov rdx, qword [0x7ff7c01d3b40]
mov ecx, 0x48
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x7ff7c01d3cd0]
mov rbx, rax
mov edx, 4
mov dword [rax], 8
lea rax, [0x7ff7c0015f80]
mov qword [rbx + 8], rax
lea rax, [0x7ff7c0015f90]
lea r8d, [rdx + 0x7c]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 0x20
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, dword ds:[rbx + 0x18]
mov edx, 0xff
shl r8, 2
mov rcx, rax
mov qword [rbx + 0x20], rax
call fcn.7ff7c0123170
mov eax, dword ds:[rbx + 0x18]
mov edx, 4
mov rcx, qword [0x7ff7c01d3cd0]
mov dword [rbx + 0x28], eax
shl eax, 4
mov r8d, eax
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
cmp byte [0x7ff7c01d30ef], r14b
mov edx, 0x410
mov qword [rbx + 0x30], rax
lea rax, [rdi + 0x20]
mov dword [rbx + 0x38], r14d
mov dword [rbx + 0x3c], 0xffffffff
mov dword [rbx + 0x40], r14d
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
lea rax, [rdi + 0x40]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
lea rax, [rdi + 0x60]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
lea rax, [rdi + 0x80]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov dword [rdi + 8], r14d
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov qword [rdi], rbx
lea rbx, [rdi + 0xa8]
mov qword [rbx], r14
mov rcx, rbx
mov qword [rdi + 0xb8], r14
mov dword [rdi + 0xd0], r14d
mov qword [rdi + 0xa0], rsi
mov qword [rdi + 0xb0], r14
mov qword [rbp - 0x79], rsi
mov qword [rbp - 0x71], r14
jne 0x7ff7c0015b6a
xorps xmm0, xmm0
mov dword [rbp - 0x59], 0x30
lea r9, [rbp - 0x79]
mov qword [rbp - 0x51], r14
lea r8, [rbp - 0x59]
mov dword [rbp - 0x41], r14d
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x49], r14
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop
cmp eax, 0xc0000022
jne 0x7ff7c0015b75
movzx eax, byte [0x7ff7c01d30ef]
test al, al
je 0x7ff7c0015b80
mov edx, 0x410
mov rcx, rbx
lea r8, ds:[rbp - 0x79]
call fcn.7ff7c00e3530
test eax, eax
jns 0x7ff7c0015be4
movzx eax, byte [0x7ff7c01d30ef]
mov qword [rbp - 0x69], rsi
mov edx, 0x1010
mov qword [rbp - 0x61], r14
mov rcx, rbx
test al, al
jne 0x7ff7c0015bd5
xorps xmm0, xmm0
mov dword [rbp - 0x29], 0x30
lea r9, [rbp - 0x69]
mov qword [rbp - 0x21], r14
lea r8, [rbp - 0x29]
mov dword [rbp - 0x11], r14d
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp - 0x19], r14
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x7ff7c0015bde
cmp byte [0x7ff7c01d30ef], r14b
je 0x7ff7c0015bde
mov edx, 0x1010
mov rcx, rbx
lea r8, [rbp - 0x69]
call fcn.7ff7c00e3530
mov dword [rdi + 0xd0], eax
lea rdx, ds:[rbp + 0x6f]
mov rcx, rsi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x7ff7c0015c2d
mov rcx, qword [rbp + 0x6f]
call sym.ProcessHacker.exe_PhGetFileName
mov rcx, qword [rdi + 0xb0]
mov qword [rdi + 0xb0], rax
test rcx, rcx
je 0x7ff7c0015c2d
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c0015c2d
call fcn.7ff7c00c6290
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x7ff7c0015c8f
mov rcx, qword [rbx]
test rcx, rcx
je 0x7ff7c0015c8f
call fcn.7ff7c00f57f0
mov qword [rdi + 0xb8], rax
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x7ff7c0015c8f
mov rcx, qword [rbx]
lea r8, [rbp + 0x77]
mov r9d, 8
mov dword [rbp + 0x77], 7
mov qword [rsp + 0x20], r14
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x7ff7c0015c8f
movzx eax, byte [rbp + 0x7b]
and byte [rdi + 0xd4], 0xfd
and al, 1
add al, al
or byte [rdi + 0xd4], al
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
jb 0x7ff7c0015cdb
mov rcx, qword [rbx]
test rcx, rcx
je 0x7ff7c0015cdb
mov r9d, 0x40
mov qword [rbp + 7], 0x40
lea r8, [rbp + 7]
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x7ff7c0015cdb
mov eax, dword [rbp + 0x3f]
and byte [rdi + 0xd4], 0xfb
shr eax, 8
and al, 1
shl al, 2
or byte [rdi + 0xd4], al
lea rcx, [rdi + 0xc0]
call qword [sym.imp.kernel32.dll_InitializeSListHead_1]
xor r8d, r8d
mov rdx, rdi
lea ecx, [r8 + 0x10]
call fcn.7ff7bffd8c60
lea r11, [rsp + 0xf0]
mov rax, rdi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret