Function at 0x1400586f0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x1401970c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0xb8], 0
lea r9, [rsp + 0xb8]
mov r8d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0x28]
mov ecx, listen
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x1400587b1
cmp qword [rsp + 0x28], 0
je 0x14005876a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0xb8]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0xb8]
mov r8d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0x28]
mov ecx, listen
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
jmp 0x140058745
cmp dword [rsp + 0x30], 0
jge 0x1400587da
cmp qword [rsp + 0x28], 0
je 0x1400587d3
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400589f9
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400587f3
xor eax, eax
jmp 0x1400589f9
mov dword [rsp + 0x24], 0
jmp 0x140058807
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x1400589e4
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x40]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.14001af20
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0xf
jbe 0x140058891
mov dword [rsp + 0x34], 1
jmp 0x140058899
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400588c2
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0xf
jbe 0x140058916
mov dword [rsp + 0x38], 1
jmp 0x14005891e
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14005894d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400589d2
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x98], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xc0]
call fcn.140022630
mov rax, qword [rsp + 0xa0]
jmp 0x1400589f9
lea rcx, [rsp + 0xc0]
call fcn.140022630
jmp 0x1400587fd
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140163a00
add rsp, 0xf8
ret