Function at 0x1400558b0
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 [0x14020d760], 1
jne 0x1400559b5
lock bts qword [0x14020d760], 0x1f
jae 0x140055909
test byte [0x14020d760], 1
jne 0x1400559b5
xor edx, edx
lea rcx, [0x14020d760]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x1400559b5
mov rdx, qword [0x140213b00]
mov ecx, 0x40
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, 1
mov ecx, ebx
mov word [rax], r14w
lock xadd dword [0x140213acc], ecx
movzx edx, cl
lea rdi, [0x1402178c0]
lea rcx, [0x140055d20]
mov byte [rax + 2], dl
mov qword [rax + 8], rcx
lea rcx, str.ModuleProvider
mov qword [rax + 0x10], rcx
lea ecx, [rbx + 0x3f]
mov qword [rdi + rdx*8], rax
mov rdx, qword [0x140213b00]
mov dword [rax + 4], r14d
mov qword [0x140213108], rax
call sym.ProcessHacker.exe_PhCreateObject
mov word ds:[rax], r14w
lock xadd dword [0x140213acc], ebx
movzx ebx, bl
lea rdx, [0x140055ee0]
mov qword [rax + 8], rdx
lea rcx, [0x14020d760]
lea rdx, str.ModuleItem
mov byte [rax + 2], bl
mov qword [rax + 0x10], rdx
mov qword [rdi + rbx*8], rax
mov dword [rax + 4], r14d
mov qword [0x140213100], rax
call sym.ProcessHacker.exe_PhfSetEvent
mov rcx, qword [0x140213038]
mov rdx, qword [0x140213108]
add rcx, 0xe0
mov qword [0x140213030], 0xe0
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
mov rdi, rax
call fcn.140163170
mov rdx, qword [0x140213b40]
mov ecx, 0x48
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140213cd0]
mov rbx, rax
mov edx, 4
mov dword [rax], 8
lea rax, [0x140055f80]
mov qword [rbx + 8], rax
lea rax, [0x140055f90]
lea r8d, [rdx + 0x7c]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 0x20
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword ds:[rbx + 0x18]
mov edx, 0xff
shl r8, 2
mov rcx, rax
mov qword [rbx + 0x20], rax
call fcn.140163170
mov eax, dword ds:[rbx + 0x18]
mov edx, 4
mov rcx, qword [0x140213cd0]
mov dword [rbx + 0x28], eax
shl eax, 4
mov r8d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp byte [0x1402130ef], 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 0x140055b6a
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 0x140055b75
movzx eax, byte [0x1402130ef]
test al, al
je 0x140055b80
mov edx, 0x410
mov rcx, rbx
lea r8, ds:[rbp - 0x79]
call fcn.140123530
test eax, eax
jns 0x140055be4
movzx eax, byte [0x1402130ef]
mov qword [rbp - 0x69], rsi
mov edx, 0x1010
mov qword [rbp - 0x61], r14
mov rcx, rbx
test al, al
jne 0x140055bd5
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 0x140055bde
cmp byte [0x1402130ef], r14b
je 0x140055bde
mov edx, 0x1010
mov rcx, rbx
lea r8, [rbp - 0x69]
call fcn.140123530
mov dword [rdi + 0xd0], eax
lea rdx, ds:[rbp + 0x6f]
mov rcx, rsi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x140055c2d
mov rcx, qword [rbp + 0x6f]
call sym.ProcessHacker.exe_PhGetFileName
mov rcx, qword [rdi + 0xb0]
mov qword [rdi + 0xb0], rax
test rcx, rcx
je 0x140055c2d
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140055c2d
call fcn.140106290
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x140055c8f
mov rcx, qword [rbx]
test rcx, rcx
je 0x140055c8f
call fcn.1401357f0
mov qword [rdi + 0xb8], rax
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x140055c8f
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 0x140055c8f
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 0x140055cdb
mov rcx, qword [rbx]
test rcx, rcx
je 0x140055cdb
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 0x140055cdb
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.ntdll.dll_RtlInitializeSListHead]
xor r8d, r8d
mov rdx, rdi
lea ecx, [r8 + 0x10]
call fcn.140018c60
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