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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x368
test rdx, rdx
je 0x180020b5d
mov r14, r8
test r8, r8
je 0x180020da5
mov rsi, rdx
mov qword [rsp + 0x78], rcx
lea rax, [0x180354618]
mov qword [rsp + 0x80], rax
jmp 0x180020b79
mov qword [rsp + 0x78], rcx
lea rax, [0x1803545e8]
mov qword [rsp + 0x80], rax
mov esi, 8
xor r14d, r14d
mov qword [rsp + 0x90], r9
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ebx, 0x80000
mov ecx, 0x80000
mov edx, 1
call fcn.18000a890
test rax, rax
je 0x18002115c
mov r15, rax
mov qword [rsp + 0x48], 0x80000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
xor edx, edx
lea r12, [rsp + 0x48]
lea r13, [rsp + 0x28]
lea rbp, [rsp + 0xb0]
mov edi, 0x80000
jmp 0x180020bea
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], 0
sub rbx, rdx
cmp rbx, rdi
jae 0x180020c19
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, r12
mov r8, rdi
call fcn.180028950
mov r15, qword [rsp + 0x50]
mov ecx, 5
mov rdx, r15
mov r8d, edi
mov r9, r13
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jns 0x180020c87
or eax, 0x10000000
mov ecx, eax
call fcn.1800562c0
cmp edx, 0xd0000004
jne 0x180020d6c
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0xd0000004
mov ecx, dword [rsp + 0x28]
mov rdx, rdi
add rdx, rdi
lea edi, [rcx + 0x2800]
test ecx, ecx
cmove rdi, rdx
test rax, rax
je 0x180020be0
mov rcx, rbp
call fcn.180056c30
jmp 0x180020be0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x88], 0
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov ecx, 0xfa0
mov edx, 8
call fcn.18000a890
test rax, rax
je 0x18002116b
mov qword [rsp + 0x60], 0x1f4
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x80]
mov r12, qword [rax + 0x28]
xor r13d, r13d
lea rdi, [rsp + 0x60]
jmp 0x180020d0d
lea rax, [r15 + r13]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rbx*8], rax
inc rbx
mov qword [rsp + 0x70], rbx
add r13, rbp
test rbp, rbp
je 0x180020d3e
mov ebp, dword [r15 + r13]
mov rdx, qword [r15 + r13 + 0x50]
mov ecx, 1
mov r8, rsi
mov r9, r14
call r12
test al, al
je 0x180020d05
mov rbx, qword [rsp + 0x70]
cmp rbx, qword [rsp + 0x60]
jne 0x180020cf0
mov rcx, rdi
call fcn.180028720
jmp 0x180020cf0
mov rbx, qword [rsp + 0x78]
lea rsi, [rbx + 0x40]
mov qword [rsp + 0x98], rsi
mov rdi, qword [rsp + 0x90]
cmp byte [rdi], 1
jne 0x180020dac
mov rcx, rbx
xor edx, edx
call fcn.18000f240
mov rax, qword [rbx + 0x10]
jmp 0x180020dae
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], edx
test rax, rax
je 0x180020d8d
lea rcx, [rsp + 0xb0]
call fcn.180056c30
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x180020da5
mov r8d, 1
mov rcx, r15
call fcn.18000a8a0
xor eax, eax
jmp 0x180021148
xor eax, eax
mov qword [rsp + 0xa0], rax
call fcn.1800a2ea0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], edx
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x28]
mov r8d, 0xd53e8000
mov r9d, 0x19db1de
call fcn.1800a2ed0
test byte [rsp + 0xb0], 1
je 0x180020def
xor eax, eax
jmp 0x180020df7
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rdi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0xb0]
call fcn.180024040
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
imul r8, rcx, 0x158
add r8, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r8
test rcx, rcx
je 0x180021116
movabs r12, 0x8000000000000000
lea rdi, [rsp + 0x218]
lea rbx, [rsp + 0x1a8]
lea r14, [rsp + 0xb0]
lea r15, [rsp + 0x210]
jmp 0x180020f00
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x40]
je 0x180021116
lea rax, [rdx + 0x158]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
cmp rax, 2
je 0x180021116
add rdx, 8
mov qword [rsp + 0x210], rax
mov r8d, 0x150
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x2f0]
mov rcx, r14
mov rdx, rsi
mov r9, r15
call fcn.180026540
cmp dword [rsp + 0xb0], 2
je 0x180020ef0
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x180020f73
mov rcx, qword [rsp + 0xc8]
mov r8d, 1
call fcn.18000a8a0
mov r13, qword [rsp + 0xf0]
test r13, r13
je 0x180020fc0
mov rbp, qword [rsp + 0xe8]
add rbp, 8
jmp 0x180020f99
add rbp, 0x20
dec r13
je 0x180020fc0
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x180020f90
mov rcx, qword [rbp]
mov r8d, 1
call fcn.18000a8a0
jmp 0x180020f90
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x180020fe4
mov rcx, qword [rsp + 0xe8]
shl rdx, 5
mov r8d, 8
call fcn.18000a8a0
mov rdx, qword [rsp + 0x110]
cmp rdx, r12
je 0x180021009
test rdx, rdx
je 0x180021009
mov rcx, qword [rsp + 0x118]
mov r8d, 1
call fcn.18000a8a0
mov rdx, qword [rsp + 0x130]
cmp rdx, r12
je 0x18002102e
test rdx, rdx
je 0x18002102e
mov rcx, qword [rsp + 0x138]
mov r8d, 1
call fcn.18000a8a0
mov r13, qword [rsp + 0x108]
test r13, r13
je 0x180021080
mov rbp, qword [rsp + 0x100]
add rbp, 8
jmp 0x180021059
add rbp, 0x20
dec r13
je 0x180021080
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x180021050
mov rcx, qword [rbp]
mov r8d, 1
call fcn.18000a8a0
jmp 0x180021050
mov rdx, qword [rsp + 0xf8]
test rdx, rdx
je 0x1800210a4
mov rcx, qword [rsp + 0x100]
shl rdx, 5
mov r8d, 8
call fcn.18000a8a0
mov rdx, qword [rsp + 0x148]
cmp rdx, r12
je 0x1800210c9
test rdx, rdx
je 0x1800210c9
mov rcx, qword [rsp + 0x150]
mov r8d, 1
call fcn.18000a8a0
mov rdx, qword [rsp + 0x168]
cmp rdx, r12
je 0x1800210ee
test rdx, rdx
je 0x1800210ee
mov rcx, qword [rsp + 0x170]
mov r8d, 1
call fcn.18000a8a0
mov rax, qword [rsp + 0x1a8]
test rax, rax
je 0x180020ef0
lock dec qword [rax]
jne 0x180020ef0
mov rcx, rbx
call fcn.180018bd0
jmp 0x180020ef0
lea rcx, [rsp + 0x28]
call fcn.18000bea0
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x180021148
mov rcx, qword [rsp + 0x50]
mov r8d, 1
mov rsi, rax
call fcn.18000a8a0
mov rax, rsi
add rsp, 0x368
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0x80000
call fcn.1800debd0
mov ecx, 8
mov edx, 0xfa0
call fcn.1800debd0
ud2