Function at 0x501a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
mov edx, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edx, edi
lea esi, [eax*8]
mov dword [ebp - 0x1c], esi
lea ecx, [eax*4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], edx
test edi, edi
jle 0x501aa8
mov edi, dword [ebp + 0x10]
mov eax, edi
lea edx, [edi + edx*4]
mov edi, dword [ebp + 0x14]
add edi, 0xfffffffc
add edi, esi
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0x14]
nop word [eax + eax]
movss xmm0, dword [edx]
addss xmm0, dword [eax]
mov ecx, dword [ebp - 0x14]
movss dword [edi], xmm0
add edi, esi
movss xmm0, dword [eax]
subss xmm0, dword [edx]
movss dword [ecx], xmm0
add ecx, esi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
add eax, ecx
add edx, ecx
sub dword [ebp - 0x10], 1
jne 0x501a70
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
cmp eax, 2
jl 0x501c12
je 0x501bc4
test edi, edi
jle 0x501bc0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
lea esi, [eax*8]
lea edx, [ecx + edx*4]
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
add ecx, esi
mov dword [ebp - 8], ecx
lea ecx, [eax*4]
mov dword [ebp - 0x14], edx
nop dword [eax]
cmp eax, 2
jle 0x501ba3
mov ecx, dword [ebp + 0x18]
add eax, 0xfffffffd
mov edx, dword [ebp - 0xc]
add ecx, 4
mov esi, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x30], edi
inc eax
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x20]
add esi, 8
add edx, 8
add ecx, 8
sub edi, 8
movss xmm4, dword [esi]
movss xmm1, dword [eax]
movaps xmm0, xmm4
mulss xmm4, dword [eax - 4]
movss xmm5, dword [esi - 4]
mulss xmm5, dword [eax - 4]
add eax, 8
sub dword [ebp - 0x24], 1
mulss xmm0, xmm1
mov dword [ebp - 0x20], eax
mulss xmm1, dword [esi - 4]
addss xmm5, xmm0
subss xmm4, xmm1
movaps xmm0, xmm4
addss xmm0, dword [edx]
movss dword [ecx], xmm0
movaps xmm0, xmm5
subss xmm4, dword [edx]
movss dword [edi], xmm4
addss xmm0, dword [edx - 4]
movss dword [ecx - 4], xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm5
movss dword [edi - 4], xmm0
jne 0x501b20
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
add dword [ebp - 8], esi
add edi, esi
add dword [ebp - 0xc], ecx
add edx, ecx
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edx
jne 0x501af0
mov edi, dword [ebp + 0xc]
test al, 1
jne 0x501c12
dec eax
mov dword [ebp + 8], eax
add eax, dword [ebp - 0x18]
test edi, edi
jle 0x501c12
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
movss xmm1, dword [0x51a860]
add edx, ecx
lea eax, [esi + eax*4]
lea edi, [esi + edi*4]
mov dword [ebp + 8], eax
mov esi, dword [ebp - 0x1c]
nop
movss xmm0, dword [eax]
xorps xmm0, xmm1
movss dword [edx], xmm0
mov eax, dword [edi]
add edi, ecx
mov dword [edx - 4], eax
add edx, esi
mov eax, dword [ebp + 8]
add eax, ecx
sub dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jne 0x501bf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret