Function at 0x507c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
mov edx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edx, edi
mov dword [ebp - 0x2c], edx
test edi, edi
jle 0x507c80
mov esi, dword [ebp + 0x14]
lea edi, [ecx*8]
lea eax, [ecx*4]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, ecx
lea edx, [ecx + edx*4]
mov ecx, esi
add ecx, 0xfffffffc
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
nop dword [eax]
movss xmm0, dword [edx]
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [eax]
subss xmm0, dword [edx]
add esi, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
add edx, dword [ebp - 0xc]
movss dword [edi], xmm0
add edi, dword [ebp - 0x10]
sub dword [ebp - 8], 1
jne 0x507c50
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
cmp ecx, 2
jl 0x507e21
je 0x507dcc
mov dword [ebp - 0x14], 0
test edi, edi
jle 0x507db9
mov esi, dword [ebp + 0x10]
lea eax, [ecx*4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ecx*8]
mov dword [ebp - 0x20], eax
lea eax, [esi + edx*4]
mov dword [ebp - 0x28], edi
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ecx*8]
add eax, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
nop dword [eax]
add dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
cmp ecx, 2
jle 0x507d94
mov edx, dword [ebp - 0xc]
mov esi, edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
lea eax, [ecx - 3]
mov ecx, dword [ebp - 0x34]
shr eax, 1
inc eax
mov dword [ebp - 0x1c], eax
nop
mov eax, dword [ebp - 0x18]
add ecx, 8
add edx, 8
add edi, 8
sub esi, 8
movss xmm4, dword [ecx]
movss xmm1, dword [eax]
movaps xmm0, xmm4
mulss xmm4, dword [eax - 4]
movss xmm5, dword [ecx - 4]
mulss xmm5, dword [eax - 4]
add eax, 8
sub dword [ebp - 0x1c], 1
mulss xmm0, xmm1
mov dword [ebp - 0x18], eax
mulss xmm1, dword [ecx - 4]
addss xmm5, xmm0
movss xmm0, dword [edx]
subss xmm4, xmm1
addss xmm0, xmm4
movss dword [edi], xmm0
movaps xmm0, xmm5
subss xmm4, dword [edx]
movss dword [esi], xmm4
addss xmm0, dword [edx - 4]
movss dword [edi - 4], xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm5
movss dword [esi - 4], xmm0
jne 0x507d10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
add edi, dword [ebp - 0x20]
add esi, dword [ebp - 0x24]
add edx, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
sub dword [ebp - 0x28], 1
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
jne 0x507ce0
mov edi, dword [ebp + 0xc]
mov eax, ecx
and eax, 0x80000001
jns 0x507dc7
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x507e21
lea esi, [ecx - 1]
mov edx, esi
add esi, dword [ebp - 0x2c]
test edi, edi
jle 0x507e21
movss xmm1, dword [0x545570]
lea eax, [ecx*8]
mov dword [ebp + 0xc], eax
lea eax, [ecx*4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 0x10]
lea edx, [eax + edx*4]
lea esi, [eax + esi*4]
movss xmm0, dword [esi]
add esi, dword [ebp + 8]
xorps xmm0, xmm1
movss dword [ecx], xmm0
mov eax, dword [edx]
add edx, dword [ebp + 8]
mov dword [ecx - 4], eax
add ecx, dword [ebp + 0xc]
sub edi, 1
jne 0x507e03
pop edi
pop esi
mov esp, ebp
pop ebp
ret