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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
push 0x5f44555f
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x167b4
jmp 0x1680c
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xc0000004
jne 0x167e8
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
shl eax, 1
mov dword [ebp - 4], eax
jmp 0x16803
cmp dword [ebp - 0x10], 0
jge 0x16803
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 8], 0
jmp 0x1680c
cmp dword [ebp - 0x10], 0xc0000004
je 0x16798
cmp dword [ebp - 8], 0
jne 0x16817
jmp 0x169c6
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x169b4
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x44]
push edx
call fcn.00013710
test eax, eax
jl 0x169a4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00012ab0
test eax, eax
jl 0x16998
mov dword [ebp - 0x14], 0
jmp 0x1686f
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xb
jae 0x16998
call fcn.000112d0
mov ecx, dword [ebp - 0x14]
shl ecx, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + edx + 0x78]
jne 0x16993
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + edx + 0x7c]
jne 0x16993
call fcn.000112d0
mov ecx, dword [ebp - 0x14]
shl ecx, 4
mov edx, dword [ebp - 0x2c]
cmp edx, dword [eax + ecx + 0x70]
jne 0x16993
push 0x5f44555f
push 0x230
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x16993
mov dword [ebp - 0x30], 0
push 0x230
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x44]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x220], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
call fcn.00013300
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1697c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00013070
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x16972
movzx eax, word [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x34]
push eax
push 0x104
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
push ecx
call fcn.000169d0
push 0x5f44555f
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x22c], ecx
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00016520
jmp 0x16866
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov dword [ebp - 0xc], ecx
jmp 0x1681d
cmp dword [ebp - 8], 0
je 0x169c6
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret