Function at 0x18005d4d0
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x18013a080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, qword [0x1801fb858]
xor r15d, r15d
mov dword [rbp + 0xf], r15d
mov ebx, r15d
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18005d576
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0xf]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp + 0xf]
mov r8d, dword [rbp + 0xf]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18005d530
test eax, eax
js 0x18005d922
test rbx, rbx
je 0x18005d938
mov rsi, r15
mov edi, r15d
cmp qword [rbx], r15
jbe 0x18005d5ef
mov rax, r15
nop word [rax + rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rbx + rax*8 + 0x10]
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [rbx + rax*8 + 0x20]
movups xmmword [rbp - 0x29], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movups xmm1, xmmword [rbp - 0x39]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x18005d5db
cmp qword [rbp - 0x29], r14
je 0x18005d5ea
inc edi
mov eax, edi
cmp rax, qword [rbx]
jae 0x18005d927
jmp 0x18005d5a0
movq rsi, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x18005d938
mov qword [rbp + 0x2f], r15
mov ecx, dword [0x1801faecc]
mov rax, qword gs:[0x58]
mov edx, 4
mov rbx, qword [rax + rcx*8]
add rbx, rdx
mov eax, dword [rbx]
cmp dword [0x1801fb8d8], eax
jle 0x18005d670
lea rcx, [0x1801fb8d8]
call fcn.1800e65b0
cmp dword [0x1801fb8d8], 0xffffffff
jne 0x18005d670
xor r8d, r8d
lea rdx, str.RtlCopyMemory
lea rcx, [0x18011e2d8]
call fcn.180059e10
mov qword [0x1801fb780], rax
lea rcx, [0x1801fb8d8]
call fcn.1800e6544
mov qword [rsp + 0x20], 8
lea r9, [rsi + 8]
lea r8, [rbp + 0x2f]
mov rdx, qword [0x1801fb780]
call fcn.18007c2f0
mov rax, qword [rbp + 0x2f]
test rax, rax
je 0x18005d938
mov qword [rbp + 0x37], r15
lea rdi, [rax + 8]
mov eax, dword [rbx]
cmp dword [0x1801fb8d8], eax
jle 0x18005d6ea
lea rcx, [0x1801fb8d8]
call fcn.1800e65b0
cmp dword [0x1801fb8d8], 0xffffffff
jne 0x18005d6ea
xor r8d, r8d
lea rdx, str.RtlCopyMemory
lea rcx, [0x18011e2d8]
call fcn.180059e10
mov qword [0x1801fb780], rax
lea rcx, [0x1801fb8d8]
call fcn.1800e6544
mov qword [rsp + 0x20], 8
mov r9, rdi
lea r8, [rbp + 0x37]
mov rdx, qword [0x1801fb780]
call fcn.18007c2f0
mov rax, qword [rbp + 0x37]
test rax, rax
je 0x18005d938
mov qword [rbp + 0x17], r15
lea rdi, [rax + 0x28]
mov eax, dword [rbx]
cmp dword [0x1801fb8d8], eax
jle 0x18005d763
lea rcx, [0x1801fb8d8]
call fcn.1800e65b0
cmp dword [0x1801fb8d8], 0xffffffff
jne 0x18005d763
xor r8d, r8d
lea rdx, str.RtlCopyMemory
lea rcx, [0x18011e2d8]
call fcn.180059e10
mov qword [0x1801fb780], rax
lea rcx, [0x1801fb8d8]
call fcn.1800e6544
mov qword [rsp + 0x20], 8
mov r9, rdi
lea r8, [rbp + 0x17]
mov rdx, qword [0x1801fb780]
call fcn.18007c2f0
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x18005d938
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
lea rdi, [rax + 0x58]
mov eax, dword [rbx]
cmp dword [0x1801fb8d8], eax
jle 0x18005d7df
lea rcx, [0x1801fb8d8]
call fcn.1800e65b0
cmp dword [0x1801fb8d8], 0xffffffff
jne 0x18005d7df
xor r8d, r8d
lea rdx, str.RtlCopyMemory
lea rcx, [0x18011e2d8]
call fcn.180059e10
mov qword [0x1801fb780], rax
lea rcx, [0x1801fb8d8]
call fcn.1800e6544
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r9, rdi
lea r8, [rbp + 0x1f]
mov rdx, qword [0x1801fb780]
call fcn.18007c2f0
movzx eax, word [rbp + 0x1f]
test ax, ax
je 0x18005d938
mov ecx, eax
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800e6cb4
mov rdi, rax
movzx r8d, word [rbp + 0x1f]
add r8, 2
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
movzx esi, word [rbp + 0x1f]
mov r14, qword [rbp + 0x27]
mov ecx, dword [rbx]
cmp dword [0x1801fb8d8], ecx
jle 0x18005d891
lea rcx, [0x1801fb8d8]
call fcn.1800e65b0
cmp dword [0x1801fb8d8], 0xffffffff
jne 0x18005d891
xor r8d, r8d
lea rdx, str.RtlCopyMemory
lea rcx, [0x18011e2d8]
call fcn.180059e10
mov qword [0x1801fb780], rax
lea rcx, [0x1801fb8d8]
call fcn.1800e6544
mov qword [rsp + 0x20], rsi
mov r9, r14
mov r8, rdi
mov rdx, qword [0x1801fb780]
call fcn.18007c2f0
mov word [rbp + 0x1f], r15w
mov rsi, qword [rbp + 0x17]
mov eax, dword [rbx]
cmp dword [0x1801fb92c], eax
jle 0x18005d8f9
lea rcx, [0x1801fb92c]
call fcn.1800e65b0
cmp dword [0x1801fb92c], 0xffffffff
jne 0x18005d8f9
xor r8d, r8d
lea rdx, str.RtlCopyMemory
lea rcx, [0x18011e2d8]
call fcn.180059e10
mov qword [0x1801fb8b0], rax
lea rcx, [0x1801fb92c]
call fcn.1800e6544
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rbp + 0x1f]
lea r8, [rsi + 0x58]
mov rdx, qword [0x1801fb8b0]
call fcn.18007c2f0
mov rcx, rdi
call fcn.1800e6490
mov al, 1
jmp 0x18005d93a
test rbx, rbx
je 0x18005d938
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1800e63a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret