Function at 0x5064b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
mov edx, ecx
mov eax, dword [ebp + 0xc]
imul edx, eax
push esi
push edi
xor edi, edi
lea esi, [ecx + ecx]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
xor edx, edx
test eax, eax
jle 0x506537
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x14]
lea esi, [esi + eax*4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
nop dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add eax, edi
movss xmm0, dword [esi + eax*4 - 4]
addss xmm0, dword [esi + edi*4]
movss dword [ecx + edx*4], xmm0
movss xmm0, dword [esi + edi*4]
subss xmm0, dword [esi + eax*4 - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add edx, ecx
movss dword [eax], xmm0
lea edi, [ecx*4]
add eax, edi
sub dword [ebp - 8], 1
mov dword [ebp - 0xc], eax
lea edi, [edx + edx]
jne 0x5064f0
mov eax, dword [ebp + 0xc]
cmp ecx, 2
jl 0x5066c8
je 0x506656
xor edi, edi
xor edx, edx
mov dword [ebp - 8], edi
test eax, eax
jle 0x506643
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
lea esi, [esi + edi*4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x10]
nop dword [eax]
mov edi, dword [ebp - 8]
cmp ecx, 2
jle 0x50661f
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x18], edi
lea edx, [esi + edx*4]
lea edi, [ecx - 3]
mov ecx, dword [ebp - 0xc]
shr edi, 1
lea eax, [esi + eax*4]
mov esi, dword [ebp + 0x18]
add esi, 4
inc edi
mov dword [ebp - 0x1c], edi
nop
movss xmm0, dword [edx + 4]
add edx, 8
addss xmm0, dword [eax - 0xc]
mov edi, dword [ebp - 0x18]
sub eax, 8
add edi, 8
add ecx, 8
mov dword [ebp - 0x18], edi
movss dword [edi - 4], xmm0
movss xmm0, dword [edx]
subss xmm0, dword [eax]
movss xmm3, dword [edx - 4]
subss xmm3, dword [eax - 4]
movss dword [edi], xmm0
movss xmm2, dword [eax]
addss xmm2, dword [edx]
movss xmm0, dword [esi]
movaps xmm1, xmm3
mulss xmm1, dword [esi - 4]
mulss xmm0, xmm2
subss xmm1, xmm0
movss dword [ecx - 4], xmm1
movss xmm0, dword [esi]
mulss xmm2, dword [esi - 4]
add esi, 8
sub dword [ebp - 0x1c], 1
mulss xmm0, xmm3
addss xmm0, xmm2
movss dword [ecx], xmm0
jne 0x5065a0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
lea edx, [ecx*4]
add dword [ebp - 0xc], edx
add edi, ecx
add eax, edx
mov dword [ebp - 8], edi
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
lea edx, [edi + edi]
jne 0x506570
mov eax, ecx
and eax, 0x80000001
jns 0x506651
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x5066c8
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x5066c8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add edx, 0xfffffffc
movss xmm1, dword [0x545570]
add esi, 0xfffffffc
shl eax, 2
mov dword [ebp + 8], eax
lea eax, [ecx*4]
mov dword [ebp + 0xc], eax
lea edx, [edx + ecx*4]
mov eax, dword [ebp - 0x14]
lea esi, [esi + ecx*4]
dec eax
add eax, ecx
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0xc]
nop dword [eax]
movss xmm0, dword [edx]
addss xmm0, xmm0
movss dword [esi], xmm0
add esi, ecx
movss xmm0, dword [edx + 4]
add edx, dword [ebp + 8]
addss xmm0, xmm0
xorps xmm0, xmm1
movss dword [eax], xmm0
add eax, ecx
sub edi, 1
jne 0x5066a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret