Function at 0x1400a0720
Capabilities:
Check processdebugport

Disassembly:
mov r11, rsp
push rbp
push rbx
push r15
lea rbp, [r11 - 0xa8]
sub rsp, 0x190
mov rax, qword [0x14020a008]
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 0x1400a07d7
cmp qword [rax], r13
je 0x1400a07d7
test dword [rsi + 0xd0], 0x10000
jne 0x1400a07d7
test rax, rax
je 0x1400a078e
mov rcx, qword [rax + 8]
jmp 0x1400a0791
mov rcx, r13
call fcn.140121290
test al, al
je 0x1400a07d7
mov rax, qword ds:[rsi + 0x50]
test rax, rax
je 0x1400a07ab
mov rcx, qword [rax + 8]
jmp 0x1400a07ae
mov rcx, r13
lea r8, [rbx + 0x28]
lea rdx, [rbx + 0x30]
call sym.ProcessHacker.exe_PhExtractIcon
test al, al
jne 0x1400a07c7
mov qword [rbx + 0x30], r13
mov qword [rbx + 0x28], r13
mov rdx, qword [rsi + 0x50]
lea rcx, [rbx + 0x38]
xor r8d, r8d
call fcn.1400feb20
mov r15, 0xffffffffffffffff
test rdi, rdi
je 0x1400a0b90
test dword [rsi + 0xd0], 0x10000
jne 0x1400a0936
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
mov r14d, r13d
mov byte [rsp + 0x50], r13b
mov qword [rsp + 0x58], r13
jb 0x1400a081d
mov rcx, rdi
lea r14d, [r15 + 2]
mov qword [rsp + 0x58], rcx
jmp 0x1400a089b
cmp byte [0x1402130ef], r13b
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x68], r12
mov edx, 0x1010
mov qword [rsp + 0x70], r13
jne 0x1400a0884
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 0x1400a088e
cmp byte [0x1402130ef], r13b
je 0x1400a0926
mov edx, 0x1010
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x68]
call fcn.140123530
test eax, eax
js 0x1400a0926
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.ProcessHacker.exe_PhGetProcessCommandLine
test eax, eax
js 0x1400a08e1
mov r8, qword [rsp + 0x78]
mov edx, r13d
test dword [r8], 0xfffffffe
jbe 0x1400a08dd
mov r9d, 0x20
mov rax, qword [r8 + 8]
mov ecx, edx
cmp word [rax + rcx*2], r13w
jne 0x1400a08d2
mov word [rax + rcx*2], r9w
mov eax, dword [r8]
inc edx
shr eax, 1
cmp edx, eax
jb 0x1400a08c0
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 0x1400a0936
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400a0936
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x140213db0]
mov r14d, 8
test rcx, rcx
je 0x1400a09fc
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 0x1400a09ea
cmp eax, 0x123
je 0x1400a09ea
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 0x1400a09ea
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 0x1400a0a22
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400a0a22
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtIsProcessInJob]
test eax, eax
js 0x1400a0a22
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 0x1400a0a4c
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x58], rax
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x3e
jb 0x1400a0aa9
nop word [rax + rax]
cmp qword [sym.imp.USER32.dll_IsImmersiveProcess], r13
je 0x1400a0a92
test dword [rsi + 0xd0], 0x10000
jne 0x1400a0a92
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 0x1400a0aa9
test byte [rbx + 0x70], 0x20
je 0x1400a0aa9
mov rcx, rdi
call fcn.1401357f0
mov qword [rbx + 0x60], rax
test byte [rsi + 0xd0], 0x80
je 0x1400a0af9
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 0x1400a0af5
test dword [rbp - 0xc], 0x400
jne 0x1400a0af9
or dword [rbx + 0x70], 0x40
test dword [rsi + 0xd0], 0x10000
jne 0x1400a0b90
test byte [rbx + 0x70], 0x40
jne 0x1400a0b90
cmp byte [0x1402130ef], r13b
mov r9d, r14d
mov qword [rsp + 0x20], r13
mov rcx, rdi
je 0x1400a0b67
lea r8, [rbp - 0x78]
mov edx, 0x1e
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov r14d, eax
test eax, eax
js 0x1400a0b4c
mov rcx, qword [rbp - 0x78]
mov dil, 1
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400a0b5f
cmp r14d, 0xc0000022
jne 0x1400a0b5a
mov dil, 1
jmp 0x1400a0b82
movzx edi, byte [rsp + 0x50]
nop
test r14d, r14d
js 0x1400a0b90
jmp 0x1400a0b82
lea r8, [rbp - 0x70]
mov edx, 7
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400a0b90
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 0x1400a0bec
call fcn.1400a0480
mov rcx, qword [rbx + 0x68]
mov qword [rbx + 0x68], rax
test rcx, rcx
je 0x1400a0bec
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], r15d
cmp r15d, 1
jne 0x1400a0bec
call fcn.140106290
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140161390
add rsp, 0x190
pop r15
pop rbx
pop rbp
ret