Function at 0x507e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov edx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, edx
imul eax, esi
test esi, esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
jle 0x507f09
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [edx*4]
mov esi, dword [ebp - 0xc]
movss xmm1, dword [edi + ecx*4]
shl ecx, 2
add eax, ecx
movss xmm2, dword [esi]
mov esi, dword [ebp - 0x10]
addss xmm2, dword [esi]
mov esi, dword [ebp - 8]
addss xmm1, dword [esi]
mov esi, dword [ebp + 0x14]
movaps xmm0, xmm1
subss xmm1, xmm2
addss xmm0, xmm2
movss dword [esi + ecx*4], xmm0
lea ecx, [ecx + edx*2]
movss dword [esi + eax*4 - 4], xmm1
mov eax, dword [ebp - 0x14]
movss xmm0, dword [edi + eax*4]
mov eax, dword [ebp - 8]
subss xmm0, dword [eax]
mov eax, dword [ebp - 0xc]
movss dword [esi + ecx*4 - 4], xmm0
movss xmm0, dword [eax]
mov eax, dword [ebp - 0x10]
subss xmm0, dword [eax]
lea eax, [edx*4]
add dword [ebp - 8], eax
add dword [ebp - 0xc], eax
add dword [ebp - 0x10], eax
movss dword [esi + ecx*4], xmm0
mov ecx, dword [ebp - 0x14]
add ecx, edx
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x14], ecx
jne 0x507e81
mov eax, dword [ebp - 4]
cmp edx, 2
jl 0x508283
je 0x5081a8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
test ecx, ecx
jle 0x50819f
lea esi, [edx + edx]
mov dword [ebp - 8], 0
mov dword [ebp - 0x3c], esi
lea eax, [eax + eax*2]
lea esi, [edx*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
sub esi, edx
neg esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], esi
xor ecx, ecx
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
shl ecx, 2
cmp edx, 2
jle 0x508179
mov eax, dword [ebp - 0x3c]
add eax, ecx
mov edx, dword [ebp + 0x1c]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [esi + ecx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
lea eax, [ecx + eax*2]
lea eax, [esi + eax*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, ecx
sub eax, dword [ebp - 8]
lea esi, [edi + eax*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x34], esi
lea eax, [edi + eax*4]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
add esi, 4
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x30], esi
sub eax, dword [ebp - 8]
add eax, ecx
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
add eax, ecx
mov ecx, edx
sub edx, dword [ebp + 0x20]
sub ecx, dword [ebp + 0x18]
mov dword [ebp - 0x44], edx
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
lea eax, [eax - 3]
shr eax, 1
inc eax
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
add dword [ebp - 0x10], 8
add edi, 8
add dword [ebp - 0x18], 8
movss xmm4, dword [esi - 4]
movaps xmm0, xmm4
mov dword [ebp - 0x40], edi
mulss xmm4, dword [edi]
add dword [ebp - 0x1c], 8
movss xmm3, dword [edi - 4]
movss xmm5, dword [edi]
mov edi, dword [ebp - 0x10]
mulss xmm5, dword [esi]
add dword [ebp - 0x20], 8
mulss xmm0, xmm3
sub dword [ebp - 0xc], 8
mulss xmm3, dword [esi]
add dword [ebp - 0x28], 8
addss xmm5, xmm0
sub dword [ebp - 0x2c], 8
subss xmm4, xmm3
movss xmm3, dword [edi - 4]
mov edi, dword [ebp - 0x34]
movss xmm1, dword [edx + edi]
mov edx, dword [ebp - 0x10]
movss dword [ebp - 0x14], xmm4
movaps xmm4, xmm3
mulss xmm3, dword [ecx + esi]
movss xmm7, dword [edx]
mov edx, dword [ebp - 0x18]
movaps xmm0, xmm7
mulss xmm0, dword [ecx + esi]
mulss xmm4, xmm1
mulss xmm7, xmm1
movss xmm1, dword [edi]
addss xmm4, xmm0
mov edi, dword [ebp - 0x50]
subss xmm7, xmm3
movss xmm3, dword [edx - 4]
movaps xmm0, xmm3
mulss xmm0, xmm1
mulss xmm3, dword [edi + esi]
movss dword [ebp - 0x54], xmm4
movss xmm4, dword [edx]
movaps xmm6, xmm4
mulss xmm4, xmm1
mulss xmm6, dword [edi + esi]
mov esi, dword [ebp - 0x1c]
subss xmm4, xmm3
addss xmm6, xmm0
movss xmm1, dword [esi - 4]
movss xmm3, dword [esi]
movaps xmm2, xmm1
addss xmm2, dword [ebp - 0x54]
mov esi, dword [ebp - 0x20]
movss dword [ebp - 0x24], xmm6
addss xmm6, xmm5
movss xmm0, dword [ebp - 0x24]
subss xmm0, xmm5
movaps xmm5, xmm4
subss xmm1, dword [ebp - 0x54]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm5, xmm0
subss xmm0, xmm4
movaps xmm4, xmm3
addss xmm4, xmm7
subss xmm3, xmm7
movss dword [ebp - 0x14], xmm0
movaps xmm0, xmm2
addss xmm0, xmm6
movss dword [esi - 4], xmm0
movaps xmm0, xmm4
addss xmm0, xmm5
movss dword [esi], xmm0
movaps xmm0, xmm1
subss xmm0, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
movss dword [esi - 4], xmm0
movss xmm0, dword [ebp - 0x24]
addss xmm1, dword [ebp - 0x14]
add dword [ebp - 0x30], 8
subss xmm0, xmm3
addss xmm3, dword [ebp - 0x24]
add dword [ebp - 0x34], 8
subss xmm2, xmm6
mov edx, dword [ebp - 0x44]
subss xmm5, xmm4
movss dword [esi], xmm0
mov esi, dword [ebp - 0x28]
movss dword [esi - 4], xmm1
movss dword [esi], xmm3
mov esi, dword [ebp - 0x2c]
movss dword [esi - 4], xmm2
movss dword [esi], xmm5
sub eax, 1
jne 0x507fe6
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x48]
lea esi, [edx + edx*2]
add eax, esi
add ecx, edx
mov esi, dword [ebp - 0x58]
add dword [ebp - 0x38], esi
sub dword [ebp - 0x4c], 1
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 8], eax
jne 0x507f56
mov eax, dword [ebp - 4]
test dl, 1
jne 0x508283
lea ecx, [edx - 1]
add ecx, eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x58], eax
jle 0x508283
mov eax, edx
movss xmm3, dword [0x563b4c]
shl eax, 4
lea ecx, [edx*4]
mov dword [ebp - 0x4c], eax
lea eax, [ecx + esi]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
movss xmm4, dword [0x545570]
mov dword [ebp - 0x50], ecx
lea eax, [edi + eax*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x58]
lea eax, [edi + eax*4]
mov dword [ebp - 0x34], eax
lea eax, [edx + edx*2]
lea edx, [esi + eax*4]
mov eax, dword [ebp - 4]
add eax, dword [ebp + 8]
lea esi, [edi + eax*4]
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 4]
lea edi, [edi + eax*4]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
movss xmm0, dword [ecx]
mov ecx, dword [ebp - 0x38]
movss xmm1, dword [ecx]
movaps xmm2, xmm1
mov ecx, dword [ebp - 0x50]
subss xmm1, xmm0
add dword [ebp - 0x38], ecx
addss xmm2, xmm0
add dword [ebp - 0x34], ecx
movss xmm0, dword [edi]
mulss xmm1, xmm3
mulss xmm2, xmm3
addss xmm0, xmm1
xorps xmm2, xmm4
movss dword [eax - 4], xmm0
movss xmm0, dword [edi]
add edi, ecx
subss xmm0, xmm1
movss dword [edx - 4], xmm0
movaps xmm0, xmm2
subss xmm0, dword [esi]
movss dword [eax], xmm0
movss xmm0, dword [esi]
add esi, ecx
add eax, dword [ebp - 0x4c]
addss xmm0, xmm2
movss dword [edx], xmm0
add edx, dword [ebp - 0x4c]
sub dword [ebp + 0xc], 1
jne 0x508215
pop edi
pop esi
mov esp, ebp
pop ebp
ret