Function at 0x180004130
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x80
mov rax, qword [0x18009f080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
lea r9, [rsp + 0x58]
xor r14d, r14d
mov ecx, 0x40
xor r8d, r8d
mov dword [rsp + 0x58], r14d
xor edx, edx
mov ebx, r14d
call fcn.180017820
cmp eax, 0xc0000004
jne 0x1800041be
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x58]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x40
mov rbx, rax
call fcn.180017820
cmp eax, 0xc0000004
je 0x180004174
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rdi
test eax, eax
js 0x180004422
test rbx, rbx
je 0x180004438
mov edi, r14d
mov rbp, r14
cmp qword [rbx], rdi
jbe 0x180004242
mov rax, r14
nop dword [rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rbx + rax*8 + 0x10]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rbx + rax*8 + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm1, xmmword [rsp + 0x60]
mov ecx, eax
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x180004232
mov rax, qword [rsp + 0x20]
cmp rax, qword [rsi]
je 0x18000423d
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x1800041f0
jmp 0x180004242
movq rbp, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rbp, rbp
je 0x180004438
lea rdx, [rbp + 8]
mov qword [rsp + 0x60], r14
mov rcx, rsi
call fcn.180002fa0
test rax, rax
je 0x180004438
lea r9, [rsp + 0x60]
mov r8d, 8
mov rdx, rax
mov rcx, rsi
call fcn.180003130
test eax, eax
je 0x180004438
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x180004438
add rdx, 8
mov qword [rsp + 0x60], r14
mov rcx, rsi
call fcn.180002fa0
test rax, rax
je 0x180004438
lea r9, [rsp + 0x60]
mov r8d, 8
mov rdx, rax
mov rcx, rsi
call fcn.180003130
test eax, eax
je 0x180004438
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x180004438
add rdx, 0x28
mov qword [rsp + 0x60], r14
mov rcx, rsi
call fcn.180002fa0
test rax, rax
je 0x180004438
lea r9, [rsp + 0x60]
mov r8d, 8
mov rdx, rax
mov rcx, rsi
call fcn.180003130
test eax, eax
je 0x180004438
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180004438
lea rdi, [rax + 0x58]
xorps xmm0, xmm0
mov rdx, rdi
mov rcx, rsi
movups xmmword [rsp + 0x60], xmm0
call fcn.180002fa0
test rax, rax
je 0x180004438
lea r9, [rsp + 0x60]
mov r8d, 0x10
mov rdx, rax
mov rcx, rsi
call fcn.180003130
test eax, eax
je 0x180004438
movzx eax, word [rsp + 0x60]
test ax, ax
je 0x180004438
mov ecx, eax
mov ebp, eax
shr rcx, 1
mov eax, 2
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.180018db4
lea r8, [rbp + 2]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1800425f0
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call fcn.180002fa0
test rax, rax
je 0x180004438
mov r9, rbx
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call fcn.180003130
test eax, eax
je 0x180004438
mov rdx, rdi
mov word [rsp + 0x60], r14w
mov rcx, rsi
call fcn.180002fa0
test rax, rax
je 0x180004438
lea r9, [rsp + 0x60]
mov r8d, 0x10
mov rdx, rax
mov rcx, rsi
call fcn.180003270
test eax, eax
je 0x180004438
mov rdx, rbx
lea rcx, str.___MmUnloadedDrivers_Cleaned:__ws_n
call fcn.180001160
mov rcx, rbx
call fcn.1800188e0
mov al, 1
jmp 0x18000443a
test rbx, rbx
je 0x180004438
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rdi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800188c0
add rsp, 0x80
pop r14
pop rsi
pop rbx
ret