Function at 0x6603f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
push esi
push edi
mov edi, edx
mov dword [esp + 0x20], ecx
mov edx, ecx
mov dword [esp + 0x3c], edi
imul edx, edi
mov dword [esp + 0x10], edx
test edi, edi
jle 0x660479
mov esi, dword [esp + 0x4c]
lea edi, [ecx*8]
lea eax, [ecx*4]
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, ecx
lea edx, [ecx + edx*4]
mov ecx, esi
add ecx, 0xfffffffc
add edi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
movss xmm0, dword [edx]
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [eax]
subss xmm0, dword [edx]
add eax, dword [esp + 0x30]
add edx, dword [esp + 0x30]
add esi, dword [esp + 0x34]
movss dword [edi], xmm0
add edi, dword [esp + 0x34]
sub dword [esp + 0x38], 1
jne 0x660442
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
cmp ecx, 2
jl 0x660651
je 0x6605ed
mov dword [esp + 0x2c], 0
test edi, edi
jle 0x6605da
mov esi, dword [esp + 0x48]
lea eax, [ecx*4]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
lea eax, [ecx*8]
mov dword [esp + 0x1c], eax
lea eax, [esi + edx*4]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
lea eax, [ecx*8]
add eax, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], esi
add dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x40]
cmp ecx, 2
jle 0x6605ab
mov edx, dword [esp + 0x34]
mov esi, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0x28], eax
lea eax, [ecx - 3]
mov ecx, dword [esp + 8]
shr eax, 1
inc eax
mov dword [esp + 0x24], eax
nop word [eax + eax]
mov eax, dword [esp + 0x28]
add ecx, 8
add edx, 8
add edi, 8
sub esi, 8
movss xmm5, dword [eax - 4]
movss xmm2, dword [eax]
movaps xmm4, xmm5
movss xmm0, dword [ecx]
add eax, 8
sub dword [esp + 0x24], 1
mulss xmm5, dword [ecx]
mov dword [esp + 0x28], eax
mulss xmm4, dword [ecx - 4]
mulss xmm0, xmm2
mulss xmm2, dword [ecx - 4]
addss xmm4, xmm0
subss xmm5, xmm2
movaps xmm0, xmm5
addss xmm0, dword [edx]
movss dword [edi], xmm0
subss xmm5, dword [edx]
movss dword [esi], xmm5
movss xmm0, dword [edx - 4]
addss xmm0, xmm4
movss dword [edi - 4], xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm4
movss dword [esi - 4], xmm0
jne 0x660520
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
add edi, dword [esp + 0x1c]
add esi, dword [esp + 0x18]
add edx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
sub dword [esp + 0x14], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
jne 0x6604e2
mov edi, dword [esp + 0x3c]
mov eax, ecx
and eax, 0x80000001
jns 0x6605e8
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x660651
lea esi, [ecx - 1]
mov edx, esi
add esi, dword [esp + 0x10]
test edi, edi
jle 0x660651
movss xmm1, dword [0x6dbeb0]
lea eax, [ecx*8]
mov dword [esp + 8], eax
lea eax, [ecx*4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
lea edx, [eax + edx*4]
lea esi, [eax + esi*4]
nop dword [eax]
movss xmm0, dword [esi]
add esi, dword [esp + 0xc]
xorps xmm0, xmm1
movss dword [ecx], xmm0
mov eax, dword [edx]
add edx, dword [esp + 0xc]
mov dword [ecx - 4], eax
add ecx, dword [esp + 8]
sub edi, 1
jne 0x660630
pop edi
pop esi
add esp, 0x3c
ret