Function at 0x5aa120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movss xmm2, dword [0x736fd0]
add eax, 0xffffffe4
push esi
mov ecx, dword [ecx]
mov esi, ecx
sar esi, 1
sar ecx, 2
mov dword [ebp - 0xc], esi
push edi
lea edx, [esi*4]
mov dword [ebp - 4], edx
add edx, eax
lea eax, [ecx + esi]
mov esi, dword [ebp + 0x10]
shl ecx, 2
mov dword [ebp - 8], ecx
lea esi, [esi + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov edi, esi
mov eax, dword [eax + 8]
add eax, ecx
mov ecx, dword [ebp + 0xc]
movss xmm1, dword [edx + 8]
sub edi, 0x10
mulss xmm1, dword [eax + 0xc]
movss xmm0, dword [edx]
mulss xmm0, dword [eax + 8]
xorps xmm1, xmm2
subss xmm1, xmm0
movss dword [edi], xmm1
movss xmm1, dword [edx]
mulss xmm1, dword [eax + 0xc]
movss xmm0, dword [edx + 8]
mulss xmm0, dword [eax + 8]
subss xmm1, xmm0
movss dword [edi + 4], xmm1
movss xmm1, dword [edx + 0x18]
mulss xmm1, dword [eax + 4]
movss xmm0, dword [edx + 0x10]
mulss xmm0, dword [eax]
xorps xmm1, xmm2
subss xmm1, xmm0
movss dword [edi + 8], xmm1
movss xmm1, dword [eax + 4]
movss xmm0, dword [edx + 0x18]
mulss xmm1, dword [edx + 0x10]
sub edx, 0x20
mulss xmm0, dword [eax]
add eax, 0x10
subss xmm1, xmm0
movss dword [edi + 0xc], xmm1
cmp edx, ecx
jae 0x5aa170
mov eax, dword [ebp - 4]
mov edi, ecx
mov ecx, dword [ebp + 8]
add eax, 0xffffffe0
add eax, edi
mov edx, esi
mov ecx, dword [ecx + 8]
add ecx, dword [ebp - 8]
nop dword [eax + eax]
movss xmm1, dword [ecx - 8]
sub ecx, 0x10
mulss xmm1, dword [eax + 0x18]
movss xmm0, dword [ecx + 0xc]
mulss xmm0, dword [eax + 0x10]
addss xmm1, xmm0
movss dword [edx], xmm1
movss xmm1, dword [ecx + 8]
mulss xmm1, dword [eax + 0x10]
movss xmm0, dword [ecx + 0xc]
mulss xmm0, dword [eax + 0x18]
subss xmm1, xmm0
movss dword [edx + 4], xmm1
movss xmm1, dword [eax]
movss xmm0, dword [eax + 8]
mulss xmm1, dword [ecx + 4]
mulss xmm0, dword [ecx]
addss xmm1, xmm0
movss dword [edx + 8], xmm1
movss xmm1, dword [eax]
movss xmm0, dword [eax + 8]
sub eax, 0x20
mulss xmm1, dword [ecx]
mulss xmm0, dword [ecx + 4]
subss xmm1, xmm0
movss dword [edx + 0xc], xmm1
add edx, 0x10
cmp eax, edi
jae 0x5aa210
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
push dword [ebp - 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.005aa630
push dword [ebp + 0x10]
push edi
call fcn.005aa480
mov ecx, dword [edi + 8]
add esp, 0x14
mov edi, dword [ebp + 0x10]
mov eax, esi
add ecx, dword [ebp - 4]
movss xmm2, dword [0x736fd0]
lea edx, [edi + 0xc]
nop dword [eax]
nop dword [eax + eax]
movss xmm1, dword [ecx + 4]
sub esi, 0x10
mulss xmm1, dword [edx - 0xc]
movss xmm0, dword [edx - 8]
mulss xmm0, dword [ecx]
subss xmm1, xmm0
movss dword [esi + 0xc], xmm1
movss xmm1, dword [edx - 8]
mulss xmm1, dword [ecx + 4]
movss xmm0, dword [ecx]
mulss xmm0, dword [edx - 0xc]
addss xmm1, xmm0
xorps xmm1, xmm2
movss dword [eax], xmm1
movss xmm1, dword [edx - 4]
mulss xmm1, dword [ecx + 0xc]
movss xmm0, dword [ecx + 8]
mulss xmm0, dword [edx]
subss xmm1, xmm0
movss dword [esi + 8], xmm1
movss xmm1, dword [edx - 4]
mulss xmm1, dword [ecx + 8]
movss xmm0, dword [ecx + 0xc]
mulss xmm0, dword [edx]
addss xmm1, xmm0
xorps xmm1, xmm2
movss dword [eax + 4], xmm1
movss xmm1, dword [edx + 4]
mulss xmm1, dword [ecx + 0x14]
movss xmm0, dword [edx + 8]
mulss xmm0, dword [ecx + 0x10]
subss xmm1, xmm0
movss dword [esi + 4], xmm1
movss xmm1, dword [edx + 8]
mulss xmm1, dword [ecx + 0x14]
movss xmm0, dword [edx + 4]
mulss xmm0, dword [ecx + 0x10]
addss xmm1, xmm0
xorps xmm1, xmm2
movss dword [eax + 8], xmm1
movss xmm1, dword [edx + 0xc]
mulss xmm1, dword [ecx + 0x1c]
movss xmm0, dword [edx + 0x10]
mulss xmm0, dword [ecx + 0x18]
subss xmm1, xmm0
movss dword [esi], xmm1
movss xmm1, dword [edx + 0x10]
movss xmm0, dword [edx + 0xc]
add edx, 0x20
mulss xmm1, dword [ecx + 0x1c]
mulss xmm0, dword [ecx + 0x18]
add ecx, 0x20
addss xmm1, xmm0
xorps xmm1, xmm2
movss dword [eax + 0xc], xmm1
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [edx - 0xc]
cmp eax, esi
mov eax, dword [ebp + 8]
jb 0x5aa2d0
mov esi, dword [ebp - 0x10]
lea edx, [edi + 8]
add edx, dword [ebp - 8]
mov eax, 2
sub eax, dword [ebp - 0xc]
mov ecx, esi
lea edi, [ecx + eax*4]
movss xmm0, dword [ecx - 4]
lea edi, [edi - 0x10]
sub ecx, 0x10
movss dword [edi + 4], xmm0
xorps xmm0, xmm2
lea edx, [edx + 0x10]
movss dword [edx - 0x18], xmm0
lea eax, [edx - 8]
movss xmm0, dword [ecx + 8]
movss dword [edi], xmm0
xorps xmm0, xmm2
movss dword [edx - 0x14], xmm0
movss xmm0, dword [ecx + 4]
movss dword [edi - 4], xmm0
xorps xmm0, xmm2
movss dword [edx - 0x10], xmm0
movss xmm0, dword [ecx]
movss dword [edi - 8], xmm0
xorps xmm0, xmm2
movss dword [edx - 0xc], xmm0
cmp eax, ecx
jb 0x5aa3f1
mov edx, dword [ebp + 0xc]
mov ecx, esi
nop dword [eax]
mov eax, dword [esi + 0xc]
lea esi, [esi + 0x10]
sub ecx, 0x10
mov dword [ecx], eax
mov eax, dword [esi - 8]
mov dword [ecx + 4], eax
mov eax, dword [esi - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi - 0x10]
mov dword [ecx + 0xc], eax
cmp ecx, edx
ja 0x5aa450
pop edi
pop esi
mov esp, ebp
pop ebp
ret