Function at 0x1801655d0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [rdx + 8]
mov rsi, r9
mov r10, r8
mov r14, rdx
mov r15, rcx
cmp qword [rdx], rax
jne 0x18016564b
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x180165631
mov qword [r15], rax
mov rax, r15
mov byte [r15 + 8], 1
add rsp, 0xa8
pop r15
pop r14
pop rsi
pop rbp
ret
mov byte [r15], 0
mov rax, r15
mov byte [r15 + 8], 0
add rsp, 0xa8
pop r15
pop r14
pop rsi
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xa0], rdi
lea rcx, [rbp - 9]
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r13
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14]
mov r13, 0xffffffffffffffff
mov rcx, qword [rax]
xor eax, eax
mov r12, rcx
sub r12, rsi
cmp rcx, rsi
cmovbe r12, rax
mov rax, r13
sub rax, rcx
cmp rax, rsi
jbe 0x1801656af
lea r13, [rcx + rsi]
cmp r12, qword [rbp - 1]
xorps xmm0, xmm0
mov eax, dword [rbp + 0x1f]
cmovb r12, qword [rbp - 1]
cmp qword [rbp + 7], r13
movups xmmword [rbp - 0x39], xmm0
cmovb r13, qword [rbp + 7]
lea rdi, [rax - 1]
add rdi, rcx
dec rax
not rax
and rdi, rax
mov rbx, rdi
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
cmp rdi, r12
jbe 0x1801657d3
mov qword [rbp + 0x6f], rsi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r14 + 8]
mov r8, qword [r14]
mov qword [rbp - 0x49], rbx
cmp r8, r9
je 0x180165738
mov rdx, qword [r8]
mov rax, rbx
sub rax, rdx
mov rcx, rdx
sub rcx, rbx
cmp rbx, rdx
cmovbe rax, rcx
cmp rax, rsi
ja 0x1801657d3
add r8, 8
cmp r8, r9
jne 0x180165710
mov r8d, 0x30
lea rdx, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801657d3
cmp dword [rbp - 0x19], 0x10000
jne 0x1801657b7
mov r9, qword [r14 + 8]
mov r8, qword [r14]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rbx
cmp r8, r9
je 0x180165795
mov rdx, qword [r8]
mov rax, rbx
sub rax, rdx
mov rcx, rdx
sub rcx, rbx
cmp rbx, rdx
cmovbe rax, rcx
cmp rax, rsi
ja 0x1801657b7
add r8, 8
cmp r8, r9
jne 0x180165771
mov rdx, qword [rbp + 0x77]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1801658d9
mov ebx, dword [rbp + 0x1f]
mov rax, qword [rbp - 0x31]
dec rbx
dec rax
not rbx
and rbx, rax
cmp rbx, r12
ja 0x180165700
cmp rdi, r13
jae 0x18016589f
mov qword [rbp + 0x6f], rsi
mov r9, qword [r14 + 8]
mov r8, qword [r14]
mov qword [rbp - 0x41], rdi
cmp r8, r9
je 0x180165818
mov rdx, qword [r8]
mov rax, rdi
sub rax, rdx
mov rcx, rdx
sub rcx, rdi
cmp rdi, rdx
cmovbe rax, rcx
cmp rax, rsi
ja 0x18016589f
add r8, 8
cmp r8, r9
jne 0x1801657f0
mov r8d, 0x30
lea rdx, [rbp - 0x39]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18016589f
cmp dword [rbp - 0x19], 0x10000
jne 0x180165892
mov r9, qword [r14 + 8]
mov r8, qword [r14]
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x49], rdi
cmp r8, r9
je 0x180165874
nop dword [rax]
mov rdx, qword [r8]
mov rax, rdi
sub rax, rdx
mov rcx, rdx
sub rcx, rdi
cmp rdi, rdx
cmovbe rax, rcx
cmp rax, rsi
ja 0x180165892
add r8, 8
cmp r8, r9
jne 0x180165850
mov rdx, qword [rbp + 0x77]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1801658d9
add rdi, qword [rbp - 0x21]
cmp rdi, r13
jb 0x1801657e0
mov byte [r15], 1
mov byte [r15 + 8], 0
mov r12, qword [rsp + 0x98]
mov rax, r15
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x90]
add rsp, 0xa8
pop r15
pop r14
pop rsi
pop rbp
ret
mov qword [r15], rax
mov byte [r15 + 8], 1
jmp 0x1801658a8