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

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x30]
mov qword [rsp], rax
mov rax, 0x37c
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x1800592ce
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x130], rsi
mov qword [rbp + 0x128], rbx
mov qword [rbp + 0x360], rcx
mov qword [rbp + 0x368], rdx
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x348], rax
mov byte [rbp], 0
mov qword [rbp + 0x38], 0
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x368]
mov eax, dword [rax + 8]
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
cmp eax, 8
je 0x180059358
mov eax, dword [rbp + 8]
cmp eax, 4
je 0x18005945b
jmp 0x1800599fe
mov eax, 1
mov edx, 0
mov rcx, qword [rbp + 0x368]
mov ecx, dword [rcx + 0xc]
mov rbx, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [rbp + 0xd0], ecx
mov ecx, eax
mov eax, dword [rbp + 0xd0]
mov r8d, eax
call rbx
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x1800593f6
mov rax, qword [rbp + 0x48]
mov edx, 0
mov rcx, qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [rbp + 0xd8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xd8]
call rax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x1800593d1
mov dword [rbp + 4], 0
jmp 0x1800593e3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
test eax, eax
jne 0x180059406
mov dword [rbp + 0x14], 1
jmp 0x18005940d
mov dword [rbp + 0x14], 0
mov rax, qword [rbp + 0x360]
mov edx, dword [rbp + 0x14]
mov rcx, qword [rbp + 0x368]
mov ecx, dword [rcx + 4]
mov ebx, dword [rbp + 4]
mov rsi, qword [rbp + 0x368]
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0xe0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xe0]
mov r8d, eax
mov r9d, ebx
call fcn.180058fe6
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x38], rax
jmp 0x1800599fe
mov dword [rbp + 0xc], 0
mov qword [rbp + 0x50], 0
mov eax, 0x1000
add eax, dword [rbp + 0xc]
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0x50]
mov edx, dword [rbp + 0xc]
mov rcx, rax
call fcn.1800625a0
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
test rax, rax
jne 0x1800594a6
mov byte [rbp], 1
mov dword [rbp + 0x1c], 0xc00000a0
jmp 0x180059506
mov eax, 5
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0xc]
mov ebx, 0
mov rsi, qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov dword [rbp + 0xe8], ecx
mov ecx, eax
mov eax, dword [rbp + 0xe8]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x20], eax
mov byte [rbp], 1
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x1c], eax
movzx eax, byte [rbp]
test eax, eax
jne 0x1800594f8
lea rax, [0x180104d20]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x1c]
cmp eax, 0xc0000004
je 0x18005946a
movzx eax, byte [rbp]
test eax, eax
jne 0x18005951d
lea rax, [0x180104d20]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x1c]
test eax, eax
jge 0x18005955c
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x1800599fe
mov rax, qword [rbp + 0x50]
test rax, rax
jne 0x180059543
mov rax, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rax
mov rax, qword [rbp + 0x50]
mov rcx, rax
call fcn.1800622b0
mov qword [rbp + 0x50], 0
jmp 0x1800599fe
mov dword [rbp + 0x28], 0
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x180059590
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x180059590
mov eax, 1
add eax, dword [rbp + 0x28]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
test eax, eax
je 0x1800595b9
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
add rax, qword [rbp + 0x68]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x70]
test rax, rax
jne 0x18005956b
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, 0x60c
mov ecx, eax
call fcn.1800106cc
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
jne 0x180059613
mov rax, qword [rbp + 0x50]
test rax, rax
jne 0x1800595fa
mov rax, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rax
mov rax, qword [rbp + 0x50]
mov rcx, rax
call fcn.1800622b0
mov qword [rbp + 0x50], 0
jmp 0x1800599fe
mov rax, qword [rbp + 0x38]
mov edx, 0
mov ecx, dword [rbp + 0x28]
movsxd rcx, ecx
imul rcx, rcx, 0x288
add rcx, 0x60c
mov qword [rbp + 0xf0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf0]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0x80], rax
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, 0x60c
mov rdx, qword [rbp + 0x38]
mov dword [rdx], eax
mov rax, qword [rbp + 0x38]
mov dword [rax + 4], 8
mov rax, qword [rbp + 0x38]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x38]
mov edx, dword [rbp + 0x28]
mov dword [rax + 0xc], edx
mov dword [rbp + 0x28], 0
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x1800599a2
mov eax, 0x410
mov edx, 0
mov rcx, qword [rbp + 0x68]
movabs rbx, 0xffffffff
and rbx, qword [rcx + 0x50]
mov rcx, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0xf8], rcx
mov ecx, eax
mov r8d, ebx
mov rax, qword [rbp + 0xf8]
call rax
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x18005986c
mov rax, qword [rbp + 0x98]
mov edx, 0
lea rcx, [rbp + 0x140]
mov ebx, 0xff
mov qword [rbp + 0x100], rcx
mov rcx, rax
mov rax, qword [rbp + 0x100]
mov r8, rax
mov r9d, ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
test eax, eax
je 0x1800597bc
lea rax, [rbp + 0x140]
add rax, 0x1fc
mov word [rax], 0
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x10
lea rdx, [rbp + 0x140]
mov ecx, 0x100
mov qword [rbp + 0x108], rcx
mov rcx, rax
mov rax, qword [rbp + 0x108]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0xa8], rax
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x10
add rax, 0x1fe
mov word [rax], 0
jmp 0x180059851
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x38]
movzx eax, ax
cmp eax, 0x100
ja 0x1800597e2
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x38]
movzx eax, ax
mov qword [rbp + 0xb8], rax
jmp 0x1800597ed
mov qword [rbp + 0xb8], 0x100
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x10
mov rdx, qword [rbp + 0x68]
mov rdx, qword [rdx + 0x40]
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0x110], rcx
mov rcx, rax
mov rax, qword [rbp + 0x110]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0xc0], rax
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x10
add rax, 0x1fe
mov word [rax], 0
mov rax, qword [rbp + 0x98]
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x30], eax
jmp 0x180059901
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x38]
movzx eax, ax
cmp eax, 0x100
ja 0x180059892
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x38]
movzx eax, ax
mov qword [rbp + 0xa0], rax
jmp 0x18005989d
mov qword [rbp + 0xa0], 0x100
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x10
mov rdx, qword [rbp + 0x68]
mov rdx, qword [rdx + 0x40]
mov rcx, qword [rbp + 0xa0]
mov qword [rbp + 0x118], rcx
mov rcx, rax
mov rax, qword [rbp + 0x118]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0xb0], rax
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x10
add rax, 0x1fe
mov word [rax], 0
mov rax, qword [rbp + 0x68]
movabs rdx, 0xffffffff
and rdx, qword [rax + 0x50]
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x290
mov dword [rax], edx
mov rax, qword [rbp + 0x68]
mov edx, dword [rbp + 0x28]
movsxd rdx, edx
imul rdx, rdx, 0x288
add rdx, qword [rbp + 0x38]
add rdx, 0x294
mov eax, dword [rax + 0x64]
mov dword [rdx], eax
mov rax, qword [rbp + 0x68]
movabs rdx, 0xffffffff
and rdx, qword [rax + 0x50]
mov eax, dword [rbp + 0x28]
movsxd rax, eax
imul rax, rax, 0x288
add rax, qword [rbp + 0x38]
add rax, 0x210
mov ecx, 0x40
mov dword [rbp + 0x120], ecx
mov ecx, edx
mov rdx, rax
mov eax, dword [rbp + 0x120]
mov r8d, eax
call fcn.1800141a1
mov dword [rbp + 0x34], eax
mov eax, 1
add eax, dword [rbp + 0x28]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
test eax, eax
je 0x1800599d8
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
add rax, qword [rbp + 0x68]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x90]
test rax, rax
jne 0x180059698
mov rax, qword [rbp + 0x50]
test rax, rax
jne 0x1800599ea
mov rax, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rax
mov rax, qword [rbp + 0x50]
mov rcx, rax
call fcn.1800622b0
mov qword [rbp + 0x50], 0
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0xc8], rax
lea rax, reloc.WS2_32.dll_accept
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x348]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov rax, qword [rbp + 0xc8]
mov rbx, qword [rbp + 0x128]
mov rsi, qword [rbp + 0x130]
lea rsp, [rbp + 0x350]
pop rbp
ret