Function at 0x18004fbd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x1800d3040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsi - 0x40000000]
cmp rdx, rax
mov r13, rdx
cmovbe r13, rax
cmp rsi, 0x40000001
cmovb r13, rax
lea rax, [rsi + 0x40000000]
cmp rax, rcx
mov r14, rcx
cmovb r14, rax
add r14, 0xfffffffffffff001
mov rax, qword [0x1800f2280]
test rax, rax
jne 0x18004fd2f
mov rcx, rsi
lea rdi, [rsp + 0x50]
mov r15, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp r13, rcx
ja 0x18004fd54
mov eax, dword [rsp + 0x48]
mov ebp, eax
mov rax, rcx
shr rax, 0x20
je 0x18004fc90
mov rax, rcx
xor edx, edx
div rbp
mov rax, rdx
jmp 0x18004fc9b
mov r8d, ebp
mov eax, ecx
xor edx, edx
div ebp
mov eax, edx
add rax, rbp
sub rcx, rax
cmp rcx, r13
jb 0x18004fd54
mov rbx, rcx
nop dword [rax]
mov r8d, 0x30
mov rcx, rbx
mov rdx, rdi
call r15
test rax, rax
je 0x18004fd54
cmp dword [rsp + 0x70], 0x10000
je 0x18004fcf0
mov rax, qword [rsp + 0x58]
sub rax, rbp
jb 0x18004fd54
mov rbx, rax
cmp rax, r13
jae 0x18004fcb0
jmp 0x18004fd54
test rbx, rbx
je 0x18004fd54
mov edx, 0x1000
mov rcx, rbx
mov r8d, 0x3000
mov r9d, 0x40
call r12
mov rcx, rbx
test rax, rax
je 0x18004fc67
jmp 0x18004fe58
mov rcx, qword [rax]
mov rax, rcx
test rcx, rcx
je 0x18004fc51
cmp r13, rax
ja 0x18004fd20
cmp r14, rax
jbe 0x18004fd20
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18004fd20
mov rsi, rcx
mov rdx, qword [rsi]
mov qword [rax + 8], rdx
inc dword [rax + 0x10]
jmp 0x18004feb0
mov rcx, rsi
lea rsi, [rsp + 0x80]
cmp r14, rcx
jb 0x18004feae
mov eax, dword [rsp + 0x48]
mov ebx, eax
mov rax, rcx
shr rax, 0x20
je 0x18004fd90
mov rax, rcx
xor edx, edx
div rbx
mov rax, rdx
jmp 0x18004fd9b
mov r8d, ebx
mov eax, ecx
xor edx, edx
div ebx
mov eax, edx
mov rdx, rax
mov rdi, rcx
add rdi, rbx
sub rdi, rax
cmp rdi, r14
ja 0x18004feae
mov ecx, ebx
dec ecx
mov r13d, ecx
jmp 0x18004fdda
mov rax, rcx
xor edx, edx
div rbx
mov rax, rdx
sub rcx, rax
mov rdi, rcx
cmp rcx, r14
ja 0x18004feae
mov r8d, 0x30
mov rcx, rdi
mov rdx, rsi
call r15
test rax, rax
je 0x18004feae
cmp dword [rsp + 0xa0], 0x10000
je 0x18004fe30
mov rcx, qword [rsp + 0x80]
add rcx, r13
add rcx, qword [rsp + 0x98]
mov rax, rcx
shr rax, 0x20
jne 0x18004fdc0
mov r8d, ebx
mov eax, ecx
xor edx, edx
div ebx
mov eax, edx
jmp 0x18004fdcb
test rdi, rdi
je 0x18004feae
mov edx, 0x1000
mov rcx, rdi
mov r8d, 0x3000
mov r9d, 0x40
call r12
mov rcx, rdi
test rax, rax
je 0x18004fd5f
lea r9, [rax + 0x40]
mov dword [rax + 0x10], 0
mov edx, 0x40
xor r8d, r8d
nop dword [rax + rax]
mov qword [r9], r8
mov qword [rax + 8], r9
lea rsi, [r9 + 0x40]
mov r10, rdx
add r10, 0x40
mov rdx, r10
mov r8, r9
mov r9, rsi
cmp r10, 0xfc1
jb 0x18004fe70
mov rdx, qword [0x1800f2280]
mov qword [rax], rdx
mov qword [0x1800f2280], rax
add rsi, 0xffffffffffffffc0
jmp 0x18004fd45
xor esi, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18007d5f0
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret