Function at 0x1005cfd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
movss xmm2, dword [0x10157ae0]
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
sar edx, 2
lea ecx, [esi - 0x1c]
mov dword [esp + 8], edx
lea ecx, [ecx + eax*4]
add eax, edx
mov edx, dword [esp + 0x1c]
push edi
lea edi, [edx + eax*4]
mov eax, dword [esp + 0xc]
shl eax, 2
mov edx, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
add eax, dword [esp + 0x1c]
nop dword [eax]
movss xmm1, dword [ecx + 8]
sub edx, 0x10
movss xmm0, dword [ecx]
xorps xmm1, xmm2
mulss xmm1, dword [eax + 0xc]
mulss xmm0, dword [eax + 8]
subss xmm1, xmm0
movss dword [edx], xmm1
movss xmm1, dword [ecx]
mulss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax + 8]
mulss xmm0, dword [ecx + 8]
subss xmm1, xmm0
movss dword [edx + 4], xmm1
movss xmm1, dword [ecx + 0x18]
movss xmm0, dword [ecx + 0x10]
xorps xmm1, xmm2
mulss xmm1, dword [eax + 4]
mulss xmm0, dword [eax]
subss xmm1, xmm0
movss dword [edx + 8], xmm1
movss xmm1, dword [eax + 4]
movss xmm0, dword [ecx + 0x18]
mulss xmm1, dword [ecx + 0x10]
sub ecx, 0x20
mulss xmm0, dword [eax]
add eax, 0x10
subss xmm1, xmm0
movss dword [edx + 0xc], xmm1
cmp ecx, esi
jae 0x1005d020
mov eax, dword [esp + 0x10]
mov edx, edi
mov ecx, dword [esp + 0x18]
add eax, 0xfffffff8
mov ecx, dword [ecx + 8]
lea eax, [esi + eax*4]
add ecx, dword [esp + 0x1c]
nop dword [eax]
movss xmm1, dword [eax + 0x10]
sub ecx, 0x10
movss xmm0, dword [eax + 0x18]
mulss xmm1, dword [ecx + 0xc]
mulss xmm0, dword [ecx + 8]
addss xmm1, xmm0
movss dword [edx], xmm1
movss xmm1, dword [eax + 0x10]
mulss xmm1, dword [ecx + 8]
movss xmm0, dword [eax + 0x18]
mulss xmm0, dword [ecx + 0xc]
subss xmm1, xmm0
movss dword [edx + 4], xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx + 4]
movss xmm0, dword [ecx]
mulss xmm0, dword [eax + 8]
addss xmm1, xmm0
movss dword [edx + 8], xmm1
movss xmm1, dword [eax]
movss xmm0, dword [ecx + 4]
mulss xmm0, dword [eax + 8]
sub eax, 0x20
mulss xmm1, dword [ecx]
subss xmm1, xmm0
movss dword [edx + 0xc], xmm1
add edx, 0x10
cmp eax, esi
jae 0x1005d0c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
lea esi, [eax*4]
add ecx, esi
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x14], ecx
call fcn.1005d500
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.1005d350
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x20]
movss xmm2, dword [0x10157ae0]
mov dword [esp + 0x10], edi
mov ecx, dword [eax + 8]
add ecx, esi
add edx, 0xc
mov esi, edi
nop word [eax + eax]
movss xmm1, dword [ecx + 4]
sub esi, 0x10
mulss xmm1, dword [edx - 0xc]
mov eax, dword [esp + 0x10]
movss xmm0, dword [edx - 8]
mulss xmm0, dword [ecx]
subss xmm1, xmm0
movss dword [esi + 0xc], xmm1
movss xmm1, dword [ecx + 4]
mulss xmm1, dword [edx - 8]
movss xmm0, dword [edx - 0xc]
mulss xmm0, dword [ecx]
addss xmm1, xmm0
xorps xmm1, xmm2
movss dword [eax], xmm1
movss xmm1, dword [edx - 4]
mulss xmm1, dword [ecx + 0xc]
movss xmm0, dword [edx]
mulss xmm0, dword [ecx + 8]
subss xmm1, xmm0
movss dword [esi + 8], xmm1
movss xmm1, dword [edx]
mulss xmm1, dword [ecx + 0xc]
movss xmm0, dword [edx - 4]
mulss xmm0, dword [ecx + 8]
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 [ecx + 0x18]
mulss xmm0, dword [edx + 0x10]
subss xmm1, xmm0
movss dword [esi], xmm1
movss xmm1, dword [edx + 0x10]
movss xmm0, dword [ecx + 0x18]
mulss xmm1, dword [ecx + 0x1c]
add ecx, 0x20
mulss xmm0, dword [edx + 0xc]
add edx, 0x20
addss xmm1, xmm0
xorps xmm1, xmm2
movss dword [eax + 0xc], xmm1
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [edx - 0xc]
cmp eax, esi
jb 0x1005d190
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov eax, dword [esp + 0x20]
add edx, 8
mov esi, dword [esp + 0xc]
add edx, eax
add esi, 2
lea esi, [eax + esi*4]
nop word [eax + eax]
movss xmm0, dword [ecx - 4]
lea esi, [esi - 0x10]
sub ecx, 0x10
movss dword [esi + 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 [esi], xmm0
xorps xmm0, xmm2
movss dword [edx - 0x14], xmm0
movss xmm0, dword [ecx + 4]
movss dword [esi - 4], xmm0
xorps xmm0, xmm2
movss dword [edx - 0x10], xmm0
movss xmm0, dword [ecx]
movss dword [esi - 8], xmm0
xorps xmm0, xmm2
movss dword [edx - 0xc], xmm0
cmp eax, ecx
jb 0x1005d2c0
mov edx, dword [esp + 8]
mov ecx, edi
nop dword [eax]
mov eax, dword [edi + 0xc]
lea edi, [edi + 0x10]
sub ecx, 0x10
mov dword [ecx], eax
mov eax, dword [edi - 8]
mov dword [ecx + 4], eax
mov eax, dword [edi - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [edi - 0x10]
mov dword [ecx + 0xc], eax
cmp ecx, edx
ja 0x1005d320
pop edi
pop esi
add esp, 0xc
ret