Function at 0x4d2ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov edx, ecx
mov eax, dword [ebp + 0xc]
imul edx, eax
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], edx
test eax, eax
jle 0x4d2b58
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
lea edx, [edx + eax*4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp + 0x14]
movss xmm0, dword [edx + eax*4 - 4]
addss xmm0, dword [edx + edi*4]
movss dword [ecx + esi*4], xmm0
movss xmm0, dword [edx + edi*4]
subss xmm0, dword [edx + eax*4 - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add esi, ecx
movss dword [eax], xmm0
lea edi, [ecx*4]
add eax, edi
sub dword [ebp - 8], 1
mov dword [ebp - 0xc], eax
lea edi, [esi + esi]
jne 0x4d2b13
mov eax, dword [ebp + 0xc]
cmp ecx, 2
jl 0x4d2ce8
je 0x4d2c7b
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
test eax, eax
jle 0x4d2c68
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
lea edx, [edx + edi*4]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x10]
nop
mov edi, dword [ebp - 8]
cmp ecx, 2
jle 0x4d2c44
mov edi, dword [ebp - 4]
lea eax, [esi + ecx*2]
mov dword [ebp - 0x14], edi
lea eax, [edx + eax*4]
lea edx, [edx + esi*4]
mov esi, dword [ebp + 0x18]
lea edi, [ecx - 3]
add esi, 4
mov ecx, dword [ebp - 0xc]
shr edi, 1
inc edi
mov dword [ebp - 0x18], edi
nop dword [eax]
movss xmm0, dword [eax - 0xc]
sub eax, 8
addss xmm0, dword [edx + 4]
mov edi, dword [ebp - 0x14]
add edx, 8
add edi, 8
add ecx, 8
mov dword [ebp - 0x14], 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 xmm1, dword [esi - 4]
movss xmm0, dword [esi]
mulss xmm1, xmm3
mulss xmm0, xmm2
subss xmm1, xmm0
movss dword [ecx - 4], xmm1
movss xmm1, dword [esi - 4]
movss xmm0, dword [esi]
add esi, 8
sub dword [ebp - 0x18], 1
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm1, xmm0
movss dword [ecx], xmm1
jne 0x4d2bc0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
add edi, ecx
lea edx, [ecx*4]
add dword [ebp - 0xc], edx
add eax, edx
sub dword [ebp - 0x1c], 1
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edi
lea esi, [edi + edi]
mov dword [ebp - 4], eax
jne 0x4d2b90
mov eax, ecx
and eax, 0x80000001
jns 0x4d2c76
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x4d2ce8
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x4d2ce8
mov edx, dword [ebp + 0x10]
lea eax, [ecx*8]
mov esi, dword [ebp + 0x14]
add edx, 0xfffffffc
movss xmm1, dword [0x511540]
add esi, 0xfffffffc
mov dword [ebp + 8], eax
lea eax, [ecx*4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
lea edx, [edx + ecx*4]
dec eax
lea esi, [esi + ecx*4]
add eax, ecx
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0xc]
nop
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 0x4d2cc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret