Function at 0x1400b2700
Capabilities:
Check processdebugport
Get system information on windows

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x50], rax
cmp qword [rcx + 0x20], 0
mov r14, rcx
mov rax, qword [rdx + 0x58]
mov qword [r11 + 0x18], rbx
mov qword [rcx + 0x28], rax
mov eax, dword [rdx + 0x64]
mov qword [r11 + 0x20], rsi
mov dword [rcx + 0x38], eax
mov rax, qword [rdx + 0x20]
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r13
mov r13, rdx
mov qword [rcx + 0x40], rax
je 0x1400b27b6
movzx eax, word ds:[rdx + 0x38]
xor r15d, r15d
test ax, ax
jne 0x1400b2772
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400b280e
mov rsi, qword [rdx + 0x40]
lea rcx, [rax + 0x12]
mov rdx, qword [0x1402bfcf8]
mov rdi, rax
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], r15w
test rsi, rsi
je 0x1400b280e
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1401e3aa0
jmp 0x1400b280e
mov rdx, qword [0x1402bfcf8]
mov ecx, 0x38
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], 0x26
add rax, 0x10
mov qword [rbx + 8], rax
xor r15d, r15d
mov word [rax + 0x26], r15w
mov rcx, qword [rbx + 8]
movups xmm0, xmmword [str.System_Idle_Process]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1402369d0]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [0x1402369e0]
mov dword [rcx + 0x20], eax
movzx eax, word [0x1402369e4]
mov word [rcx + 0x24], ax
mov rcx, r14
mov eax, 0x30
mov qword [rcx + rax], rbx
mov rcx, qword [r14 + 0x20]
test rcx, rcx
jle 0x1400b2835
lea rdx, [r14 + 0xf8]
lea r8d, [rax - 0x26]
call fcn.1401e4a70
mov r8, qword [r14 + 0x20]
test r8, r8
jle 0x1400b2874
mov edx, 0x400
lea rcx, [r14 + 0x48]
call sym.SystemInformer.exe_PhOpenProcess
test eax, eax
js 0x1400b285b
or dword [r14 + 0xd0], 0x80
cmp qword [r14 + 0x48], 0
jne 0x1400b2874
mov r8, qword [r14 + 0x20]
lea rcx, [r14 + 0x48]
mov edx, 0x1000
call sym.SystemInformer.exe_PhOpenProcess
mov rcx, qword ds:[r14 + 0x48]
test rcx, rcx
je 0x1400b2906
mov r9d, 0x40
mov qword [rbp + 0x10], 0x40
lea r8, [rbp + 0x10]
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b2906
mov edx, dword [rbp + 0x48]
mov ecx, edx
mov eax, dword [r14 + 0xd0]
and ecx, 1
btr eax, 0xd
shl ecx, 0xd
or ecx, eax
mov eax, edx
and eax, 0x80
btr ecx, 0xe
shl eax, 7
or eax, ecx
mov ecx, edx
btr eax, 0xf
and ecx, 0x100
shl ecx, 7
or ecx, eax
mov eax, edx
and eax, 2
btr ecx, 9
shl eax, 8
and edx, 0x40
or eax, ecx
shl edx, 0xa
btr eax, 0x10
or edx, eax
mov dword [r14 + 0xd0], edx
mov rcx, qword [r14 + 0x20]
cmp rcx, 4
je 0x1400b2997
test rcx, rcx
jle 0x1400b29b5
lea rdx, [rbp - 0x38]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x1400b2932
mov rax, qword [rbp - 0x38]
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x48]
test rcx, rcx
je 0x1400b2951
lea rdx, ds:[rbp - 0x38]
call sym.SystemInformer.exe_PhGetProcessImageFileNameWin32
test eax, eax
js 0x1400b2951
mov rax, qword [rbp - 0x38]
mov qword [r14 + 0x50], rax
mov rcx, qword [r14 + 0x58]
test rcx, rcx
je 0x1400b29b5
mov rax, qword ds:[r14 + 0x50]
test rax, rax
je 0x1400b296b
cmp qword [rax], 0
jne 0x1400b29b5
call sym.SystemInformer.exe_PhGetFileName
mov rcx, qword [r14 + 0x50]
mov qword [r14 + 0x50], rax
test rcx, rcx
je 0x1400b29b5
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b29b5
call fcn.14013d2a0
jmp 0x1400b29b5
call sym.SystemInformer.exe_PhGetKernelFileName2
nop dword [rax]
test rax, rax
je 0x1400b29b5
mov rcx, rax
mov qword [r14 + 0x58], rax
call sym.SystemInformer.exe_PhGetFileName
mov qword [r14 + 0x50], rax
mov rcx, qword ds:[r14 + 0x48]
test rcx, rcx
je 0x1400b2c06
cmp dword [0x1402c2f94], 3
lea r8, [rsp + 0x48]
mov edx, 8
jl 0x1400b29e7
nop dword [rax]
call fcn.14016dde0
jmp 0x1400b29f8
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x1400b2c06
nop dword [rax + rax]
test eax, eax
js 0x1400b2c06
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov r9d, 0x58
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
lea edx, [r9 - 0x57]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b2a7f
mov rsi, qword [rsp + 0x60]
mov edx, 4
mov rcx, qword [0x1402bfe50]
movzx eax, byte [rsi + 1]
lea rdi, [rax*4 + 8]
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.1401e3aa0
mov rcx, qword [rsp + 0x60]
mov qword [r14 + 0x98], rbx
call fcn.1400b1c20
mov qword [r14 + 0x360], rax
mov rcx, qword ds:[rsp + 0x48]
lea rax, [rbp - 8]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x28]
lea edx, [r9 + 0xe]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b2ab4
mov eax, dword [rbp - 0x28]
mov dword [r14 + 0xa0], eax
mov rcx, qword [rsp + 0x48]
lea rax, [rbp - 4]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x24]
lea edx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b2af7
mov eax, dword [rbp - 0x24]
neg eax
mov eax, dword [r14 + 0xd0]
sbb ecx, ecx
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
mov dword [r14 + 0xd0], ecx
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call sym.SystemInformer.exe_PhGetTokenIntegrityLevelRID
test eax, eax
js 0x1400b2b82
mov eax, dword [rsp + 0x30]
cmp eax, 0x2100
jg 0x1400b2b47
nop
je 0x1400b2b34
test eax, eax
je 0x1400b2b42
cmp eax, 0x1000
je 0x1400b2b3b
cmp eax, 0x2000
jne 0x1400b2b82
mov eax, 2
jmp 0x1400b2b6f
mov eax, 1
jmp 0x1400b2b6f
mov eax, r15d
jmp 0x1400b2b6f
cmp eax, 0x3000
je 0x1400b2b6a
cmp eax, 0x4000
je 0x1400b2b63
cmp eax, 0x5000
jne 0x1400b2b82
mov eax, 5
jmp 0x1400b2b6f
mov eax, 4
jmp 0x1400b2b6f
mov eax, 3
mov dword [r14 + 0xa4], eax
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0xa8], rax
mov rcx, qword ds:[rsp + 0x48]
lea rax, [rbp]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x20]
lea edx, [r9 + 0x16]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b2bcf
cmp dword [rbp - 0x20], 0
setne al
neg al
mov eax, dword [r14 + 0xd0]
sbb ecx, ecx
btr eax, 0x11
and ecx, 0x20000
or ecx, eax
mov dword [r14 + 0xd0], ecx
cmp dword [0x1402b5e88], 0x3e
jb 0x1400b2bf6
test dword [r14 + 0xd0], 0x10000
je 0x1400b2bf6
mov rcx, qword [rsp + 0x48]
call fcn.140159180
mov qword [r14 + 0x358], rax
mov rcx, qword ds:[rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [r14 + 0x20]
mov rdi, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x1a8]
mov rbx, qword [rsp + 0x1a0]
test rax, rax
je 0x1400b2c31
cmp rax, 4
jne 0x1400b2cb9
cmp qword [r14 + 0x98], 0
jne 0x1400b2c6d
mov rcx, qword [0x1402bfe50]
mov edx, 4
lea r8d, [rdx + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
movsd xmm0, qword [0x14023dd20]
movsd qword [rax], xmm0
mov ecx, dword [0x14023dd28]
mov dword [rax + 8], ecx
mov qword [r14 + 0x98], rax
cmp qword [r14 + 0x360], 0
jne 0x1400b2cb9
mov rcx, qword [0x1402c1318]
nop
test rcx, rcx
je 0x1400b2caf
lea rax, [0x14023dd20]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call sym.SystemInformer.exe_PhFindEntryHashtable
nop dword [rax + rax]
test rax, rax
je 0x1400b2caf
mov rax, qword [rax + 8]
lock inc dword [rax - 8]
jmp 0x1400b2cb2
mov rax, r15
mov qword [r14 + 0x360], rax
mov rdx, qword [r14 + 0x50]
mov rcx, qword [r14 + 0x20]
call sym.SystemInformer.exe_PhGetProcessKnownTypeEx
mov rcx, qword [r14 + 0x48]
mov dword [r14 + 0x3a0], eax
test rcx, rcx
je 0x1400b2d2b
cmp dword [0x1402b5e88], 0x3f
jb 0x1400b2d09
mov r9d, 1
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x40]
lea edx, [r9 + 0x3c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b2d33
movzx eax, byte [rbp - 0x40]
mov byte [r14 + 0x3a4], al
jmp 0x1400b2d33
test dword [r14 + 0xd0], 0x2000
je 0x1400b2d33
movzx eax, byte [r14 + 0x3a4]
and al, 0xfa
or al, 2
mov byte [r14 + 0x3a4], al
jmp 0x1400b2d33
mov byte [r14 + 0x3a4], 0xff
cmp dword [0x1402b5e88], 0x3f
nop word [rax + rax]
jb 0x1400b2e17
mov rcx, qword [r14 + 0x48]
test rcx, rcx
je 0x1400b2e17
test dword [0x1402bf64c], 0x80000
nop dword [rax]
je 0x1400b2e17
mov r9d, 8
mov dword [rbp - 0x18], 7
lea r8, [rbp - 0x18]
mov qword [rsp + 0x20], r15
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b2daa
movzx eax, byte [rbp - 0x14]
and al, 1
movzx ecx, al
mov eax, dword [r14 + 0xd0]
btr eax, 0x12
shl ecx, 0x12
or ecx, eax
mov dword [r14 + 0xd0], ecx
cmp dword [0x1402b5e88], 0x72
jb 0x1400b2e17
mov rcx, qword [r14 + 0x48]
lea r8, [rbp - 0x10]
mov r9d, 8
mov dword [rbp - 0x10], 7
mov qword [rsp + 0x20], r15
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b2e17
mov ecx, dword [r14 + 0xd0]
mov r8d, dword [rbp - 0xc]
mov eax, r8d
shr eax, 3
movzx edx, al
shl edx, 0x14
xor edx, ecx
shr r8d, 4
and edx, 0x100000
movzx eax, r8b
shl eax, 0x15
xor edx, ecx
xor eax, edx
and eax, 0x200000
xor eax, edx
mov dword [r14 + 0xd0], eax
cmp dword [0x1402b5e88], 0x6d
nop
jb 0x1400b2eb2
test dword [0x1402bf64c], 0x100000
je 0x1400b2eb2
cmp qword [r14 + 0x20], 4
jne 0x1400b2e65
xor r9d, r9d
lea rdx, [rbp - 0x30]
mov ecx, 0xdd
lea r8d, [r9 + 4]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400b2eb2
mov ecx, dword [rbp - 0x30]
and ecx, 0x100
shl ecx, 0xb
jmp 0x1400b2e9e
mov rcx, qword [r14 + 0x48]
test rcx, rcx
je 0x1400b2eb2
mov r9d, 8
mov dword [rbp - 0x30], 0xf
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r15
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b2eb2
movzx eax, byte [rbp - 0x2c]
and al, 1
movzx ecx, al
shl ecx, 0x13
mov eax, dword [r14 + 0xd0]
btr eax, 0x13
or ecx, eax
mov dword [r14 + 0xd0], ecx
cmp dword [0x1402b5e88], 0x71
jb 0x1400b2f09
mov rcx, qword ds:[r14 + 0x48]
test rcx, rcx
je 0x1400b2f09
test dword [r14 + 0xd0], 0x8000
je 0x1400b2f09
cmp dword [0x1402c2f94], 3
jl 0x1400b2f09
lea r8, [rbp - 0x38]
mov edx, 0xd
call fcn.14016e9a0
test eax, eax
js 0x1400b2f09
mov ecx, dword [rbp - 0x38]
lea rdx, [r14 + 0x112]
mov r8d, 0xa
mov dword [r14 + 0x3c8], ecx
call fcn.1401e4a70
cmp dword [r13 + 4], 0
mov r13, qword [rsp + 0x160]
jne 0x1400b2f2f
mov rcx, qword ds:[r14 + 0x48]
test rcx, rcx
je 0x1400b2f2f
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [r14 + 0x48], r15
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x170
pop r15
pop r14
pop rbp
ret