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

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0xf8]
sub rsp, 0x1e0
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rbp + 0xc0], 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 + 0x48], rax
je 0x1400b3296
movzx eax, word [rdx + 0x38]
xor r15d, r15d
test ax, ax
jne 0x1400b3253
call sym.SystemInformer.exe_QiReferenceEmptyString
mov rbx, rax
jmp 0x1400b32ee
mov rsi, qword [rdx + 0x40]
lea rcx, [rax + 0x12]
mov rdx, qword [0x1402c4fb8]
mov rdi, rax
call sym.SystemInformer.exe_QiCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rdi + rax], r15w
test rsi, rsi
je 0x1400b32ee
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1402074d0
jmp 0x1400b32ee
mov rdx, qword [0x1402c4fb8]
mov ecx, 0x38
call sym.SystemInformer.exe_QiCreateObject
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 [0x14023ab10]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [0x14023ab20]
mov dword [rcx + 0x20], eax
movzx eax, word [0x14023ab24]
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 0x1400b3317
lea rdx, [r14 + 0x100]
mov r8d, 0xa
call fcn.1401e7b10
mov r8, qword ds:[r14 + 0x20]
test r8, r8
jle 0x1400b335b
mov edx, 0x400
lea rcx, [r14 + 0x50]
call sym.SystemInformer.exe_QiOpenProcess
test eax, eax
js 0x1400b3342
or dword [r14 + 0xd8], 0x80
cmp qword [r14 + 0x50], 0
jne 0x1400b335b
mov r8, qword [r14 + 0x20]
lea rcx, [r14 + 0x50]
mov edx, 0x1000
call sym.SystemInformer.exe_QiOpenProcess
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b34a5
mov r9d, 0x40
mov qword [rbp + 0x20], 0x40
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b33e6
mov edx, dword [rbp + 0x58]
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 [0x1402c825c], 2
mov r9d, 8
mov rbx, qword [r14 + 0x50]
mov rcx, rbx
jl 0x1400b3413
lea r8, [r14 + 0x40]
lea edx, [r9 + 7]
call fcn.1401759e0
test eax, eax
js 0x1400b34a5
jmp 0x1400b3481
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ecx, eax
cmp eax, 0xc0000003
jne 0x1400b3466
mov r9d, 0x60
mov qword [rsp + 0x20], r15
lea r8, [rbp + 0x60]
mov rcx, rbx
lea edx, [r9 - 0x20]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov rdx, qword [rbp + 0x88]
mov ecx, r15d
cmp eax, 0x80000005
mov qword [rsp + 0x40], rdx
cmovne ecx, eax
jmp 0x1400b346b
mov rdx, qword [rsp + 0x40]
test ecx, ecx
js 0x1400b34a5
mov eax, dword [0x7ffe02c4]
shl rax, 0x30
or rax, rdx
mov qword [r14 + 0x40], rax
lfence
mov rcx, qword [r14 + 0x40]
lea rdx, [r14 + 0x138]
mov r8d, 0x10
mov dword [r14 + 0x134], 0x780030
call fcn.1401e7aec
mov rcx, qword [r14 + 0x20]
cmp rcx, 4
je 0x1400b3537
test rcx, rcx
jle 0x1400b3555
lea rdx, [rsp + 0x38]
call sym.SystemInformer.exe_QiGetProcessImageFileNameByProcessId
test eax, eax
js 0x1400b34d3
mov rax, qword [rsp + 0x38]
mov qword [r14 + 0x60], rax
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b34f3
lea rdx, [rsp + 0x38]
call sym.SystemInformer.exe_QiGetProcessImageFileNameWin32
test eax, eax
js 0x1400b34f3
mov rax, qword [rsp + 0x38]
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x1400b3555
mov rax, qword [r14 + 0x58]
test rax, rax
je 0x1400b350b
cmp qword [rax], 0
jne 0x1400b3555
call sym.SystemInformer.exe_QiGetFileName
mov rcx, qword [r14 + 0x58]
mov qword [r14 + 0x58], rax
test rcx, rcx
je 0x1400b3555
add rcx, 0xfffffffffffffff0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b3555
call fcn.14013fb00
jmp 0x1400b3555
call sym.SystemInformer.exe_QiGetKernelFileName2
nop dword [rax]
test rax, rax
je 0x1400b3555
mov rcx, rax
mov qword [r14 + 0x60], rax
call sym.SystemInformer.exe_QiGetFileName
mov qword [r14 + 0x58], rax
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b379b
cmp dword [0x1402c825c], 3
lea r8, [rsp + 0x60]
mov edx, 8
jl 0x1400b3587
nop dword [rax]
call fcn.140174e00
jmp 0x1400b3598
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x1400b379b
nop dword [rax + rax]
test eax, eax
js 0x1400b379b
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x4c]
mov r9d, 0x58
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x80]
lea edx, [r9 - 0x57]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b361c
mov rsi, qword [rbp - 0x80]
mov edx, 4
mov rcx, qword [0x1402c5110]
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.1402074d0
mov rcx, qword [rbp - 0x80]
mov qword [r14 + 0xa0], rbx
call fcn.1400b2700
mov qword [r14 + 0x398], rax
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x10]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
lea edx, [r9 + 0xe]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
nop
test eax, eax
js 0x1400b364e
mov eax, dword [rbp - 0x10]
mov dword [r14 + 0xa8], eax
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x14]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0xc]
lea edx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x1400b3691
mov eax, dword [rbp - 0xc]
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 [rsp + 0x60]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call sym.SystemInformer.exe_QiGetTokenIntegrityLevelRID
test eax, eax
js 0x1400b371d
mov eax, dword [rsp + 0x30]
cmp eax, 0x2100
jg 0x1400b36e2
je 0x1400b36ce
test eax, eax
je 0x1400b36dc
nop word [rax + rax]
cmp eax, 0x1000
je 0x1400b36d5
cmp eax, 0x2000
jne 0x1400b371d
mov eax, 2
jmp 0x1400b370a
mov eax, 1
jmp 0x1400b370a
mov eax, r15d
jmp 0x1400b370a
cmp eax, 0x3000
je 0x1400b3705
cmp eax, 0x4000
je 0x1400b36fe
cmp eax, 0x5000
jne 0x1400b371d
mov eax, 5
jmp 0x1400b370a
mov eax, 4
jmp 0x1400b370a
mov eax, 3
mov dword [r14 + 0xac], eax
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0xb0], rax
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x18]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 8]
lea edx, [r9 + 0x16]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
nop
test eax, eax
js 0x1400b3769
cmp dword [rbp - 8], 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 [0x1402baf40], 0x3e
jb 0x1400b3790
test dword [r14 + 0xd8], 0x10000
je 0x1400b3790
mov rcx, qword [rsp + 0x60]
call fcn.14015fd20
mov qword [r14 + 0x390], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [r14 + 0x20]
mov rdi, qword [rsp + 0x1d8]
mov rsi, qword [rsp + 0x218]
mov rbx, qword [rsp + 0x210]
test rax, rax
je 0x1400b37ca
nop dword [rax]
cmp rax, 4
jne 0x1400b384c
cmp qword [r14 + 0xa0], 0
jne 0x1400b3806
mov rcx, qword [0x1402c5110]
mov edx, 4
lea r8d, [rdx + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
movsd xmm0, qword [0x140241ef0]
movsd qword [rax], xmm0
mov ecx, dword [0x140241ef8]
mov dword [rax + 8], ecx
mov qword [r14 + 0xa0], rax
cmp qword [r14 + 0x398], 0
jne 0x1400b384c
mov rcx, qword [0x1402c65e8]
test rcx, rcx
je 0x1400b3842
lea rax, [0x140241ef0]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
call sym.SystemInformer.exe_QiFindEntryHashtable
test rax, rax
je 0x1400b3842
mov rax, qword ds:[rax + 8]
lock inc dword [rax - 8]
jmp 0x1400b3845
mov rax, r15
mov qword [r14 + 0x398], rax
mov rdx, qword [r14 + 0x58]
mov rcx, qword [r14 + 0x20]
call sym.SystemInformer.exe_QiGetProcessKnownTypeEx
mov rcx, qword [r14 + 0x50]
mov dword [r14 + 0x3d8], eax
test rcx, rcx
je 0x1400b38be
cmp dword [0x1402baf40], 0x3f
jb 0x1400b389c
mov r9d, 1
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x20]
lea edx, [r9 + 0x3c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b38c6
movzx eax, byte [rbp - 0x20]
mov byte [r14 + 0x3dc], al
jmp 0x1400b38c6
test dword [r14 + 0xd8], 0x2000
je 0x1400b38c6
movzx eax, byte [r14 + 0x3dc]
and al, 0xfa
or al, 2
mov byte [r14 + 0x3dc], al
jmp 0x1400b38c6
mov byte [r14 + 0x3dc], 0xff
cmp dword [0x1402baf40], 0x3f
jb 0x1400b39aa
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b39aa
test dword [0x1402c48e8], 0x80000
je 0x1400b39aa
mov r9d, 8
mov dword [rbp], 7
lea r8, [rbp]
mov qword [rsp + 0x20], r15
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b393d
movzx eax, byte [rbp + 4]
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 [0x1402baf40], 0x72
jb 0x1400b39aa
mov rcx, qword [r14 + 0x50]
lea r8, [rbp + 8]
mov r9d, 8
mov dword [rbp + 8], 7
mov qword [rsp + 0x20], r15
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b39aa
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 [0x1402baf40], 0x6d
jb 0x1400b3a4a
test dword [0x1402c48e8], 0x100000
je 0x1400b3a4a
cmp qword [r14 + 0x20], 4
jne 0x1400b39f8
xor r9d, r9d
lea rdx, [rbp - 0x18]
mov ecx, 0xdd
lea r8d, [r9 + 4]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400b3a4a
mov ecx, dword [rbp - 0x18]
and ecx, 0x100
shl ecx, 0xb
jmp 0x1400b3a36
mov rcx, qword ds:[r14 + 0x50]
test rcx, rcx
je 0x1400b3a4a
mov r9d, 8
mov dword [rbp - 0x18], 0xf
lea r8, [rbp - 0x18]
mov qword [rsp + 0x20], r15
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400b3a4a
movzx eax, byte [rbp - 0x14]
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 [0x1402baf40], 0x71
jb 0x1400b3aa5
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b3aa5
test dword [r14 + 0xd8], 0x8000
je 0x1400b3aa5
cmp dword [0x1402c825c], 3
jl 0x1400b3aa5
mov r9d, 4
lea r8, [rbp - 4]
lea edx, [r9 + 9]
call fcn.1401759e0
test eax, eax
js 0x1400b3aa5
mov ecx, dword [rbp - 4]
lea rdx, [r14 + 0x11a]
mov r8d, 0xa
mov dword [r14 + 0x400], ecx
call fcn.1401e7b10
cmp dword [r13 + 4], 0
mov r13, qword [rsp + 0x1d0]
jne 0x1400b3aca
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x1400b3aca
nop dword [rax]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [r14 + 0x50], r15
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x1e0
pop r15
pop r14
pop rbp
ret