Function at 0x180006eb0
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1800c1280]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rdi, rcx
lea rdx, [rsp + 0x30]
lea rax, [0x180081b90]
mov r8d, 2
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x180006ef0
cmp dword [0x1800c1268], 2
movups xmm0, xmmword [rax]
mov ecx, dword [rax + 0x50]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmmword [rdx + 0x40], xmm0
mov dword [rdx + 0x50], ecx
movzx ecx, word [rax + 0x54]
mov word [rdx + 0x54], cx
movzx ecx, byte [rax + 0x56]
mov byte [rdx + 0x56], cl
jl 0x1800070c7
movdqa xmm0, xmmword [0x180082070]
lea rcx, [rsp + 0x34]
movdqa xmm4, xmmword [0x180081ff0]
movdqa xmm3, xmmword [0x1800820e0]
movdqa xmm5, xmmword [0x180082020]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0x1a0], xmm6
movdqa xmm6, xmmword [0x180082050]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x150
jl 0x180006fd0
movaps xmm6, xmmword [rsp + 0x1a0]
cmp r8d, 0x157
jge 0x180007114
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0x157
jl 0x1800070e0
movsd xmm0, qword [str.VKS_]
movzx eax, byte [0x180081b80]
movsd qword [rsp + 0x20], xmm0
xor al, 0x3a
xor byte [rsp + 0x21], 0x33
xor byte [rsp + 0x22], 0x34
xor byte [rsp + 0x23], 0x35
xor byte [rsp + 0x24], 0x36
xor byte [rsp + 0x25], 0x37
xor byte [rsp + 0x26], 0x38
xor byte [rsp + 0x27], 0x39
cmp byte [0x1800c1cbd], 0
mov byte [rsp + 0x20], 0x64
mov byte [rsp + 0x28], al
jne 0x180007193
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [0x1800c1cc0]
mov rcx, rax
mov rdx, rbx
call sub.KERNEL32.dll_K32GetModuleInformation
mov byte [0x1800c1cbd], 1
mov rcx, qword [0x1800c1cc0]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call fcn.180007490
lea r9, [rbp + 0x90]
mov edx, 0x48
mov r8d, 0x40
movsxd rbx, dword [rax + 3]
add rbx, rax
mov rax, qword [rbx + 0x47]
lea rcx, [rbx + 7]
mov qword [rdi], rax
mov qword [0x1800c18c0], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rbp + 0x90]
lea rax, [0x1800075c0]
lea r9, [rbp + 0x90]
mov qword [rbx + 0x47], rax
mov edx, 0x48
lea rcx, [rbx + 7]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.18007c090
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret