Function at 0x140023540
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 0x14002357d
mov r14, r8
test r8, r8
je 0x1400237b5
mov rsi, rdx
mov qword [rsp + 0x78], rcx
lea rax, [0x14042a460]
mov qword [rsp + 0x80], rax
jmp 0x140023599
mov qword [rsp + 0x78], rcx
lea rax, [0x14042a430]
mov qword [rsp + 0x80], rax
mov esi, 8
xor r14d, r14d
mov qword [rsp + 0x90], r9
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ebx, 0x80000
mov ecx, 0x80000
mov edx, 1
call fcn.140008a30
test rax, rax
je 0x140023b7c
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 0x14002360a
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], 0
sub rbx, rdx
cmp rdi, rbx
jbe 0x14002362a
mov rcx, r12
mov r8, rdi
call fcn.1400260a0
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 0x140023698
or eax, 0x10000000
mov ecx, eax
call fcn.140057310
cmp edx, 0xd0000004
jne 0x14002377c
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 0x140023600
mov rcx, rbp
call fcn.140057db0
jmp 0x140023600
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x88], 0
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0xfa0
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x140023b8b
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 0x14002371d
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 0x14002374e
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 0x140023715
mov rbx, qword [rsp + 0x70]
cmp rbx, qword [rsp + 0x60]
jne 0x140023700
mov rcx, rdi
call fcn.1400268e0
jmp 0x140023700
mov rbx, qword [rsp + 0x78]
lea rsi, [rbx + 0x40]
mov qword [rsp + 0x98], rsi
mov rdi, qword [rsp + 0x90]
cmp byte [rdi], 0
je 0x1400237bc
mov rcx, rbx
xor edx, edx
call fcn.14000dc30
mov rax, qword [rbx + 0x10]
jmp 0x1400237be
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], edx
test rax, rax
je 0x14002379d
lea rcx, [rsp + 0xb0]
call fcn.140057db0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400237b5
mov r8d, 1
mov rcx, r15
call fcn.140008a40
xor eax, eax
jmp 0x140023b68
xor eax, eax
mov qword [rsp + 0xa0], rax
call fcn.14009fc10
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.14009fc40
cmp qword [rsp + 0xb0], 0
je 0x140023800
xor eax, eax
jmp 0x140023808
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.1400319f0
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 0x140023b36
movabs r12, 0x8000000000000000
lea rdi, [rsp + 0x218]
lea rbx, [rsp + 0x1a8]
lea r14, [rsp + 0xb0]
lea r15, [rsp + 0x210]
jmp 0x140023920
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x40]
je 0x140023b36
lea rax, [rdx + 0x158]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
cmp rax, 2
je 0x140023b36
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.140016940
cmp dword [rsp + 0xb0], 2
je 0x140023910
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x140023993
mov rcx, qword [rsp + 0xc8]
mov r8d, 1
call fcn.140008a40
mov r13, qword [rsp + 0xf0]
test r13, r13
je 0x1400239e0
mov rbp, qword [rsp + 0xe8]
add rbp, 8
jmp 0x1400239b9
add rbp, 0x20
dec r13
je 0x1400239e0
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x1400239b0
mov rcx, qword [rbp]
mov r8d, 1
call fcn.140008a40
jmp 0x1400239b0
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x140023a04
mov rcx, qword [rsp + 0xe8]
shl rdx, 5
mov r8d, 8
call fcn.140008a40
mov rdx, qword [rsp + 0x110]
cmp rdx, r12
je 0x140023a29
test rdx, rdx
je 0x140023a29
mov rcx, qword [rsp + 0x118]
mov r8d, 1
call fcn.140008a40
mov rdx, qword [rsp + 0x130]
cmp rdx, r12
je 0x140023a4e
test rdx, rdx
je 0x140023a4e
mov rcx, qword [rsp + 0x138]
mov r8d, 1
call fcn.140008a40
mov r13, qword [rsp + 0x108]
test r13, r13
je 0x140023aa0
mov rbp, qword [rsp + 0x100]
add rbp, 8
jmp 0x140023a79
add rbp, 0x20
dec r13
je 0x140023aa0
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x140023a70
mov rcx, qword [rbp]
mov r8d, 1
call fcn.140008a40
jmp 0x140023a70
mov rdx, qword [rsp + 0xf8]
test rdx, rdx
je 0x140023ac4
mov rcx, qword [rsp + 0x100]
shl rdx, 5
mov r8d, 8
call fcn.140008a40
mov rdx, qword [rsp + 0x148]
cmp rdx, r12
je 0x140023ae9
test rdx, rdx
je 0x140023ae9
mov rcx, qword [rsp + 0x150]
mov r8d, 1
call fcn.140008a40
mov rdx, qword [rsp + 0x168]
cmp rdx, r12
je 0x140023b0e
test rdx, rdx
je 0x140023b0e
mov rcx, qword [rsp + 0x170]
mov r8d, 1
call fcn.140008a40
mov rax, qword [rsp + 0x1a8]
test rax, rax
je 0x140023910
lock dec qword [rax]
jne 0x140023910
mov rcx, rbx
call fcn.14002ad90
jmp 0x140023910
lea rcx, [rsp + 0x28]
call fcn.140013620
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140023b68
mov rcx, qword [rsp + 0x50]
mov r8d, 1
mov rsi, rax
call fcn.140008a40
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.1400dc200
mov ecx, 8
mov edx, 0xfa0
call fcn.1400dc200
ud2