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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1800a8040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov r15, r8
movups xmmword [rsp + 0x20], xmm0
mov r14, rdx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, rbx
mov r9d, 0x1000
cmp dword [rsp + 0x48], r9d
cmova r9d, dword [rsp + 0x48]
xor edx, edx
mov esi, r9d
xor edi, edi
div rsi
xor ebp, ebp
mov rbx, rax
imul rbx, rsi
cmp r14, rbx
jae 0x180022e5b
cmp rbx, r15
jae 0x180022e52
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180022e52
cmp dword [rsp + 0x70], 0x10000
jne 0x180022e27
cmp qword [rsp + 0x68], rsi
jb 0x180022e27
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
movq xmm3, rax
punpcklqdq xmm3, xmm3
test rax, rax
jne 0x180023063
mov ecx, ebp
lea r8d, [rbp + 1]
and ecx, 1
mov ebp, r8d
lea rdx, [rcx*2 - 1]
movsxd rcx, r8d
imul rdx, rcx
imul rdx, rsi
add rbx, rdx
cmp r14, rbx
jb 0x180022dc7
test rdi, rdi
jne 0x18002321c
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9, rax
movq xmm3, rax
punpcklqdq xmm3, xmm3
test rax, rax
je 0x180023031
movabs rax, 0xf0f0f0f0f0f0f0f1
mov qword [r9 + 0x78], 0
mul rsi
mov r8d, 1
lea rcx, [r9 + 0x88]
mov r10, rdx
mov qword [r9 + 0x80], rcx
shr r10, 7
lea rax, [r10 - 1]
cmp r10, r8
jbe 0x180023001
cmp rax, 4
jb 0x180022fce
cmp dword [0x1800a8088], 6
jl 0x180022fce
movdqa xmm6, xmmword [0x180098df0]
lea rcx, [r9 + 0x188]
movdqa xmm4, xmmword [0x180098e20]
and eax, 3
movdqa xmm5, xmmword [0x180098e00]
mov rdx, r10
sub rdx, rax
movq xmm2, r8
lea rax, [r8 + 2]
punpcklqdq xmm2, xmm2
lea rcx, [rcx + 0x220]
paddq xmm2, xmm6
add r8, 4
movdqa xmm0, xmm2
paddq xmm2, xmm5
psubq xmm0, xmm5
vpmullq xmm1, xmm0, xmm4
paddq xmm1, xmm3
movq qword [rcx - 0x2a8], xmm1
psrldq xmm1, 8
movq qword [rcx - 0x220], xmm1
vpmullq xmm0, xmm2, xmm4
paddq xmm0, xmm3
movq xmm2, rax
movq qword [rcx - 0x2a0], xmm0
psrldq xmm0, 8
movq qword [rcx - 0x218], xmm0
punpcklqdq xmm2, xmm2
paddq xmm2, xmm6
movdqa xmm0, xmm2
paddq xmm2, xmm5
psubq xmm0, xmm5
vpmullq xmm1, xmm0, xmm4
paddq xmm1, xmm3
movq qword [rcx - 0x198], xmm1
psrldq xmm1, 8
movq qword [rcx - 0x110], xmm1
vpmullq xmm0, xmm2, xmm4
paddq xmm0, xmm3
movq qword [rcx - 0x190], xmm0
psrldq xmm0, 8
movq qword [rcx - 0x108], xmm0
cmp r8, rdx
jb 0x180022f03
cmp r8, r10
jae 0x180023001
imul rax, r8, 0x88
mov rdx, r10
add rax, 0x78
add rax, r9
sub rdx, r8
lea rcx, [rax - 0x100]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
lea rax, [rax + 0x88]
sub rdx, 1
jne 0x180022fe2
mov rax, qword [0x1800d7db8]
imul rcx, r10, 0x88
mov qword [rcx + r9 - 8], rax
mov rdx, qword [0x1800d7db8]
test rdx, rdx
je 0x18002302e
lea rax, [r9 - 0x88]
add rax, rcx
mov qword [rdx + 0x78], rax
mov rax, r9
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002b710
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movabs rax, 0xf0f0f0f0f0f0f0f1
mov qword [rdi + 0x78], 0
mul rsi
lea rax, [rdi + 0x88]
mov r8d, 1
mov r9, rdx
mov qword [rdi + 0x80], rax
shr r9, 7
lea rax, [r9 - 1]
cmp r9, r8
jbe 0x1800231ef
cmp rax, 4
jb 0x1800231af
cmp dword [0x1800a8088], 6
jl 0x1800231af
movdqa xmm6, xmmword [0x180098df0]
lea rcx, [rdi + 0x188]
movdqa xmm4, xmmword [0x180098e20]
and eax, 3
movdqa xmm5, xmmword [0x180098e00]
mov rdx, r9
sub rdx, rax
nop
movq xmm2, r8
lea rax, [r8 + 2]
punpcklqdq xmm2, xmm2
lea rcx, [rcx + 0x220]
paddq xmm2, xmm6
add r8, 4
movdqa xmm0, xmm2
psubq xmm0, xmm5
vpmullq xmm1, xmm0, xmm4
paddq xmm1, xmm3
movdqa xmm0, xmm5
movq qword [rcx - 0x2a8], xmm1
paddq xmm0, xmm2
psrldq xmm1, 8
movq xmm2, rax
movq qword [rcx - 0x220], xmm1
punpcklqdq xmm2, xmm2
paddq xmm2, xmm6
vpmullq xmm1, xmm0, xmm4
paddq xmm1, xmm3
movdqa xmm0, xmm2
movq qword [rcx - 0x2a0], xmm1
psubq xmm0, xmm5
psrldq xmm1, 8
paddq xmm2, xmm5
movq qword [rcx - 0x218], xmm1
vpmullq xmm1, xmm0, xmm4
paddq xmm1, xmm3
movq qword [rcx - 0x198], xmm1
psrldq xmm1, 8
movq qword [rcx - 0x110], xmm1
vpmullq xmm0, xmm2, xmm4
paddq xmm0, xmm3
movq qword [rcx - 0x190], xmm0
psrldq xmm0, 8
movq qword [rcx - 0x108], xmm0
cmp r8, rdx
jb 0x1800230e0
cmp r8, r9
jae 0x1800231ef
imul rcx, r8, 0x88
mov rdx, r9
add rcx, 0x78
add rcx, rdi
sub rdx, r8
nop dword [rax]
nop word [rax + rax]
lea rax, [rcx - 0x100]
mov qword [rcx], rax
lea rax, [rcx + 0x10]
mov qword [rcx + 8], rax
lea rcx, [rcx + 0x88]
sub rdx, 1
jne 0x1800231d0
mov rax, qword [0x1800d7db8]
imul rcx, r9, 0x88
mov qword [rcx + rdi - 8], rax
mov rdx, qword [0x1800d7db8]
test rdx, rdx
je 0x18002321c
lea rax, [rcx - 0x88]
add rax, rdi
mov qword [rdx + 0x78], rax
mov rax, rdi
jmp 0x180023031