Function at 0x18040cb10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rbp + 0x150], rax
movups xmm0, xmmword [rcx]
mov eax, dword [rcx + 0x68]
mov rbx, rcx
movups xmm1, xmmword [rcx + 0x10]
mov r14, r8
mov r15, rdx
movaps xmmword [rbp], xmm0
movups xmm0, xmmword [rcx + 0x20]
mov dword [rbp + 0x68], eax
movaps xmmword [rbp + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [rbp + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movaps xmmword [rbp + 0x40], xmm0
movsd xmm0, qword [rcx + 0x60]
lea rcx, [rbp]
movsd qword [rbp + 0x60], xmm0
movaps xmmword [rbp + 0x50], xmm1
call fcn.18040c890
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x68]
lea rdx, [rbp]
movups xmm1, xmmword [rbx + 0x10]
lea rcx, [rbp + 0x70]
mov dword [rbp + 0xd8], eax
movaps xmmword [rbp + 0x70], xmm0
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rbp + 0x80], xmm1
movups xmm1, xmmword [rbx + 0x30]
movaps xmmword [rbp + 0x90], xmm0
movups xmm0, xmmword [rbx + 0x40]
movaps xmmword [rbp + 0xa0], xmm1
movups xmm1, xmmword [rbx + 0x50]
movaps xmmword [rbp + 0xb0], xmm0
movsd xmm0, qword [rbx + 0x60]
movsd qword [rbp + 0xd0], xmm0
movaps xmmword [rbp + 0xc0], xmm1
call fcn.18040c1f0
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x6c]
call fcn.1803d2e10
mov r13d, 1
test r14, r14
je 0x18040cdb5
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x268], rdi
mov qword [rsp + 0x260], r12
dec r14
mov r12d, 6
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.18040c890
lea rcx, [rsp + 0x20]
call fcn.18040c890
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x68]
movzx ecx, r12b
movups xmm1, xmmword [rbx + 0x10]
movzx edi, byte [r15]
lea r8, [rbp]
movaps xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
movups xmm0, xmmword [rbx + 0x20]
shr edi, cl
mov r9d, 0x6c
movaps xmmword [rbp - 0x60], xmm1
and edi, 3
movups xmm1, xmmword [rbx + 0x30]
mov esi, edi
mov dword [rbp - 8], eax
movaps xmmword [rbp - 0x50], xmm0
neg esi
movups xmm0, xmmword [rbx + 0x40]
mov eax, dword [rbp - 0x78]
or esi, edi
movaps xmmword [rbp - 0x40], xmm1
movups xmm1, xmmword [rbx + 0x50]
mov dword [rbp + 0x148], eax
mov eax, edi
movaps xmmword [rbp - 0x30], xmm0
xor eax, 2
movsd xmm0, qword [rbx + 0x60]
mov ecx, eax
movsd qword [rbp - 0x10], xmm0
neg ecx
movaps xmm0, xmmword [rsp + 0x20]
or ecx, eax
movaps xmmword [rbp + 0xe0], xmm0
not ecx
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rbp + 0x100], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0xf0], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x120], xmm0
movsd xmm0, qword [rbp - 0x80]
movaps xmmword [rbp + 0x110], xmm1
movaps xmm1, xmmword [rsp + 0x70]
shr ecx, 0x1f
movsd qword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm1
shr esi, 0x1f
call fcn.18040f1a0
xor edi, 3
lea r8, [rbp + 0x70]
mov ecx, edi
lea rdx, [rbp - 0x70]
neg ecx
mov r9d, 0x6c
or ecx, edi
not ecx
shr ecx, 0x1f
call fcn.18040f1a0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xe0]
call fcn.18040c1f0
mov ecx, esi
lea r8, [rbp - 0x70]
and ecx, r13d
lea rdx, [rsp + 0x20]
mov r9d, 0x6c
call fcn.18040f1a0
mov ecx, r13d
lea r8, [rbp + 0xe0]
not ecx
lea rdx, [rsp + 0x20]
and ecx, esi
mov r9d, 0x6c
call fcn.18040f1a0
not esi
and r13d, esi
sub r12d, 2
jns 0x18040cc30
inc r15
test r14, r14
jne 0x18040cc22
mov r12, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x268]
mov rsi, qword [rsp + 0x2b0]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
mov eax, dword [rbp - 0x78]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x30], xmm1
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x40], xmm0
movsd xmm0, qword [rbp - 0x80]
movups xmmword [rbx + 0x50], xmm1
movsd qword [rbx + 0x60], xmm0
mov dword [rbx + 0x68], eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x270
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret