Function at 0x1800aa95c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf20]
mov eax, 0x1020
call fcn.18026a280
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1068], rbx
mov rsi, rdx
xor ebx, ebx
cmp byte [0x1802c2258], bl
jne 0x1800aa9a6
lea eax, [rbx + 1]
jmp 0x1800aaf0b
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
mov r12d, 0x20
mov r8d, r12d
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rcx, [rbp + 0x600]
call fcn.18007ddc4
nop
lea rdx, [0x1802c21f8]
lea rcx, [rbp + 0x600]
call fcn.18007df10
test al, al
je 0x1800aaef9
mov rdx, qword [0x1802c21f0]
lea rcx, [rbp + 0x600]
call fcn.180174f04
test al, al
je 0x1800aaef9
lea r14d, [r12 + 0x21]
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea r13, [0x1802c2238]
mov rdx, r13
cmp qword [0x1802c2250], 0x10
cmovae rdx, qword [0x1802c2238]
lea r8, [rbp]
lea rcx, [rbp + 0x600]
call fcn.180173504
test al, al
je 0x1800aaef9
mov dword [rbp + 0xf60], ebx
mov r9d, dword [rbp + 0x160]
mov byte [rsp + 0x28], bl
lea edi, [r12 - 0x1f]
mov dword [rsp + 0x20], edi
lea r8d, [r12 - 0x1c]
lea rdx, [rbp + 0xf60]
lea rcx, [rbp + 0x600]
call fcn.1801755f8
test al, al
je 0x1800aaef9
mov edx, dword [rbp + 0xf60]
lea rcx, [rbp + 0x600]
call fcn.18017390c
mov r9, rax
mov byte [rsp + 0x28], bl
mov dword [rsp + 0x20], edi
mov r8d, r12d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x600]
call fcn.1801755f8
test al, al
je 0x1800aaef9
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, dil
call fcn.18009463c
test al, al
je 0x1800aabbe
lea rcx, [rbp + 0x170]
call fcn.18007ddc4
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x170]
call fcn.18007e004
xor edx, edx
test al, al
jne 0x1800aab2c
lea r9, [rsp + 0x30]
xor r8d, r8d
call fcn.18009463c
jmp 0x1800aabb1
mov r8, r14
lea rcx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r13
cmp qword [0x1802c2250], 0x10
cmovae rdx, qword [0x1802c2238]
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x170]
call fcn.18017344c
test al, al
je 0x1800aab9e
mov edx, dword [rbp + 0x158]
mov eax, esi
mov rcx, qword [0x1802c21f0]
sub eax, ecx
cmp edx, eax
je 0x1800aab9e
mov rax, qword [0x1802c2260]
test rax, rax
je 0x1800aab8b
mov byte [rax], dil
mov rcx, qword [0x1802c21f0]
lea r8, [rcx + rdx]
mov rdx, r13
lea rcx, [rbp + 0x170]
call fcn.180179ea0
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.18009463c
test al, al
jne 0x1800aac29
lea rcx, [rbp + 0x170]
call fcn.180172968
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1800aaef9
mov rcx, qword [rsp + 0x40]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
mov r15d, 0x1000
cmp rdx, r15
jb 0x1800aaef1
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800aaef1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x170]
call fcn.180172968
nop
movabs r14, 0x2aaaaaaaaaaaaaab
mov r15d, 0x1000
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1800aac99
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r14
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r15
jb 0x1800aac91
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800aac22
mov rcx, r8
call fcn.180269534
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
mov r8, qword [0x1802c21f0]
mov dl, dil
call fcn.18009463c
test al, al
je 0x1800aae9f
lea rcx, [rbp + 0xa90]
call fcn.18007ddc4
nop
mov byte [rsp + 0x20], dil
xor r9d, r9d
mov r8, qword [0x1802c21f0]
xor edx, edx
lea rcx, [rbp + 0xa90]
call fcn.18017711c
xor edx, edx
test al, al
je 0x1800aae80
lea r8d, [rdx + 0x41]
lea rcx, [rbp + 0x178]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r13
cmp qword [0x1802c2250], 0x10
cmovae rdx, qword [0x1802c2238]
lea r8, [rbp + 0x170]
lea rcx, [rbp + 0xa90]
call fcn.180173504
test al, al
je 0x1800aae7e
mov r8d, dword [rbp + 0x158]
cmp r8d, dword [rbp + 0x2c8]
je 0x1800aad6c
cmp byte [rbp + 0x1bc], bl
jne 0x1800aad6c
mov rax, qword [0x1802c2260]
test rax, rax
je 0x1800aad5d
mov byte [rax], dil
mov rdx, r13
lea rcx, [rbp + 0xa90]
call fcn.18017a000
lea r9, [rsp + 0x30]
mov r8, qword [0x1802c21f0]
xor edx, edx
call fcn.18009463c
test al, al
je 0x1800aae92
lea rcx, [rbp + 0xa90]
call fcn.180172968
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1800aadeb
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r14
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r15
jb 0x1800aade3
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800aaeea
mov rcx, r8
call fcn.180269534
mov r8, r12
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x1800aae6a
mov rax, qword [0x1802c2260]
test rax, rax
je 0x1800aae11
mov byte [rax], dil
lea r9, [rbp + 0xf60]
mov r8d, 0x40
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800aae6a
mov rax, rbx
mov cl, byte [rsp + rax + 0x48]
cmp byte [rsp + rax + 0x68], cl
je 0x1800aae3e
mov byte [rax + rsi], cl
add rax, rdi
cmp rax, r12
jb 0x1800aae31
lea r9, [rbp + 0xf70]
mov r8d, dword [rbp + 0xf60]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne bl
jmp 0x1800aaef9
mov rax, qword [0x1802c2260]
test rax, rax
je 0x1800aaefc
mov byte [rax], bl
jmp 0x1800aaefc
xor edx, edx
lea r9, [rsp + 0x30]
mov r8, qword [0x1802c21f0]
call fcn.18009463c
nop
lea rcx, [rbp + 0xa90]
call fcn.180172968
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1800aaef9
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r14
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r15
jb 0x1800aaef1
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800aaef1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.180269534
mov dil, bl
lea rcx, [rbp + 0x600]
call fcn.180172968
mov al, dil
mov rbx, qword [rsp + 0x1068]
add rsp, 0x1020
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret