Function at 0x140108040
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 ebx, edx
mov rsi, rcx
mov word [rbp + 0x2dc], bx
mov eax, edx
shr eax, 0x10
mov byte [rbp + 0x2de], al
call fcn.140129c00
mov dword [rbp - 0x58], eax
mov dword [rbp - 0x54], edx
lea rcx, [rbp + 0xf0]
lea rdx, [rbp - 0x58]
mov r8d, 0xd53e8000
mov r9d, 0x19db1de
call fcn.140129c30
cmp qword [rbp + 0xf0], 0
je 0x1401080b2
xor eax, eax
jmp 0x1401080b9
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x270], rax
mov r15d, 0x80000
lea rdi, [rbp + 0x2cc]
mov r14, qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
jmp 0x140108101
mov r15d, 0
test rdx, rdx
mov rcx, qword [rbp + 0x2d0]
je 0x140108101
lea r15, [rdx + rdx]
mov r8d, 1
call fcn.14001c720
mov eax, 1
test r15, r15
je 0x14010812e
js 0x140108556
movzx eax, byte [0x140202701]
mov edx, 1
mov rcx, r15
call fcn.14001c710
test rax, rax
je 0x14010855b
mov dword [rbp + 0x2cc], 0
mov ecx, 5
mov qword [rbp + 0x2d0], rax
mov rdx, rax
mov qword [rbp + 0x288], r15
mov r8d, r15d
mov r9, rdi
call r14
cmp eax, 0xc0000004
jne 0x140108191
mov r15d, dword [rbp + 0x2cc]
test r15d, r15d
mov rdx, qword [rbp + 0x288]
je 0x1401080e0
add r15d, 0x2800
test rdx, rdx
mov rcx, qword [rbp + 0x2d0]
jne 0x1401080f6
jmp 0x140108101
movzx eax, byte [0x140202701]
mov ecx, 0xfa0
mov edx, 8
call fcn.14001c710
test rax, rax
je 0x140108568
mov qword [rbp + 0x2a8], 0x1f4
mov qword [rbp + 0x2b0], rax
mov qword [rbp + 0x2b8], 0
xor edx, edx
lea rdi, [rbp + 0x2a8]
xor r14d, r14d
mov r8, qword [rbp + 0x2d0]
jmp 0x14010821a
lea rax, [r8 + r14]
mov rcx, qword [rbp + 0x2b0]
mov qword [rcx + rdx*8], rax
mov rdx, qword [rbp + 0x2b8]
inc rdx
mov qword [rbp + 0x2b8], rdx
mov eax, dword [rax]
add r14, rax
test rax, rax
je 0x140108242
cmp rdx, qword [rbp + 0x2a8]
jne 0x1401081f0
mov byte [rbp + 0x2df], 1
mov rcx, rdi
call fcn.1400a2740
mov rdx, qword [rbp + 0x2b8]
mov r8, qword [rbp + 0x2d0]
jmp 0x1401081f0
lea rax, [rsi + 0xd8]
mov qword [rbp + 0x280], rax
mov qword [rbp + 0x268], rax
test bl, bl
je 0x140108278
mov byte [rbp + 0x2df], 1
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.140105670
mov rax, qword [rsi + 0x80]
jmp 0x14010827a
xor eax, eax
mov qword [rbp + 0x260], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rbp + 0x100], rax
movups xmm0, xmmword [rbp + 0x2a8]
movaps xmmword [rbp + 0xf0], xmm0
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x50], 8
mov qword [rbp - 0x48], 0
lea rax, [rbp + 0x268]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x2dc]
mov qword [rbp + 0x110], rax
lea rax, [rbp + 0x260]
mov qword [rbp + 0x118], rax
lea rax, [rbp + 0x270]
mov qword [rbp + 0x120], rax
lea rcx, [rbp - 0x58]
lea rdx, [rbp + 0xf0]
call fcn.14010d650
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
imul rsi, rax, 0x148
add rsi, rcx
mov qword [rbp + 0x240], rcx
mov qword [rbp + 0x248], rcx
mov qword [rbp + 0x2a0], rdx
mov qword [rbp + 0x250], rdx
mov qword [rbp + 0x258], rsi
mov qword [rbp + 0x298], rcx
mov r8, rcx
test rax, rax
je 0x140108482
lea rbx, [rbp + 0xf8]
mov rax, qword [rbp + 0x298]
lea r8, [rax + 0x148]
lea r14, [rbp - 0x58]
lea r15, [rbp + 0xf0]
jmp 0x14010838e
mov r8, qword [rbp + 0x2c0]
add r8, 0x148
add r13, 0x148
cmp r13, rsi
je 0x140108478
mov rdi, qword [r8 - 0x148]
cmp rdi, 2
je 0x14010847b
mov qword [rbp + 0x2c0], r8
lea r13, [r8 - 0x148]
mov r12, qword [r13 + 0xc0]
lea rdx, [r13 + 8]
mov r8d, 0xb8
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [r13 + 0xc8]
movups xmm1, xmmword [r13 + 0xd8]
movups xmm2, xmmword [r13 + 0xe8]
movups xmm3, xmmword [r13 + 0xf8]
movups xmmword [rbx + 0xc0], xmm0
movups xmmword [rbx + 0xd0], xmm1
movups xmmword [rbx + 0xe0], xmm2
movups xmmword [rbx + 0xf0], xmm3
movups xmm0, xmmword [r13 + 0x108]
movups xmmword [rbx + 0x100], xmm0
movups xmm0, xmmword [r13 + 0x118]
movups xmmword [rbx + 0x110], xmm0
movups xmm0, xmmword [r13 + 0x128]
movups xmmword [rbx + 0x120], xmm0
movups xmm0, xmmword [r13 + 0x138]
movups xmmword [rbx + 0x130], xmm0
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0x1b0], r12
mov rcx, r14
mov rdx, qword [rbp + 0x280]
mov r8, r12
mov r9, r15
call fcn.140113480
cmp dword [rbp - 0x58], 2
je 0x140108370
mov rcx, r14
call fcn.140106840
jmp 0x140108370
mov r8, rsi
mov qword [rbp + 0x248], r8
sub rsi, r8
movabs rcx, 0xc7ce0c7ce0c7ce0d
mov rax, rsi
mul rcx
shr rdx, 8
mov qword [rbp + 0x278], rdx
xor eax, eax
mov qword [rbp + 0x290], rax
mov qword [rbp + 0x2c0], r8
mov rcx, r8
nop word cs:[rax + rax]
mov rax, qword [rbp + 0x290]
cmp qword [rbp + 0x278], rax
je 0x1401084eb
inc rax
mov qword [rbp + 0x290], rax
lea rsi, [rcx + 0x148]
call fcn.140106840
mov rcx, rsi
jmp 0x1401084c0
mov rax, qword [rbp + 0x2a0]
test rax, rax
je 0x140108510
imul rdx, rax, 0x148
mov r8d, 8
mov rcx, qword [rbp + 0x298]
call fcn.14001c720
mov byte [rbp + 0x2df], 0
mov rcx, qword [rbp + 0x280]
call fcn.1401136d0
mov rdx, qword [rbp + 0x288]
test rdx, rdx
je 0x140108541
mov r8d, 1
mov rcx, qword [rbp + 0x2d0]
call fcn.14001c720
nop
add rsp, 0x368
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140139bc0
mov ecx, 1
mov rdx, r15
call fcn.140155720
mov ecx, 8
mov edx, 0xfa0
call fcn.140155720
ud2