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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, rdx
mov dword [rsp + 0x20], 0
xor edx, edx
lea r9, [rsp + 0x20]
mov r12, r8
mov edi, ecx
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140009e7f
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x140009e7f
lea ebp, [rax + 0x100]
xor ecx, ecx
mov edx, ebp
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x140009e7f
lea r9, [rsp + 0x20]
mov r8d, ebp
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x140009e9f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140001360
add rsp, 0x180
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0x20], 0
je 0x140009e7f
mov qword [rsp + 0x1b0], r13
mov r13, rbx
cmp dword [rbx + 0x50], edi
je 0x140009ec8
mov eax, dword [rbx]
test eax, eax
je 0x14000a0cc
add rbx, rax
cmp dword [rbx + 0x50], edi
jne 0x140009eb6
xor ebp, ebp
cmp dword [rbx + 4], ebp
jbe 0x14000a0cc
mov qword [rsp + 0x178], r14
mov qword [rsp + 0x170], r15
cmp dword [rsi], 0x200
jae 0x14000a0bc
lea r14, [rbp*4]
mov qword [rsp + 0x28], 0
add r14, rbp
lea rdx, [rsp + 0x28]
shl r14, 4
add r14, 0x100
add r14, rbx
mov r15d, dword [r14 + 0x30]
mov ecx, r15d
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x14000a0b1
mov rcx, qword [rsp + 0x28]
mov eax, dword [0x1400152f4]
test rcx, rcx
je 0x140009f5f
cmp eax, 0xffffffff
je 0x140009f5f
mov edi, eax
add rdi, rcx
je 0x140009f5f
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.140001880
cmp eax, 1
jne 0x140009f5f
mov r8, qword [rdi]
jmp 0x140009f62
xor r8d, r8d
mov eax, dword [rsi]
imul rcx, rax, 0x43d
mov rax, qword [r12]
mov byte [rcx + rax], 1
mov eax, dword [rsi]
imul rcx, rax, 0x43d
mov rax, qword [r12]
mov dword [rcx + rax + 9], r15d
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
mov rax, qword [rsp + 0x28]
mov qword [rdx + rcx + 1], rax
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
movzx eax, byte [r14 + 0x3c]
mov byte [rdx + rcx + 0xd], al
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
mov eax, dword [r14 + 0x40]
mov dword [rdx + rcx + 0xe], eax
mov eax, dword [rsi]
imul rcx, rax, 0x43d
mov rax, qword [r12]
mov byte [rcx + rax + 0x12], 0
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
mov rax, qword [r14 + 0x10]
mov qword [rdx + rcx + 0x15], rax
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
mov rax, qword [r14 + 8]
mov qword [rdx + rcx + 0x1d], rax
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
mov rax, qword [r14]
mov qword [rdx + rcx + 0x25], rax
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
movzx eax, byte [r14 + 0x48]
mov byte [rdx + rcx + 0x13], al
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
movzx eax, byte [r14 + 0x44]
mov byte [rdx + rcx + 0x14], al
mov eax, dword [rsi]
mov rcx, qword [r12]
imul rdx, rax, 0x43d
mov rax, qword [r14 + 0x20]
mov qword [rdx + rcx + 0x2d], rax
mov eax, dword [rsi]
imul rcx, rax, 0x43d
mov rax, qword [r12]
mov qword [rcx + rax + 0x35], r8
mov eax, dword [rsi]
imul rcx, rax, 0x43d
mov rax, qword [r12]
lea rdi, [rax + 0x3d]
add rdi, rcx
je 0x14000a0a4
mov rcx, qword [rcx + rax + 0x2d]
lea rdx, [rsp + 0x30]
call fcn.140001b40
test al, al
je 0x14000a0a4
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400024a0
inc dword [rsi]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
inc ebp
cmp ebp, dword [rbx + 4]
jb 0x140009ee3
mov r14, qword [rsp + 0x178]
mov r15, qword [rsp + 0x170]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r13, qword [rsp + 0x1b0]
mov al, 1
jmp 0x140009e81