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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xc0000004
jne 0x140005ad7
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x38], eax
jmp 0x140005a7c
cmp dword [rsp + 0x38], 0
jl 0x140005ae6
cmp qword [rsp + 0x30], 0
jne 0x140005b09
cmp qword [rsp + 0x30], 0
je 0x140005b02
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor al, al
jmp 0x140005da1
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0
jmp 0x140005b30
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
cmp rax, qword [rcx]
jae 0x140005b99
mov eax, dword [rsp + 0x28]
imul rax, rax, 0x28
lea rcx, [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rsp + 0x90], rax
je 0x140005b76
jmp 0x140005b26
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0x98], rax
jne 0x140005b97
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
jmp 0x140005b99
jmp 0x140005b26
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
cmp qword [rsp + 0x50], 0
jne 0x140005bbc
xor al, al
jmp 0x140005da1
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.140004ab0
movzx eax, al
test eax, eax
je 0x140005bf8
cmp qword [rsp + 0x58], 0
jne 0x140005bff
xor al, al
jmp 0x140005da1
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.140004ab0
movzx eax, al
test eax, eax
je 0x140005c3b
cmp qword [rsp + 0x60], 0
jne 0x140005c42
xor al, al
jmp 0x140005da1
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
add rax, 0x28
mov r9d, 8
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.140004ab0
movzx eax, al
test eax, eax
je 0x140005c7e
cmp qword [rsp + 0x40], 0
jne 0x140005c85
xor al, al
jmp 0x140005da1
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.140004ab0
movzx eax, al
test eax, eax
je 0x140005cca
movzx eax, word [rsp + 0x68]
test eax, eax
jne 0x140005cd1
xor al, al
jmp 0x140005da1
movzx eax, word [rsp + 0x68]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140009b90
nop
movzx eax, word [rsp + 0x68]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x48]
call fcn.14000f2b0
mov rcx, qword [rsp + 0x80]
mov r9, rcx
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xd0]
call fcn.140004ab0
movzx eax, al
test eax, eax
jne 0x140005d45
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x48]
call fcn.14000bc10
movzx eax, byte [rsp + 0x20]
jmp 0x140005da1
xor eax, eax
mov word [rsp + 0x68], ax
mov rax, qword [rsp + 0x40]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.140004af0
movzx eax, al
test eax, eax
jne 0x140005d8d
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x48]
call fcn.14000bc10
movzx eax, byte [rsp + 0x21]
jmp 0x140005da1
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x48]
call fcn.14000bc10
movzx eax, byte [rsp + 0x22]
add rsp, 0xb8
pop rdi
pop rsi
ret