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

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
push r15
lea rbp, [r11 - 0xa8]
sub rsp, 0x188
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x70], rax
cmp qword [rcx + 0x20], 0
mov r13, rdx
mov rax, qword [rdx + 0x58]
mov r14, rcx
mov qword [rcx + 0x28], rax
mov eax, dword [rdx + 0x64]
mov qword [r11 + 0x18], rbx
mov dword [rcx + 0x38], eax
mov rax, qword [rdx + 0x20]
mov qword [r11 + 0x20], rsi
mov qword [rcx + 0x48], rax
mov qword [r11 - 0x28], rdi
je 0x1400b4e96
movzx eax, word ds:[rdx + 0x38]
xor r15d, r15d
test ax, ax
jne 0x1400b4e52
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400b4eee
mov rsi, qword [rdx + 0x40]
lea rcx, [rax + 0x12]
mov rdx, qword [0x1402ca978]
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 [rdi + rax], r15w
test rsi, rsi
je 0x1400b4eee
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020a640
jmp 0x1400b4eee
mov rdx, qword [0x1402ca978]
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 [0x14023dca0]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [0x14023dcb0]
mov dword [rcx + 0x20], eax
movzx eax, word [0x14023dcb4]
mov word [rcx + 0x24], ax
mov ecx, 0x30
mov rax, r14
mov qword [rax + rcx], rbx
mov rcx, qword [r14 + 0x20]
test rcx, rcx
jle 0x1400b4f2d
lea rdx, [r14 + 0x100]
mov r8d, 0xa
call fcn.1401eac80
mov ecx, dword [r14 + 0x20]
lea rdx, [r14 + 0x11a]
mov r8d, 0x10
call fcn.1401eac80
mov r8, qword [r14 + 0x20]
test r8, r8
jle 0x1400b4f6d
mov edx, 0x400
lea rcx, [r14 + 0x50]
call sym.SystemInformer.exe_PhOpenProcess
test eax, eax
js 0x1400b4f54
or dword [r14 + 0xd8], 0x80
cmp qword [r14 + 0x50], 0
jne 0x1400b4f6d
mov r8, qword [r14 + 0x20]
lea rcx, [r14 + 0x50]
mov edx, 0x1000
call sym.SystemInformer.exe_PhOpenProcess
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b5105
mov r9d, 0x40
mov qword [rbp + 0x30], 0x40
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b4ff7
mov edx, dword [rbp + 0x68]
mov ecx, edx
mov eax, dword [r14 + 0xd8]
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 + 0xd8], edx
cmp dword [0x1402cddb8], 2
mov r9d, 8
mov rbx, qword [r14 + 0x50]
mov rcx, rbx
jl 0x1400b502d
lea r8, [r14 + 0x40]
mov edx, 0xf
call fcn.140177c00
nop dword [rax + rax]
test eax, eax
js 0x1400b5105
jmp 0x1400b50e0
lea r8, ds:[rbp + 0x18]
mov qword [rsp + 0x20], r15
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov r8d, eax
cmp eax, 0xc0000003
jne 0x1400b50c5
xorps xmm0, xmm0
mov qword [rsp + 0x20], r15
mov r9d, 0x60
lea r8, [rsp + 0x40]
mov edx, 0x40
mov rcx, rbx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov r8d, eax
cmp eax, 0x80000005
jne 0x1400b509c
mov r8d, r15d
jmp 0x1400b50a4
nop dword [rax]
test eax, eax
js 0x1400b5105
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x40]
add rcx, rax
lea rax, [rsp + 0x70]
cmp rax, rcx
ja 0x1400b5105
mov rcx, qword [rsp + 0x68]
mov qword [rbp + 0x18], rcx
jmp 0x1400b50c9
mov rcx, qword [rbp + 0x18]
test r8d, r8d
js 0x1400b5105
mov eax, dword [0x7ffe02c4]
shl rax, 0x30
or rax, rcx
mov qword [r14 + 0x40], rax
lfence
mov rcx, qword [r14 + 0x40]
lea rdx, [r14 + 0x16a]
mov r8d, 0x10
mov dword [r14 + 0x166], 0x780030
call fcn.1401eac5c
mov rcx, qword [r14 + 0x20]
cmp rcx, 4
je 0x1400b5197
test rcx, rcx
jle 0x1400b51b5
lea rdx, [rbp + 8]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x1400b5131
mov rax, qword [rbp + 8]
mov qword [r14 + 0x60], rax
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b5151
lea rdx, ds:[rbp + 8]
call sym.SystemInformer.exe_PhGetProcessImageFileNameWin32
test eax, eax
js 0x1400b5151
mov rax, qword [rbp + 8]
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x1400b51b5
mov rax, qword ds:[r14 + 0x58]
test rax, rax
je 0x1400b516b
cmp qword [rax], 0
jne 0x1400b51b5
call sym.SystemInformer.exe_PhGetFileName
mov rcx, qword [r14 + 0x58]
mov qword [r14 + 0x58], rax
test rcx, rcx
je 0x1400b51b5
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b51b5
call fcn.140141ca0
jmp 0x1400b51b5
call sym.SystemInformer.exe_PhGetKernelFileName2
nop dword [rax]
test rax, rax
je 0x1400b51b5
mov rcx, rax
mov qword [r14 + 0x60], rax
call sym.SystemInformer.exe_PhGetFileName
mov qword [r14 + 0x58], rax
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b53f9
cmp dword [0x1402cddb8], 3
lea r8, [rbp + 8]
mov edx, 8
jl 0x1400b51e7
nop dword [rax + rax]
call fcn.140177020
jmp 0x1400b51f8
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x1400b53f9
nop dword [rax + rax]
test eax, eax
js 0x1400b53f9
mov rcx, qword [rbp + 8]
lea rax, [rbp]
mov r9d, 0x58
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x60]
mov edx, 1
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b527c
mov rsi, qword [rbp - 0x60]
mov edx, 4
mov rcx, qword [0x1402caad0]
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.14020a640
mov rcx, qword [rbp - 0x60]
mov qword [r14 + 0xa0], rbx
call fcn.1400b4300
mov qword [r14 + 0x3c8], rax
mov rcx, qword [rbp + 8]
lea rax, [rbp]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x20]
mov edx, 0x12
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
nop
test eax, eax
js 0x1400b52ae
mov eax, dword [rbp + 0x20]
mov dword [r14 + 0xa8], eax
mov rcx, qword [rbp + 8]
lea rax, [rbp + 0x28]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp]
mov edx, 0x14
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b52f1
mov eax, dword [rbp]
neg eax
mov eax, dword [r14 + 0xd8]
sbb ecx, ecx
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
mov dword [r14 + 0xd8], ecx
mov rcx, qword ds:[rbp + 8]
lea r8, [rbp + 0x28]
lea rdx, [rbp]
call sym.SystemInformer.exe_PhGetTokenIntegrityLevelRID
test eax, eax
js 0x1400b537c
mov eax, dword [rbp]
cmp eax, 0x2100
jg 0x1400b5342
je 0x1400b532e
test eax, eax
je 0x1400b533c
nop dword [rax]
cmp eax, 0x1000
je 0x1400b5335
cmp eax, 0x2000
jne 0x1400b537c
mov eax, 2
jmp 0x1400b536a
mov eax, 1
jmp 0x1400b536a
mov eax, r15d
jmp 0x1400b536a
cmp eax, 0x3000
je 0x1400b5365
cmp eax, 0x4000
je 0x1400b535e
cmp eax, 0x5000
jne 0x1400b537c
mov eax, 5
jmp 0x1400b536a
mov eax, 4
jmp 0x1400b536a
mov eax, 3
mov dword [r14 + 0xac], eax
mov rax, qword [rbp + 0x28]
mov qword [r14 + 0xb0], rax
mov rcx, qword [rbp + 8]
lea rax, [rbp + 0x28]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp]
mov edx, 0x1a
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
nop
test eax, eax
js 0x1400b53c9
cmp dword [rbp], 0
setne al
neg al
mov eax, dword [r14 + 0xd8]
sbb ecx, ecx
btr eax, 0x11
and ecx, 0x20000
or ecx, eax
mov dword [r14 + 0xd8], ecx
cmp dword [0x1402bff40], 0x3e
jb 0x1400b53ef
test dword [r14 + 0xd8], 0x10000
je 0x1400b53ef
mov rcx, qword [rbp + 8]
call fcn.140160640
mov qword [r14 + 0x3c0], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [r14 + 0x20]
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1c0]
test rax, rax
je 0x1400b542a
nop word [rax + rax]
cmp rax, 4
jne 0x1400b54ad
cmp qword [r14 + 0xa0], 0
jne 0x1400b5468
mov rcx, qword [0x1402caad0]
mov edx, 4
mov r8d, 0xc
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
movsd xmm0, qword [0x140245150]
movsd qword [rax], xmm0
mov ecx, dword [0x140245158]
mov dword [rax + 8], ecx
mov qword [r14 + 0xa0], rax
cmp qword [r14 + 0x3c8], 0
jne 0x1400b54ad
mov rcx, qword [0x1402cbfe8]
test rcx, rcx
je 0x1400b54a3
lea rax, [0x140245150]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call sym.SystemInformer.exe_PhFindEntryHashtable
test rax, rax
je 0x1400b54a3
mov rax, qword [rax + 8]
lock inc dword [rax - 8]
jmp 0x1400b54a6
mov rax, r15
mov qword [r14 + 0x3c8], rax
mov rdx, qword [r14 + 0x58]
mov rcx, qword [r14 + 0x20]
call sym.SystemInformer.exe_PhGetProcessKnownTypeEx
mov rcx, qword [r14 + 0x50]
mov dword [r14 + 0x418], eax
test rcx, rcx
je 0x1400b5522
cmp dword [0x1402bff40], 0x3f
jb 0x1400b54fe
mov r9d, 1
mov qword [rsp + 0x20], r15
lea r8, [rbp + 0x10]
mov edx, 0x3d
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b552a
movzx eax, byte [rbp + 0x10]
mov byte [r14 + 0x41c], al
jmp 0x1400b552a
test dword [r14 + 0xd8], 0x2000
je 0x1400b552a
movzx eax, byte ds:[r14 + 0x41c]
and al, 0xfa
or al, 2
mov byte [r14 + 0x41c], al
jmp 0x1400b552a
mov byte [r14 + 0x41c], 0xff
cmp dword [0x1402bff40], 0x3f
jb 0x1400b560e
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b560e
test dword [0x1402ca2cc], 0x80000
je 0x1400b560e
mov r9d, 8
mov qword [rbp + 8], 7
lea r8, [rbp + 8]
mov qword [rsp + 0x20], r15
mov edx, 0x34
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b559f
movzx eax, byte [rbp + 0xc]
and al, 1
movzx ecx, al
mov eax, dword [r14 + 0xd8]
btr eax, 0x12
shl ecx, 0x12
or ecx, eax
mov dword [r14 + 0xd8], ecx
cmp dword [0x1402bff40], 0x72
jb 0x1400b560e
mov rcx, qword [r14 + 0x50]
lea r8, [rbp + 8]
mov r9d, 8
mov qword [rbp + 8], 7
mov edx, 0x34
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b560e
mov ecx, dword [r14 + 0xd8]
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 + 0xd8], eax
cmp dword [0x1402bff40], 0x6d
jb 0x1400b56aa
test dword [0x1402ca2cc], 0x100000
je 0x1400b56aa
cmp qword [r14 + 0x20], 4
jne 0x1400b565c
xor r9d, r9d
lea rdx, [rbp]
mov r8d, 4
mov ecx, 0xdd
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400b56aa
mov ecx, dword [rbp]
and ecx, 0x100
shl ecx, 0xb
jmp 0x1400b5696
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b56aa
mov r9d, 8
mov dword [rbp + 0x18], 0xf
lea r8, [rbp + 0x18]
mov qword [rsp + 0x20], r15
mov edx, 0x34
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b56aa
movzx eax, byte [rbp + 0x1c]
and al, 1
movzx ecx, al
shl ecx, 0x13
mov eax, dword [r14 + 0xd8]
btr eax, 0x13
or ecx, eax
mov dword [r14 + 0xd8], ecx
cmp dword [0x1402bff40], 0x71
jb 0x1400b5706
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b5706
test dword [r14 + 0xd8], 0x8000
je 0x1400b5706
cmp dword [0x1402cddb8], 3
jl 0x1400b5706
mov r9d, 4
lea r8, [rbp]
mov edx, 0xd
call fcn.140177c00
test eax, eax
js 0x1400b5706
mov ecx, dword [rbp]
lea rdx, [r14 + 0x14c]
mov r8d, 0xa
mov dword [r14 + 0x440], ecx
call fcn.1401eac80
mov rax, qword [r13 + 0x30]
add rax, qword [r13 + 0x28]
jne 0x1400b572a
cmp dword [r13 + 4], eax
jne 0x1400b572a
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b572a
nop
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [r14 + 0x50], r15
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x188
pop r15
pop r14
pop r13
pop rbp
ret