Function at 0x506980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
imul esi, edi
lea eax, [ecx + ecx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], esi
test edi, edi
jle 0x506a73
mov edi, dword [ebp + 0x10]
lea edx, [ecx*4]
mov eax, ecx
mov dword [ebp - 0xc], edi
shl eax, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
lea ecx, [eax + esi*4]
mov dword [ebp - 0x28], ecx
lea eax, [eax + esi*8]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
lea eax, [esi + esi*2]
mov esi, dword [ebp + 0x14]
lea edi, [edi + ecx*4]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffc
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], eax
jmp 0x5069f7
mov eax, dword [ebp - 8]
movss xmm1, dword [eax]
mov ecx, dword [ebp - 0xc]
movss xmm4, dword [edi - 4]
movss xmm3, dword [edi]
addss xmm4, xmm4
mov eax, dword [ebp - 0x28]
addss xmm3, xmm3
movss xmm2, dword [ecx]
subss xmm2, xmm1
addss xmm1, dword [ecx]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], edx
movaps xmm0, xmm1
subss xmm1, xmm4
addss xmm0, xmm4
movss dword [esi], xmm0
movaps xmm0, xmm2
subss xmm0, xmm3
add esi, edx
addss xmm2, xmm3
movss dword [eax], xmm0
add eax, edx
movss dword [ecx], xmm1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
add edi, eax
add dword [ebp - 8], eax
add dword [ebp - 0xc], eax
movss dword [ecx], xmm2
add ecx, edx
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
jne 0x5069f4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 0xc]
cmp ecx, 2
jl 0x506e08
je 0x506d0f
xor edx, edx
mov dword [ebp - 0x40], edx
test edi, edi
jle 0x506cf8
mov eax, ecx
mov dword [ebp - 0x44], edi
shl eax, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [eax + esi*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
nop
lea edi, [ecx + ecx]
lea edi, [edi + edx*2]
add edi, edi
cmp ecx, 2
jle 0x506cd3
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ecx + edx*2]
lea eax, [esi + eax*8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov esi, dword [ebp - 0x24]
lea eax, [eax + edi*4]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
add eax, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
lea eax, [edx + esi*2]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [edx + esi*2]
add eax, esi
lea eax, [edi + eax*4]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, edi
sub eax, dword [ebp + 0x18]
sub edi, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
lea eax, [ecx - 3]
shr eax, 1
inc eax
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
nop dword [eax]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 8]
add edx, 8
add dword [ebp - 0xc], 8
sub esi, 8
mov ecx, dword [ebp - 0x30]
add dword [ebp - 0x10], 8
sub ecx, 8
movss xmm3, dword [edx]
movss xmm6, dword [edx - 4]
movaps xmm1, xmm3
addss xmm1, dword [esi]
subss xmm3, dword [esi]
movss xmm5, dword [ecx]
movaps xmm7, xmm6
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
movss dword [ebp - 0x48], xmm1
movss xmm1, dword [ecx - 4]
mov dword [ebp - 0x34], edx
movss xmm4, dword [esi - 4]
mov edx, dword [ebp - 8]
subss xmm4, xmm1
addss xmm1, dword [esi - 4]
movss xmm2, dword [esi]
subss xmm2, xmm5
mov dword [ebp - 0x30], ecx
addss xmm6, dword [edx - 4]
addss xmm5, dword [esi]
subss xmm7, dword [edx - 4]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x14], 8
movaps xmm0, xmm6
mov edx, dword [ebp - 0x3c]
addss xmm0, xmm1
mov esi, dword [ebp - 0x4c]
subss xmm6, xmm1
mov eax, dword [ebp - 0x18]
add eax, 8
add dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], eax
movss dword [ecx - 4], xmm0
movaps xmm0, xmm2
addss xmm0, xmm3
subss xmm3, xmm2
movaps xmm2, xmm4
movss dword [ecx], xmm0
movss xmm0, dword [edi]
mov ecx, dword [ebp - 0x14]
movss dword [ebp - 0x50], xmm3
movaps xmm3, xmm7
subss xmm3, xmm5
addss xmm7, xmm5
movss xmm5, dword [ebp - 0x48]
addss xmm2, xmm5
subss xmm5, xmm4
movaps xmm1, xmm3
mulss xmm1, dword [edi - 4]
mulss xmm0, xmm2
subss xmm1, xmm0
movss dword [ecx - 4], xmm1
movss xmm0, dword [edi]
mulss xmm2, dword [edi - 4]
mulss xmm0, xmm3
addss xmm0, xmm2
movss dword [ecx], xmm0
mov ecx, dword [ebp - 0x20]
movss xmm0, dword [esi + edi]
mulss xmm0, dword [ebp - 0x50]
movss xmm1, dword [ecx + edx]
mulss xmm1, xmm6
subss xmm1, xmm0
movss dword [eax - 4], xmm1
movss xmm1, dword [ecx + edx]
mov edx, eax
movss xmm0, dword [esi + edi]
mulss xmm1, dword [ebp - 0x50]
mulss xmm0, xmm6
addss xmm1, xmm0
movss dword [edx], xmm1
movss xmm1, dword [ecx]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mulss xmm1, xmm7
movss xmm0, dword [ecx + edi]
mulss xmm0, xmm5
subss xmm1, xmm0
movss dword [eax - 4], xmm1
movss xmm1, dword [ecx + edi]
add edi, 8
movss xmm0, dword [edx]
add edx, 8
sub dword [ebp - 0x38], 1
mulss xmm1, xmm7
mov dword [ebp - 0x20], edx
mulss xmm0, xmm5
addss xmm1, xmm0
movss dword [eax], xmm1
jne 0x506b40
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x58]
lea edi, [ecx*4]
add dword [ebp - 0x28], edi
add edx, ecx
add dword [ebp - 0x2c], edi
sub dword [ebp - 0x44], 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
jne 0x506ab0
mov edi, dword [ebp + 0xc]
mov eax, ecx
and eax, 0x80000001
jns 0x506d06
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x506e08
test edi, edi
jle 0x506e08
mov edi, dword [ebp + 0x10]
lea edx, [ecx*4]
mov eax, ecx
movss xmm5, dword [0x563b5c]
shl eax, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
movss xmm6, dword [0x545570]
mov dword [ebp - 0x50], edx
lea eax, [eax + ecx*4]
add eax, 0xfffffffc
mov dword [ebp - 0x58], eax
lea eax, [ecx + ecx*2]
lea edi, [edi + eax*4]
mov eax, dword [ebp + 0x10]
add eax, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [esi - 1]
add eax, ecx
lea eax, [edx + eax*4]
mov dword [ebp - 0x54], eax
lea eax, [esi*2 - 1]
add eax, ecx
lea eax, [edx + eax*4]
mov dword [ebp - 0x44], eax
lea eax, [ecx + esi*2]
dec esi
mov ecx, edx
add eax, esi
mov esi, dword [ebp - 0x54]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x58]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x2c]
nop word [eax + eax]
movss xmm2, dword [eax - 4]
movss xmm4, dword [eax]
movss xmm1, dword [edi - 4]
movss xmm3, dword [edi]
subss xmm2, xmm1
addss xmm1, dword [eax - 4]
mov edx, dword [ebp + 8]
addss xmm4, xmm3
subss xmm3, dword [eax]
mov eax, dword [ebp - 0x44]
add edi, dword [ebp - 0x40]
movaps xmm0, xmm2
addss xmm1, xmm1
subss xmm0, xmm4
addss xmm4, xmm2
addss xmm3, xmm3
movss dword [ecx], xmm1
mulss xmm0, xmm5
mulss xmm4, xmm5
movss dword [esi], xmm0
movss dword [eax], xmm3
xorps xmm4, xmm6
movss dword [edx], xmm4
mov edx, dword [ebp - 0x50]
add eax, edx
add dword [ebp + 8], edx
add ecx, edx
mov dword [ebp - 0x44], eax
add esi, edx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x40]
sub dword [ebp + 0xc], 1
mov dword [ebp - 0x2c], eax
jne 0x506d90
pop edi
pop esi
mov esp, ebp
pop ebp
ret