Function at 0x580c00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movaps xmmword [rsp + 0x120], xmm6
lea rax, [rcx + 8]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0xc8], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0xd8], rax
mov rdi, qword [rcx]
movzx eax, byte [0x00865188]
cmp al, 1
jne 0x580c61
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.00580f20
jmp 0x580edc
mov rsi, rcx
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
mov eax, ecx
and eax, 3
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
cmp rcx, 4
jb 0x580dba
mov r15, qword [rsp + 0x20]
shr r15, 2
xor ebp, ebp
xorps xmm6, xmm6
lea rbx, [rsp + 0x80]
lea r14, [rsp + 0x30]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov eax, dword [rsi + 0x18]
mov r9d, dword [rsi + 0x14]
mov ecx, dword [rsi + 8]
mov edx, dword [rsi + 0xc]
mov r8d, dword [rsi + 0x10]
lea r10d, [r9 + rax]
bswap r10d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x3c], r10d
lea r10d, [r9 + rax + 1]
bswap r10d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x4c], r10d
lea r10d, [r9 + rax + 2]
bswap r10d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x5c], r10d
add r9d, eax
add r9d, 3
bswap r9d
add eax, 4
mov dword [rsi + 0x18], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], r8d
mov dword [rsp + 0x6c], r9d
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.0041c8e0
movups xmm0, xmmword [r13 + rbp]
movups xmm1, xmmword [r13 + rbp + 0x10]
movups xmm2, xmmword [r13 + rbp + 0x20]
movups xmm3, xmmword [r13 + rbp + 0x30]
xorps xmm0, xmmword [rsp + 0x80]
xorps xmm1, xmmword [rsp + 0x90]
xorps xmm2, xmmword [rsp + 0xa0]
xorps xmm3, xmmword [rsp + 0xb0]
movups xmmword [r12 + rbp], xmm0
movups xmmword [r12 + rbp + 0x10], xmm1
movups xmmword [r12 + rbp + 0x20], xmm2
movups xmmword [r12 + rbp + 0x30], xmm3
add rbp, 0x40
dec r15
jne 0x580cb0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x580edc
movabs rax, 0xffffffffffffffc
mov rcx, qword [rsp + 0x20]
and rcx, rax
shl rcx, 4
add r13, rcx
add r12, rcx
shl rbp, 4
xor r14d, r14d
lea rbx, [rsp + 0x80]
lea r15, [rsp + 0x30]
nop dword [rax + rax]
mov eax, dword [rsi + 0x18]
mov ecx, dword [rsi + 0x10]
mov edx, dword [rsi + 0x14]
add edx, eax
bswap edx
mov r8, qword [rsi + 8]
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x7c], edx
inc eax
mov dword [rsi + 0x18], eax
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov rcx, rbx
lea rdx, [rsp + 0x70]
call fcn.00401560
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.0041c8e0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + r14 + 0xe0], xmm0
add r14, 0x10
cmp rbp, r14
jne 0x580e20
movups xmm0, xmmword [r13]
xorps xmm0, xmmword [rsp + 0xe0]
movups xmmword [r12], xmm0
mov rax, qword [rsp + 0x28]
cmp eax, 1
je 0x580edc
movups xmm0, xmmword [r13 + 0x10]
xorps xmm0, xmmword [rsp + 0xf0]
movups xmmword [r12 + 0x10], xmm0
cmp eax, 2
je 0x580edc
movups xmm0, xmmword [r13 + 0x20]
xorps xmm0, xmmword [rsp + 0x100]
movups xmmword [r12 + 0x20], xmm0
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret