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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov qword [rsp + 0x50], rax
mov r8d, 0x4b555341
mov edx, 0x100000
mov ecx, 0x40
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x78], 0
jne 0x1400169bd
mov dword [rsp + 0x38], 1
jmp 0x1400169c5
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x38], 0
je 0x1400169f3
xor r9d, r9d
mov r8d, 0x209
lea rdx, [0x14001dc60]
lea rcx, [0x14001de20]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x1400169fb
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x78], 0
jne 0x140016a0d
mov eax, 0xc000000d
jmp 0x140016c10
cmp qword [rsp + 0x30], 0
jne 0x140016a3a
lea r9, [0x14001de40]
lea r8, [0x14001de60]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000017
jmp 0x140016c10
xor r9d, r9d
mov r8d, 0x100000
mov rdx, qword [rsp + 0x30]
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140016a77
mov edx, 0x4b555341
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x20]
jmp 0x140016c10
cmp dword [rsp + 0x20], 0
jl 0x140016ac9
mov dword [rsp + 0x20], 0xc0000225
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
cmp qword [rax + 0x50], rcx
jne 0x140016aa2
mov dword [rsp + 0x20], 0
jmp 0x140016ac9
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140016ac5
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 0x140016ac7
jmp 0x140016ac9
jmp 0x140016a86
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140016ae3
mov dword [rsp + 0x3c], 1
jmp 0x140016aeb
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x24], al
cmp dword [rsp + 0x20], 0
jl 0x140016bc6
mov dword [rsp + 0x20], 0xc0000225
mov dword [rsp + 0x28], 0
jmp 0x140016b1b
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x28], eax
jae 0x140016bc4
mov eax, dword [rsp + 0x28]
imul rax, rax, 0x50
mov qword [rsp + 0x58], rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
cmp qword [rcx + rdx + 0x130], rax
jne 0x140016b56
jmp 0x140016b11
mov eax, dword [rsp + 0x28]
imul rax, rax, 0x50
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x140016bbd
movzx edx, byte [rsp + 0x24]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.140016e30
movzx eax, al
test eax, eax
je 0x140016bbd
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x78]
mov qword [rax], 0
jmp 0x140016b11
jmp 0x140016bc4
jmp 0x140016be1
lea r9, [0x14001de40]
lea r8, [0x14001dea0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x40], 0
je 0x140016bf9
mov edx, 0x4b555341
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
jne 0x140016c0c
mov dword [rsp + 0x20], 0xc0000225
mov eax, dword [rsp + 0x20]
add rsp, 0x68
ret