Function at 0x1400b4ba0
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 [0x1402c0040]
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 0x1400b4c56
movzx eax, word ds:[rdx + 0x38]
xor r15d, r15d
test ax, ax
jne 0x1400b4c12
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400b4cae
mov rsi, qword [rdx + 0x40]
lea rcx, [rax + 0x12]
mov rdx, qword [0x1402cb8c0]
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 0x1400b4cae
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020be40
jmp 0x1400b4cae
mov rdx, qword [0x1402cb8c0]
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 [0x14023ee70]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [0x14023ee80]
mov dword [rcx + 0x20], eax
movzx eax, word [0x14023ee84]
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 0x1400b4ced
lea rdx, [r14 + 0x100]
mov r8d, 0xa
call fcn.1401ec730
mov ecx, dword [r14 + 0x20]
lea rdx, [r14 + 0x11a]
mov r8d, 0x10
call fcn.1401ec730
mov r8, qword [r14 + 0x20]
test r8, r8
jle 0x1400b4d2d
mov edx, 0x400
lea rcx, [r14 + 0x50]
call sym.SystemInformer.exe_PhOpenProcess
test eax, eax
js 0x1400b4d14
or dword [r14 + 0xd8], 0x80
cmp qword [r14 + 0x50], 0
jne 0x1400b4d2d
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 0x1400b4ec5
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 0x1400b4db7
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 [0x1402ced08], 2
mov r9d, 8
mov rbx, qword [r14 + 0x50]
mov rcx, rbx
jl 0x1400b4ded
lea r8, [r14 + 0x40]
mov edx, 0xf
call fcn.140179100
nop dword [rax + rax]
test eax, eax
js 0x1400b4ec5
jmp 0x1400b4ea0
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 0x1400b4e85
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 0x1400b4e5c
mov r8d, r15d
jmp 0x1400b4e64
nop dword [rax]
test eax, eax
js 0x1400b4ec5
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x40]
add rcx, rax
lea rax, [rsp + 0x70]
cmp rax, rcx
ja 0x1400b4ec5
mov rcx, qword [rsp + 0x68]
mov qword [rbp + 0x18], rcx
jmp 0x1400b4e89
mov rcx, qword [rbp + 0x18]
test r8d, r8d
js 0x1400b4ec5
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.1401ec70c
mov rcx, qword [r14 + 0x20]
cmp rcx, 4
je 0x1400b4f57
test rcx, rcx
jle 0x1400b4f75
lea rdx, [rbp + 8]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x1400b4ef1
mov rax, qword [rbp + 8]
mov qword [r14 + 0x60], rax
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b4f11
lea rdx, ds:[rbp + 8]
call sym.SystemInformer.exe_PhGetProcessImageFileNameWin32
test eax, eax
js 0x1400b4f11
mov rax, qword [rbp + 8]
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x1400b4f75
mov rax, qword ds:[r14 + 0x58]
test rax, rax
je 0x1400b4f2b
cmp qword [rax], 0
jne 0x1400b4f75
call sym.SystemInformer.exe_PhGetFileName
mov rcx, qword [r14 + 0x58]
mov qword [r14 + 0x58], rax
test rcx, rcx
je 0x1400b4f75
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b4f75
call fcn.140142200
jmp 0x1400b4f75
call sym.SystemInformer.exe_PhGetKernelFileName2
nop dword [rax]
test rax, rax
je 0x1400b4f75
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 0x1400b51b9
cmp dword [0x1402ced08], 3
lea r8, [rbp + 8]
mov edx, 8
jl 0x1400b4fa7
nop dword [rax + rax]
call fcn.140178520
jmp 0x1400b4fb8
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x1400b51b9
nop dword [rax + rax]
test eax, eax
js 0x1400b51b9
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 0x1400b503c
mov rsi, qword [rbp - 0x60]
mov edx, 4
mov rcx, qword [0x1402cba10]
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.14020be40
mov rcx, qword [rbp - 0x60]
mov qword [r14 + 0xa0], rbx
call fcn.1400b40c0
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 0x1400b506e
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 0x1400b50b1
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 0x1400b513c
mov eax, dword [rbp]
cmp eax, 0x2100
jg 0x1400b5102
je 0x1400b50ee
test eax, eax
je 0x1400b50fc
nop dword [rax]
cmp eax, 0x1000
je 0x1400b50f5
cmp eax, 0x2000
jne 0x1400b513c
mov eax, 2
jmp 0x1400b512a
mov eax, 1
jmp 0x1400b512a
mov eax, r15d
jmp 0x1400b512a
cmp eax, 0x3000
je 0x1400b5125
cmp eax, 0x4000
je 0x1400b511e
cmp eax, 0x5000
jne 0x1400b513c
mov eax, 5
jmp 0x1400b512a
mov eax, 4
jmp 0x1400b512a
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 0x1400b5189
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 [0x1402c0f40], 0x3e
jb 0x1400b51af
test dword [r14 + 0xd8], 0x10000
je 0x1400b51af
mov rcx, qword [rbp + 8]
call fcn.1401619c0
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 0x1400b51ea
nop word [rax + rax]
cmp rax, 4
jne 0x1400b526d
cmp qword [r14 + 0xa0], 0
jne 0x1400b5228
mov rcx, qword [0x1402cba10]
mov edx, 4
mov r8d, 0xc
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
movsd xmm0, qword [0x1402464f0]
movsd qword [rax], xmm0
mov ecx, dword [0x1402464f8]
mov dword [rax + 8], ecx
mov qword [r14 + 0xa0], rax
cmp qword [r14 + 0x3c8], 0
jne 0x1400b526d
mov rcx, qword [0x1402ccf38]
test rcx, rcx
je 0x1400b5263
lea rax, [0x1402464f0]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call sym.SystemInformer.exe_PhFindEntryHashtable
test rax, rax
je 0x1400b5263
mov rax, qword [rax + 8]
lock inc dword [rax - 8]
jmp 0x1400b5266
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 0x1400b52e2
cmp dword [0x1402c0f40], 0x3f
jb 0x1400b52be
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 0x1400b52ea
movzx eax, byte [rbp + 0x10]
mov byte [r14 + 0x41c], al
jmp 0x1400b52ea
test dword [r14 + 0xd8], 0x2000
je 0x1400b52ea
movzx eax, byte ds:[r14 + 0x41c]
and al, 0xfa
or al, 2
mov byte [r14 + 0x41c], al
jmp 0x1400b52ea
mov byte [r14 + 0x41c], 0xff
cmp dword [0x1402c0f40], 0x3f
jb 0x1400b53ce
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b53ce
test dword [0x1402cb228], 0x80000
je 0x1400b53ce
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 0x1400b535f
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 [0x1402c0f40], 0x72
jb 0x1400b53ce
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 0x1400b53ce
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 [0x1402c0f40], 0x6d
jb 0x1400b546a
test dword [0x1402cb228], 0x100000
je 0x1400b546a
cmp qword [r14 + 0x20], 4
jne 0x1400b541c
xor r9d, r9d
lea rdx, [rbp]
mov r8d, 4
mov ecx, 0xdd
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400b546a
mov ecx, dword [rbp]
and ecx, 0x100
shl ecx, 0xb
jmp 0x1400b5456
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b546a
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 0x1400b546a
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 [0x1402c0f40], 0x71
jb 0x1400b54c6
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b54c6
test dword [r14 + 0xd8], 0x8000
je 0x1400b54c6
cmp dword [0x1402ced08], 3
jl 0x1400b54c6
mov r9d, 4
lea r8, [rbp]
mov edx, 0xd
call fcn.140179100
test eax, eax
js 0x1400b54c6
mov ecx, dword [rbp]
lea rdx, [r14 + 0x14c]
mov r8d, 0xa
mov dword [r14 + 0x440], ecx
call fcn.1401ec730
mov rax, qword [r13 + 0x30]
add rax, qword [r13 + 0x28]
jne 0x1400b54ea
cmp dword [r13 + 4], eax
jne 0x1400b54ea
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b54ea
nop
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [r14 + 0x50], r15
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x188
pop r15
pop r14
pop r13
pop rbp
ret