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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x368
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2e0], 0xfffffffffffffffe
mov qword [rbp + 0x2c8], r9
mov rbx, r8
mov qword [rbp + 0x2d0], rdx
mov qword [rbp + 0x2c0], rcx
movzx eax, byte [0x1400e51c1]
mov r12d, 0x80000
mov ecx, 0x80000
mov edx, 1
call fcn.14000ca40
test rax, rax
je 0x140018452
mov rsi, rax
mov qword [rbp + 0x280], 0x80000
mov qword [rbp + 0x288], rax
mov qword [rbp + 0x290], 0
xor edx, edx
lea r13, [rbp - 0x60]
mov r15, qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lea r14, [rbp + 0xf0]
mov edi, 0x80000
jmp 0x140017f2e
mov r12, qword [rbp + 0x280]
mov rdx, qword [rbp + 0x290]
mov dword [rbp - 0x60], 0
sub r12, rdx
cmp r12, rdi
jae 0x140017f53
lea rcx, [rbp + 0x280]
mov r8, rdi
call fcn.1400ab740
mov rsi, qword [rbp + 0x288]
mov ecx, 5
mov rdx, rsi
mov r8d, edi
mov r9, r13
call r15
test eax, eax
jns 0x140017fbc
or eax, 0x10000000
mov ecx, eax
call fcn.140025b20
cmp edx, 0xd0000004
jne 0x1400180f0
mov qword [rbp + 0xf0], rax
mov dword [rbp + 0xf8], 0xd0000004
mov ecx, dword [rbp - 0x60]
mov rdx, rdi
add rdx, rdi
lea edi, [rcx + 0x2800]
test ecx, ecx
cmove rdi, rdx
test rax, rax
je 0x140017f20
mov rcx, r14
call fcn.140026060
jmp 0x140017f20
mov r15, qword [rbp + 0x2d0]
test r15, r15
lea r14, str.Processor__Total___Idle_TimeProcessor____Idle_Time
cmovne r14, r15
cmove rbx, r15
mov qword [rbp + 0x290], rdi
movzx eax, byte [0x1400e51c1]
mov ecx, 0xfa0
mov edx, 8
call fcn.14000ca40
test rax, rax
je 0x140018461
test r15, r15
mov qword [rbp + 0x2a8], 0x1f4
mov qword [rbp + 0x2b0], rax
lea rax, [fcn.140017180]
lea r12, [0x140017190]
cmove r12, rax
mov qword [rbp + 0x2b8], 0
xor r13d, r13d
lea rdi, str.Processor__Total___Idle_TimeProcessor____Idle_Time
jmp 0x140018065
mov rdx, qword [rbp + 0x2b8]
lea rax, [rsi + r13]
mov rcx, qword [rbp + 0x2b0]
mov qword [rcx + rdx*8], rax
inc qword [rbp + 0x2b8]
add r13, r15
test r15d, r15d
je 0x1400180aa
mov r15d, dword [rsi + r13]
mov rdx, qword [rsi + r13 + 0x50]
mov byte [rbp + 0x2df], 1
mov rcx, rdi
mov r8, r14
mov r9, rbx
call r12
test al, al
je 0x14001805d
mov rdx, qword [rbp + 0x2b8]
cmp rdx, qword [rbp + 0x2a8]
jne 0x140018047
mov byte [rbp + 0x2df], 1
lea rcx, [rbp + 0x2a8]
call fcn.1400192d0
jmp 0x140018040
mov rcx, qword [rbp + 0x2c0]
lea rax, [rcx + 0x90]
mov qword [rbp + 0x258], rax
mov qword [rbp + 0x250], rax
mov rax, qword [rbp + 0x2c8]
cmp byte [rax], 0
je 0x140018117
mov byte [rbp + 0x2df], 1
xor edx, edx
call fcn.140010950
mov rax, qword [rbp + 0x2c0]
mov rax, qword [rax + 0x80]
jmp 0x140018119
mov qword [rbp + 0xf0], rax
mov dword [rbp + 0xf8], edx
test rax, rax
je 0x140018423
lea rcx, [rbp + 0xf0]
call fcn.140026060
jmp 0x140018423
xor eax, eax
mov qword [rbp + 0x248], rax
mov byte [rbp + 0x2df], 1
call fcn.140089e00
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x5c], edx
mov byte [rbp + 0x2df], 1
lea rcx, [rbp + 0xf0]
lea rdx, [rbp - 0x60]
mov r8d, 0xd53e8000
mov r9d, 0x19db1de
call fcn.140089e30
cmp qword [rbp + 0xf0], 0
je 0x140018163
xor eax, eax
jmp 0x14001816a
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rbp + 0x100], rax
movups xmm0, xmmword [rbp + 0x2a8]
movaps xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x260], 0
mov qword [rbp + 0x268], 8
mov qword [rbp + 0x270], 0
lea rax, [rbp + 0x250]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x2c8]
mov qword [rbp + 0x110], rax
lea rax, [rbp + 0x248]
mov qword [rbp + 0x118], rax
lea rax, [rbp + 0x240]
mov qword [rbp + 0x120], rax
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0xf0]
call fcn.14001c0f0
lea rcx, [rbp + 0x260]
lea rdx, [rbp - 0x60]
call fcn.14001b560
mov rdx, qword [rbp + 0x260]
mov rcx, qword [rbp + 0x268]
mov rax, qword [rbp + 0x270]
imul rdi, rax, 0x150
add rdi, rcx
mov qword [rbp + 0x260], rcx
mov qword [rbp + 0x2a0], rdx
mov qword [rbp + 0x268], rdx
mov qword [rbp + 0x270], rcx
mov qword [rbp + 0x278], rdi
mov qword [rbp + 0x298], rcx
mov r8, rcx
test rax, rax
je 0x140018387
lea r14, [rbp + 0xf8]
mov rax, qword [rbp + 0x298]
lea r8, [rax + 0x150]
lea r15, [rbp - 0x60]
jmp 0x14001829e
mov r8, qword [rbp + 0x2d0]
add r8, 0x150
add rbx, 0x150
cmp rbx, rdi
je 0x14001837d
mov r12, qword [r8 - 0x150]
cmp r12, 2
je 0x140018380
mov qword [rbp + 0x2d0], r8
lea rbx, [r8 - 0x150]
mov r13, qword [rbx + 0xd8]
lea rdx, [rbx + 8]
mov r8d, 0xd0
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [rbx + 0xe0]
movups xmm1, xmmword [rbx + 0xf0]
movups xmm2, xmmword [rbx + 0x100]
movups xmm3, xmmword [rbx + 0x110]
movups xmmword [r14 + 0xd8], xmm0
movups xmmword [r14 + 0xe8], xmm1
movups xmmword [r14 + 0xf8], xmm2
movups xmmword [r14 + 0x108], xmm3
movups xmm0, xmmword [rbx + 0x120]
movups xmmword [r14 + 0x118], xmm0
movups xmm0, xmmword [rbx + 0x130]
movups xmmword [r14 + 0x128], xmm0
movups xmm0, xmmword [rbx + 0x140]
movups xmmword [r14 + 0x138], xmm0
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0x1c8], r13
mov rcx, r15
mov rdx, qword [rbp + 0x258]
mov r8, r13
lea r9, [rbp + 0xf0]
call fcn.140018950
cmp dword [rbp - 0x60], 2
je 0x140018280
mov rcx, r15
call fcn.140011ec0
jmp 0x140018280
mov r8, rdi
mov qword [rbp + 0x270], r8
sub rdi, r8
shr rdi, 4
movabs rcx, 0xc30c30c30c30c31
mov rax, rdi
mul rcx
mov qword [rbp + 0x2c0], rdx
xor eax, eax
mov qword [rbp + 0x2c8], rax
mov qword [rbp + 0x2d0], r8
mov rcx, r8
nop dword [rax + rax]
mov rax, qword [rbp + 0x2c8]
cmp qword [rbp + 0x2c0], rax
je 0x1400183eb
inc rax
mov qword [rbp + 0x2c8], rax
lea rdi, [rcx + 0x150]
call fcn.140011ec0
mov rcx, rdi
jmp 0x1400183c0
mov rax, qword [rbp + 0x2a0]
test rax, rax
je 0x140018410
imul rdx, rax, 0x150
mov r8d, 8
mov rcx, qword [rbp + 0x298]
call fcn.14000ca50
mov byte [rbp + 0x2df], 0
mov rcx, qword [rbp + 0x258]
call fcn.140018e50
mov rdx, qword [rbp + 0x280]
test rdx, rdx
je 0x14001843d
mov r8d, 1
mov rcx, rsi
call fcn.14000ca50
nop
add rsp, 0x368
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 1
mov edx, 0x80000
call fcn.1400b0770
mov ecx, 8
mov edx, 0xfa0
call fcn.1400b0770
ud2