Function at 0x4d2fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
lea eax, [ecx*4]
imul edi, edx
mov dword [ebp - 0x44], eax
lea eax, [ecx + ecx]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
test edx, edx
jle 0x4d30e3
mov eax, dword [ebp - 0x44]
lea edx, [ecx*4]
mov ecx, dword [ebp + 0x10]
shl eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [esi + edi*4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [esi + edi*8]
mov dword [ebp - 0x18], eax
lea eax, [edi + edi*2]
lea eax, [esi + eax*4]
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
lea eax, [eax*8 - 4]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
nop
movss xmm4, dword [eax - 4]
movss xmm3, dword [eax]
addss xmm4, xmm4
movss xmm2, dword [edi]
addss xmm3, xmm3
mov eax, dword [ebp - 0x10]
movaps xmm1, xmm2
add edi, dword [ebp - 0x1c]
addss xmm2, dword [eax]
subss xmm1, dword [eax]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x18], edx
movaps xmm0, xmm2
subss xmm2, xmm4
addss xmm0, xmm4
movss dword [esi], xmm0
movaps xmm0, xmm1
subss xmm0, xmm3
add esi, edx
addss xmm1, xmm3
movss dword [ecx], xmm0
add ecx, edx
movss dword [eax], xmm2
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x14], edx
movss dword [eax], xmm1
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
jne 0x4d3060
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp ecx, 2
jl 0x4d3493
je 0x4d339b
mov dword [ebp - 0x40], 0
test edx, edx
jle 0x4d3384
lea esi, [ecx*4]
mov dword [ebp - 0x44], edx
sub esi, ecx
xor eax, eax
neg esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x54], esi
xor edx, edx
lea esi, [edi + edi*2]
mov dword [ebp - 0x30], esi
nop
mov esi, dword [ebp - 8]
shl edx, 2
add esi, edx
add esi, dword [ebp - 8]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x14]
cmp ecx, 2
jle 0x4d335e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
add eax, edx
mov edi, dword [ebp - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], eax
mov eax, ecx
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x3c]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
add eax, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], eax
mov eax, edx
sub eax, dword [ebp - 0x18]
lea ecx, [esi + eax*4]
add eax, edi
mov dword [ebp - 0x24], ecx
lea eax, [esi + eax*4]
mov dword [ebp - 0x28], eax
lea eax, [edi + edi]
sub eax, dword [ebp - 0x18]
add eax, edx
lea edi, [esi + eax*4]
mov eax, dword [ebp - 0x30]
add eax, edx
mov edx, dword [ebp - 0x2c]
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
lea eax, [eax - 3]
shr eax, 1
inc eax
jmp 0x4d31c3
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
add edi, 8
mov ecx, dword [ebp - 0x1c]
sub esi, 8
add dword [ebp - 0xc], 8
add dword [ebp - 0x24], 8
add dword [ebp - 0x28], 8
movss xmm0, dword [ecx - 8]
add dword [ebp - 0x10], 8
movss xmm5, dword [esi]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x34]
add edi, 8
mov dword [ebp - 0x20], esi
sub ecx, 8
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0xc]
mov esi, ecx
movss xmm2, dword [edi]
subss xmm2, xmm5
addss xmm5, dword [edi]
movss xmm3, dword [ecx]
movss xmm7, dword [esi - 4]
movaps xmm1, xmm3
mov ecx, dword [ebp - 0x1c]
addss xmm1, xmm0
subss xmm3, xmm0
movss xmm0, dword [edi - 4]
mov edi, dword [ebp - 0x20]
movaps xmm4, xmm0
movss xmm6, dword [ecx - 4]
mov ecx, dword [ebp - 0x24]
subss xmm7, xmm6
addss xmm6, dword [esi - 4]
movss dword [ebp - 0x48], xmm1
movss xmm1, dword [edi - 4]
subss xmm4, xmm1
mov edi, dword [ebp - 0x14]
addss xmm1, xmm0
mov esi, dword [ebp - 0x38]
movaps xmm0, xmm6
addss xmm0, xmm1
subss xmm6, xmm1
movss dword [ecx - 4], xmm0
movaps xmm0, xmm2
addss xmm0, xmm3
subss xmm3, xmm2
movaps xmm2, xmm4
movss dword [ecx], xmm0
movss xmm1, dword [edx - 4]
mov ecx, dword [ebp - 0x28]
movss dword [ebp - 0x4c], xmm3
movaps xmm3, xmm7
subss xmm3, xmm5
addss xmm7, xmm5
movss xmm5, dword [ebp - 0x48]
addss xmm2, xmm5
subss xmm5, xmm4
mulss xmm1, xmm3
movaps xmm0, xmm2
mulss xmm0, dword [edx]
subss xmm1, xmm0
movss dword [ecx - 4], xmm1
movss xmm0, dword [edx - 4]
mulss xmm3, dword [edx]
mulss xmm0, xmm2
addss xmm0, xmm3
movss dword [ecx], xmm0
mov ecx, dword [ebp - 0x3c]
movss xmm0, dword [esi + edx]
mulss xmm0, dword [ebp - 0x4c]
movss xmm1, dword [ecx + edi]
mov edi, dword [ebp - 0x2c]
mulss xmm1, xmm6
subss xmm1, xmm0
movss dword [edi - 4], xmm1
mov edi, dword [ebp - 0x14]
movss xmm1, dword [esi + edx]
mulss xmm1, xmm6
movss xmm0, dword [ecx + edi]
mulss xmm0, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
addss xmm1, xmm0
movaps xmm0, xmm5
movss dword [esi], xmm1
movss xmm1, dword [edi]
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x10]
mulss xmm1, xmm7
mulss xmm0, dword [edi + edx]
subss xmm1, xmm0
movss dword [esi - 4], xmm1
mov esi, dword [ebp - 0x14]
mulss xmm7, dword [edi + edx]
add edx, 8
movss xmm0, dword [esi]
add esi, 8
mulss xmm0, xmm5
mov dword [ebp - 0x14], esi
addss xmm0, xmm7
movss dword [ecx], xmm0
sub eax, 1
jne 0x4d31c0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
lea esi, [ecx + ecx*2]
add eax, esi
add edx, ecx
mov esi, dword [ebp - 0x54]
add dword [ebp - 0x30], esi
sub dword [ebp - 0x44], 1
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], eax
jne 0x4d3120
mov edx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0x80000001
jns 0x4d3392
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x4d3493
test edx, edx
jle 0x4d3493
lea eax, [ecx*4]
movss xmm5, dword [0x5cfa1c]
shl eax, 2
lea edx, [ecx*4]
mov dword [ebp - 0x44], eax
lea eax, [esi - 4]
lea eax, [eax + ecx*4]
movss xmm6, dword [0x511540]
mov dword [ebp - 0x54], eax
lea esi, [ecx + ecx*2]
mov eax, dword [ebp + 0x10]
lea edi, [edx + eax]
lea eax, [eax + esi*4]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
dec eax
add eax, ecx
lea eax, [esi + eax*4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
lea eax, [eax*2 - 1]
add eax, ecx
lea eax, [esi + eax*4]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
lea eax, [eax*2 - 1]
add eax, ecx
mov ecx, dword [ebp - 0x54]
add eax, dword [ebp - 4]
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
nop
movss xmm1, dword [eax - 4]
movss xmm3, dword [eax]
movss xmm2, dword [edi - 4]
movss xmm4, dword [edi]
subss xmm2, xmm1
addss xmm1, dword [edi - 4]
mov eax, dword [ebp + 8]
addss xmm4, xmm3
subss xmm3, dword [edi]
add dword [ebp + 8], edx
add edi, dword [ebp - 0x44]
movaps xmm0, xmm2
addss xmm1, xmm1
subss xmm0, xmm4
addss xmm4, xmm2
addss xmm3, xmm3
movss dword [ecx], xmm1
add ecx, edx
mulss xmm0, xmm5
mulss xmm4, xmm5
movss dword [esi], xmm0
add esi, edx
movss dword [eax], xmm3
mov eax, dword [ebp - 0x30]
xorps xmm4, xmm6
add dword [ebp - 0x30], edx
movss dword [eax], xmm4
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x44]
sub dword [ebp + 0xc], 1
mov dword [ebp - 0x2c], eax
jne 0x4d3420
pop edi
pop esi
mov esp, ebp
pop ebp
ret