Function at 0x7ff7c0060720
Capabilities:
Check processdebugport

Disassembly:
mov r11, rsp
push rbp
push rbx
push r15
lea rbp, [r11 - 0xa8]
sub rsp, 0x190
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov qword [r11 + 0x10], rsi
mov rbx, rcx
mov rsi, qword [rcx + 0x18]
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov qword [r11 - 0x20], r13
xor r13d, r13d
mov rax, qword [rsi + 0x58]
mov r12, qword [rsi + 0x20]
mov rdi, qword [rsi + 0x48]
mov qword [r11 - 0x28], r14
test rax, rax
je 0x7ff7c00607d7
cmp qword [rax], r13
je 0x7ff7c00607d7
test dword [rsi + 0xd0], 0x10000
jne 0x7ff7c00607d7
test rax, rax
je 0x7ff7c006078e
mov rcx, qword [rax + 8]
jmp 0x7ff7c0060791
mov rcx, r13
call fcn.7ff7c00e1290
test al, al
je 0x7ff7c00607d7
mov rax, qword ds:[rsi + 0x50]
test rax, rax
je 0x7ff7c00607ab
mov rcx, qword [rax + 8]
jmp 0x7ff7c00607ae
mov rcx, r13
lea r8, [rbx + 0x28]
lea rdx, [rbx + 0x30]
call sym.ProcessHacker.exe_PhExtractIcon
test al, al
jne 0x7ff7c00607c7
mov qword [rbx + 0x30], r13
mov qword [rbx + 0x28], r13
mov rdx, qword [rsi + 0x50]
lea rcx, [rbx + 0x38]
xor r8d, r8d
call fcn.7ff7c00beb20
mov r15, 0xffffffffffffffff
test rdi, rdi
je 0x7ff7c0060b90
test dword [rsi + 0xd0], 0x10000
jne 0x7ff7c0060936
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
mov r14d, r13d
mov byte [rsp + 0x50], r13b
mov qword [rsp + 0x58], r13
jb 0x7ff7c006081d
mov rcx, rdi
lea r14d, [r15 + 2]
mov qword [rsp + 0x58], rcx
jmp 0x7ff7c006089b
cmp byte [0x7ff7c01d30ef], r13b
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x68], r12
mov edx, 0x1010
mov qword [rsp + 0x70], r13
jne 0x7ff7c0060884
xorps xmm0, xmm0
mov dword [rbp - 0x50], 0x30
lea r9, [rsp + 0x68]
mov qword [rbp - 0x48], r13
lea r8, [rbp - 0x50]
mov dword [rbp - 0x38], r13d
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x40], r13
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x7ff7c006088e
cmp byte [0x7ff7c01d30ef], r13b
je 0x7ff7c0060926
mov edx, 0x1010
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x68]
call fcn.7ff7c00e3530
test eax, eax
js 0x7ff7c0060926
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.ProcessHacker.exe_PhGetProcessCommandLine
test eax, eax
js 0x7ff7c00608e1
mov r8, qword [rsp + 0x78]
mov edx, r13d
test dword [r8], 0xfffffffe
jbe 0x7ff7c00608dd
mov r9d, 0x20
mov rax, qword [r8 + 8]
mov ecx, edx
cmp word [rax + rcx*2], r13w
jne 0x7ff7c00608d2
mov word [rax + rcx*2], r9w
mov eax, dword [r8]
inc edx
shr eax, 1
cmp edx, eax
jb 0x7ff7c00608c0
mov qword [rbx + 0x20], r8
mov r8d, dword [rsi + 0xd0]
lea r9, [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
and r8d, 0x200
bts r8d, 8
mov qword [rsp + 0x20], r13
shr r8d, 7
mov rcx, r12
or r8d, r14d
call sym.ProcessHacker.exe_PhGetProcessIsDotNetEx
and dword [rbx + 0x70], 0xfffffffe
movzx eax, byte [rsp + 0x50]
and eax, 1
or dword [rbx + 0x70], eax
test r14d, r14d
jne 0x7ff7c0060936
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff7c0060936
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x7ff7c01d3db0]
mov r14d, 8
test rcx, rcx
je 0x7ff7c00609fc
mov dword ss:[rsp + 0x48], r13d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r13
mov edx, 4
mov qword [rbp - 0x58], rax
xor r9d, r9d
mov dword [rsp + 0x38], 0x18
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp - 0x20]
mov dword [rbp - 0x60], edx
mov dword [rsp + 0x28], 0x999920d3
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r13
mov qword [rbp - 0x68], rdi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x7ff7c00609ea
cmp eax, 0x123
je 0x7ff7c00609ea
mov rcx, qword [rsp + 0x60]
lea r9d, [r14 + 0x38]
or dword [rbx + 0x70], 4
lea r8, [rbp + 0x30]
lea edx, [r14 - 6]
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll_NtQueryInformationJobObject]
test eax, eax
js 0x7ff7c00609ea
and dword [rbx + 0x70], 0xfffffff7
mov eax, r13d
cmp dword [rbp + 0x40], 0x1000
cmovne eax, r14d
or dword [rbx + 0x70], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x7ff7c0060a22
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x7ff7c0060a22
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtIsProcessInJob]
test eax, eax
js 0x7ff7c0060a22
and dword [rbx + 0x70], 0xfffffffb
mov ecx, r13d
cmp eax, 0x124
mov edx, 4
cmove ecx, edx
or dword [rbx + 0x70], ecx
mov r9d, r14d
mov qword [rsp + 0x20], r13
lea r8, [rbp - 0x80]
mov edx, 0x31
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax]
test eax, eax
js 0x7ff7c0060a4c
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x58], rax
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x3e
jb 0x7ff7c0060aa9
nop word [rax + rax]
cmp qword [sym.imp.USER32.dll_IsImmersiveProcess], r13
je 0x7ff7c0060a92
test dword [rsi + 0xd0], 0x10000
jne 0x7ff7c0060a92
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsImmersiveProcess]
neg eax
sbb ecx, ecx
and dword [rbx + 0x70], 0xffffffdf
and ecx, 0x20
or dword [rbx + 0x70], ecx
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x3e
jb 0x7ff7c0060aa9
test byte [rbx + 0x70], 0x20
je 0x7ff7c0060aa9
mov rcx, rdi
call fcn.7ff7c00f57f0
mov qword [rbx + 0x60], rax
test byte [rsi + 0xd0], 0x80
je 0x7ff7c0060af9
mov qword [rsp + 0x48], r13
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rsp + 0x38], r13
mov r8d, 0xffffffff
mov qword [rsp + 0x30], r13
mov rdx, rdi
mov qword [rsp + 0x28], rax
mov rcx, r15
mov qword [rsp + 0x20], r13
call sym.ProcessHacker.exe_PhGetHandleInformationEx
test eax, eax
js 0x7ff7c0060af5
test dword [rbp - 0xc], 0x400
jne 0x7ff7c0060af9
or dword [rbx + 0x70], 0x40
test dword [rsi + 0xd0], 0x10000
jne 0x7ff7c0060b90
test byte [rbx + 0x70], 0x40
jne 0x7ff7c0060b90
cmp byte [0x7ff7c01d30ef], r13b
mov r9d, r14d
mov qword [rsp + 0x20], r13
mov rcx, rdi
je 0x7ff7c0060b67
lea r8, [rbp - 0x78]
mov edx, 0x1e
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov r14d, eax
test eax, eax
js 0x7ff7c0060b4c
mov rcx, qword [rbp - 0x78]
mov dil, 1
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x7ff7c0060b5f
cmp r14d, 0xc0000022
jne 0x7ff7c0060b5a
mov dil, 1
jmp 0x7ff7c0060b82
movzx edi, byte [rsp + 0x50]
nop
test r14d, r14d
js 0x7ff7c0060b90
jmp 0x7ff7c0060b82
lea r8, [rbp - 0x70]
mov edx, 7
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x7ff7c0060b90
cmp qword [rbp - 0x70], r13
setne dil
and dword [rbx + 0x70], 0xffffffef
movzx eax, dil
shl eax, 4
or dword [rbx + 0x70], eax
mov rcx, qword ds:[rsi + 0x98]
mov r14, qword [rsp + 0x180]
mov r13, qword [rsp + 0x188]
mov r12, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b8]
test rcx, rcx
je 0x7ff7c0060bec
call fcn.7ff7c0060480
mov rcx, qword [rbx + 0x68]
mov qword [rbx + 0x68], rax
test rcx, rcx
je 0x7ff7c0060bec
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], r15d
cmp r15d, 1
jne 0x7ff7c0060bec
call fcn.7ff7c00c6290
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.7ff7c0121390
add rsp, 0x190
pop r15
pop rbx
pop rbp
ret