Function at 0x140006950
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1400069fa
cmp qword [rsp + 0x38], 0
je 0x1400069b7
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x28]
mov dl, 1
mov ecx, eax
call fcn.140001330
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400069db
mov dword [rsp + 0x20], 0xc000009a
jmp 0x1400069fa
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x20], eax
jmp 0x140006995
cmp dword [rsp + 0x20], 0
jl 0x140006a09
cmp qword [rsp + 0x38], 0
jne 0x140006a12
mov eax, dword [rsp + 0x20]
jmp 0x140006bea
mov dword [rsp + 0x20], 0xc0000225
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140006a61
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
jne 0x140006a48
mov dword [rsp + 0x20], 0
jmp 0x140006a61
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x140006a24
cmp dword [rsp + 0x20], 0
jge 0x140006a71
mov eax, dword [rsp + 0x20]
jmp 0x140006bea
mov dword [rsp + 0x24], 0
jmp 0x140006a85
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x24], eax
jae 0x140006bbe
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x50
mov qword [rsp + 0x50], rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
cmp qword [rcx + rdx + 0x130], rax
jne 0x140006ac0
jmp 0x140006a7b
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x50
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140006af0
jmp 0x140006a7b
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
movzx eax, al
test eax, eax
je 0x140006b2d
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
jmp 0x140006a7b
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x78]
and rax, 0x80
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x74]
and rax, 0x10
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x44], 0
jne 0x140006b92
cmp dword [rsp + 0x48], 0
je 0x140006b92
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp qword [rax + 0x58], 0
je 0x140006b92
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp qword [rax + 0x2c8], 0
jne 0x140006bb7
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
jmp 0x140006a7b
jmp 0x140006bbe
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x140006bd6
mov dword [rsp + 0x40], 0
jmp 0x140006bde
mov dword [rsp + 0x40], 0xc0000225
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x68
ret