Function at 0x1400b4e40
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 0x1400b4ef6
movzx eax, word ds:[rdx + 0x38]
xor r15d, r15d
test ax, ax
jne 0x1400b4eb2
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400b4f4e
mov rsi, qword [rdx + 0x40]
lea rcx, [rax + 0x12]
mov rdx, qword [0x1402ca998]
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 0x1400b4f4e
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020af00
jmp 0x1400b4f4e
mov rdx, qword [0x1402ca998]
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 0x1400b4f8d
lea rdx, [r14 + 0x100]
mov r8d, 0xa
call fcn.1401eb540
mov ecx, dword [r14 + 0x20]
lea rdx, [r14 + 0x11a]
mov r8d, 0x10
call fcn.1401eb540
mov r8, qword [r14 + 0x20]
test r8, r8
jle 0x1400b4fcd
mov edx, 0x400
lea rcx, [r14 + 0x50]
call sym.SystemInformer.exe_PhOpenProcess
test eax, eax
js 0x1400b4fb4
or dword [r14 + 0xd8], 0x80
cmp qword [r14 + 0x50], 0
jne 0x1400b4fcd
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 0x1400b5165
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 0x1400b5057
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 [0x1402cddd8], 2
mov r9d, 8
mov rbx, qword [r14 + 0x50]
mov rcx, rbx
jl 0x1400b508d
lea r8, [r14 + 0x40]
mov edx, 0xf
call fcn.140178480
nop dword [rax + rax]
test eax, eax
js 0x1400b5165
jmp 0x1400b5140
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 0x1400b5125
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 0x1400b50fc
mov r8d, r15d
jmp 0x1400b5104
nop dword [rax]
test eax, eax
js 0x1400b5165
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x40]
add rcx, rax
lea rax, [rsp + 0x70]
cmp rax, rcx
ja 0x1400b5165
mov rcx, qword [rsp + 0x68]
mov qword [rbp + 0x18], rcx
jmp 0x1400b5129
mov rcx, qword [rbp + 0x18]
test r8d, r8d
js 0x1400b5165
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.1401eb51c
mov rcx, qword [r14 + 0x20]
cmp rcx, 4
je 0x1400b51f7
test rcx, rcx
jle 0x1400b5215
lea rdx, [rbp + 8]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x1400b5191
mov rax, qword [rbp + 8]
mov qword [r14 + 0x60], rax
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b51b1
lea rdx, ds:[rbp + 8]
call sym.SystemInformer.exe_PhGetProcessImageFileNameWin32
test eax, eax
js 0x1400b51b1
mov rax, qword [rbp + 8]
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x1400b5215
mov rax, qword ds:[r14 + 0x58]
test rax, rax
je 0x1400b51cb
cmp qword [rax], 0
jne 0x1400b5215
call sym.SystemInformer.exe_PhGetFileName
mov rcx, qword [r14 + 0x58]
mov qword [r14 + 0x58], rax
test rcx, rcx
je 0x1400b5215
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b5215
call fcn.140141ea0
jmp 0x1400b5215
call sym.SystemInformer.exe_PhGetKernelFileName2
nop dword [rax]
test rax, rax
je 0x1400b5215
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 0x1400b5459
cmp dword [0x1402cddd8], 3
lea r8, [rbp + 8]
mov edx, 8
jl 0x1400b5247
nop dword [rax + rax]
call fcn.1401778a0
jmp 0x1400b5258
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x1400b5459
nop dword [rax + rax]
test eax, eax
js 0x1400b5459
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 0x1400b52dc
mov rsi, qword [rbp - 0x60]
mov edx, 4
mov rcx, qword [0x1402caaf0]
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.14020af00
mov rcx, qword [rbp - 0x60]
mov qword [r14 + 0xa0], rbx
call fcn.1400b4360
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 0x1400b530e
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 0x1400b5351
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 0x1400b53dc
mov eax, dword [rbp]
cmp eax, 0x2100
jg 0x1400b53a2
je 0x1400b538e
test eax, eax
je 0x1400b539c
nop dword [rax]
cmp eax, 0x1000
je 0x1400b5395
cmp eax, 0x2000
jne 0x1400b53dc
mov eax, 2
jmp 0x1400b53ca
mov eax, 1
jmp 0x1400b53ca
mov eax, r15d
jmp 0x1400b53ca
cmp eax, 0x3000
je 0x1400b53c5
cmp eax, 0x4000
je 0x1400b53be
cmp eax, 0x5000
jne 0x1400b53dc
mov eax, 5
jmp 0x1400b53ca
mov eax, 4
jmp 0x1400b53ca
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 0x1400b5429
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 0x1400b544f
test dword [r14 + 0xd8], 0x10000
je 0x1400b544f
mov rcx, qword [rbp + 8]
call fcn.140160d40
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 0x1400b548a
nop word [rax + rax]
cmp rax, 4
jne 0x1400b550d
cmp qword [r14 + 0xa0], 0
jne 0x1400b54c8
mov rcx, qword [0x1402caaf0]
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 0x1400b550d
mov rcx, qword [0x1402cc008]
test rcx, rcx
je 0x1400b5503
lea rax, [0x140245150]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call sym.SystemInformer.exe_PhFindEntryHashtable
test rax, rax
je 0x1400b5503
mov rax, qword [rax + 8]
lock inc dword [rax - 8]
jmp 0x1400b5506
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 0x1400b5582
cmp dword [0x1402bff40], 0x3f
jb 0x1400b555e
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 0x1400b558a
movzx eax, byte [rbp + 0x10]
mov byte [r14 + 0x41c], al
jmp 0x1400b558a
test dword [r14 + 0xd8], 0x2000
je 0x1400b558a
movzx eax, byte ds:[r14 + 0x41c]
and al, 0xfa
or al, 2
mov byte [r14 + 0x41c], al
jmp 0x1400b558a
mov byte [r14 + 0x41c], 0xff
cmp dword [0x1402bff40], 0x3f
jb 0x1400b566e
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b566e
test dword [0x1402ca2ec], 0x80000
je 0x1400b566e
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 0x1400b55ff
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 0x1400b566e
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 0x1400b566e
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 0x1400b570a
test dword [0x1402ca2ec], 0x100000
je 0x1400b570a
cmp qword [r14 + 0x20], 4
jne 0x1400b56bc
xor r9d, r9d
lea rdx, [rbp]
mov r8d, 4
mov ecx, 0xdd
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400b570a
mov ecx, dword [rbp]
and ecx, 0x100
shl ecx, 0xb
jmp 0x1400b56f6
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b570a
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 0x1400b570a
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 0x1400b5766
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b5766
test dword [r14 + 0xd8], 0x8000
je 0x1400b5766
cmp dword [0x1402cddd8], 3
jl 0x1400b5766
mov r9d, 4
lea r8, [rbp]
mov edx, 0xd
call fcn.140178480
test eax, eax
js 0x1400b5766
mov ecx, dword [rbp]
lea rdx, [r14 + 0x14c]
mov r8d, 0xa
mov dword [r14 + 0x440], ecx
call fcn.1401eb540
mov rax, qword [r13 + 0x30]
add rax, qword [r13 + 0x28]
jne 0x1400b578a
cmp dword [r13 + 4], eax
jne 0x1400b578a
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b578a
nop
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [r14 + 0x50], r15
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x188
pop r15
pop r14
pop r13
pop rbp
ret