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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
xor edi, edi
mov ebx, 0x4000
mov dword [rcx], edi
mov esi, 0x600
mov ecx, esi
mov r8d, 0x79726b6e
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r15, rax
test rax, rax
jne 0x140001c59
mov eax, 0xc0000017
jmp 0x140001e46
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.140002580
xor r8d, r8d
mov dword [rbp + 0x77], edi
lea r9, [rbp + 0x6f]
xor edx, edx
mov r14d, edi
mov r12d, edi
lea r13d, [r8 + 5]
mov ecx, r13d
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebx, eax
cmp eax, 0xc0000004
jne 0x140001e36
mov edx, dword [rbp + 0x6f]
mov r8d, 0x79726b6e
add rdx, rdx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rbp - 0x49], rax
test rax, rax
jne 0x140001cb8
mov ebx, 0xc0000017
jmp 0x140001e36
mov r8d, dword [rbp + 0x6f]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov ecx, r13d
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebx, eax
test eax, eax
js 0x140001e27
mov r13, qword [rbp - 0x49]
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x30
xorps xmm1, xmm1
mov dword [rbp - 1], 0x200
movdqu xmmword [rbp - 0x11], xmm0
lea r9, [rbp - 0x29]
mov edx, 0x1000
movdqu xmmword [rbp + 7], xmm1
mov rax, qword [r13 + 0x50]
lea r8, [rbp - 0x19]
lea rcx, [rbp + 0x7f]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov ebx, eax
test eax, eax
js 0x140001dc5
mov rcx, qword [rbp + 0x7f]
lea r8, [rbp - 0x39]
mov r9d, 0xc
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 0x31]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov ebx, eax
test eax, eax
js 0x140001dbb
cmp byte [rbp - 0x39], dil
jbe 0x140001dbb
mov r8, qword [sym.imp.ntoskrnl.exe_PsProcessType]
lea rax, [rbp - 0x41]
mov rcx, qword [rbp + 0x7f]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov edx, 0x1000
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x140001dbb
mov rcx, qword [rbp - 0x41]
mov rax, rsi
lea rdx, [rcx + 0xfff]
and rdx, 0xfffffffffffff000
sub rdx, rcx
cmp rsi, rdx
jae 0x140001db2
mov r8b, byte [rbp - 0x39]
cmp byte [rax + rcx], r8b
jne 0x140001daa
inc dword [r15 + rax*4]
inc rax
cmp rax, rdx
jb 0x140001da0
inc r14d
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [r13]
test eax, eax
je 0x140001dd5
add r13, rax
jmp 0x140001cdb
lea rax, [r15 + 0x1800]
mov ecx, dword [rax]
cmp ecx, r12d
jbe 0x140001df2
cmp r12d, r14d
je 0x140001e5a
mov edx, esi
mov r12d, ecx
mov dword [rbp + 0x77], edx
jmp 0x140001df5
mov edx, dword [rbp + 0x77]
inc esi
add rax, 4
cmp esi, 0x1000
jb 0x140001ddc
test r12d, r12d
jne 0x140001e0d
test r14d, r14d
jne 0x140001e5a
cmp r12d, r14d
jne 0x140001e5a
cmp r14d, 1
mov eax, 0x8000001a
cmovbe ebx, eax
cmova edi, edx
mov rax, qword [rbp + 0x67]
mov dword [rax], edi
mov rcx, qword [rbp - 0x49]
mov edx, 0x79726b6e
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, 0x79726b6e
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ebx, 0xc0000225
jmp 0x140001e27