Function at 0x4ec620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov dword [ebp - 0x14], edx
imul edx, eax
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
add ebx, ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x20], eax
jge 0x4ec69c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
shl ecx, 3
nop
lea esi, [esi]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
fld dword [esi + edx*4]
fadd dword [esi + edi*4]
fstp dword [eax]
fld dword [esi + edx*4]
fsubr dword [esi + edi*4]
mov edx, dword [ebp - 0x10]
add edi, edx
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], esi
add edi, edx
mov esi, dword [ebp - 0x14]
fstp dword [eax + ebx*4 - 4]
mov dword [ebp - 0x24], edi
add eax, ecx
cmp dword [ebp - 0x18], esi
jl 0x4ec660
cmp dword [ebp - 0x10], 1
jle 0x4ec804
cmp dword [ebp - 0x10], 2
je 0x4ec7a0
mov dword [ebp - 0x20], 0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x20], eax
jge 0x4ec788
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add eax, eax
mov ebx, dword [ebp - 0x24]
mov esi, 2
lea edx, [eax + ecx*2]
mov ecx, dword [ebp - 0x20]
jmp 0x4ec75d
mov edi, dword [ebp + 0x10]
add ebx, 2
add ecx, 2
add eax, 2
fld dword [edi + esi*4 - 8]
mov edi, dword [ebp + 8]
sub edx, 2
fld st(0)
fld dword [edi + ebx*4 - 4]
mov edi, dword [ebp + 0x10]
fmul st(1), st(0)
fld dword [edi + esi*4 - 4]
mov edi, dword [ebp + 8]
add esi, 2
fld st(0)
fld dword [edi + ebx*4]
fmul st(5), st(0)
fxch st(2)
fmulp st(3)
fmulp st(1)
fxch st(3)
fsubrp st(1)
fxch st(1)
faddp st(2)
fld dword [edi + ecx*4]
fadd st(1)
mov edi, dword [ebp + 0xc]
fstp dword [edi + eax*4]
mov edi, dword [ebp + 8]
fsub dword [edi + ecx*4]
mov edi, dword [ebp + 0xc]
fstp dword [edi + edx*4]
mov edi, dword [ebp + 8]
fld dword [edi + ecx*4 - 4]
fadd st(1)
mov edi, dword [ebp + 0xc]
fstp dword [edi + eax*4 - 4]
mov edi, dword [ebp + 8]
fsubr dword [edi + ecx*4 - 4]
mov edi, dword [ebp + 0xc]
fstp dword [edi + edx*4 - 4]
cmp esi, dword [ebp - 0x10]
jl 0x4ec6e8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
add edx, eax
mov edi, dword [ebp - 0x24]
inc esi
add edi, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x18], edx
jl 0x4ec6d0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x10]
shr eax, 0x1f
mov ecx, dword [ebp - 0x10]
add eax, ebx
and eax, 0xfffffffe
sub ecx, eax
mov eax, ecx
dec eax
je 0x4ec804
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
dec esi
mov ebx, esi
mov dword [ebp - 0x18], 0
add esi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x18], eax
jge 0x4ec804
mov edx, dword [ebp - 0x20]
add edx, edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
mov eax, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
xor eax, 0x80000000
mov dword [ecx + edi*4], eax
mov eax, dword [esi + ebx*4]
mov esi, dword [ebp - 0x10]
mov dword [ecx + edi*4 - 4], eax
mov eax, dword [ebp - 0x18]
add edi, edx
mov ecx, dword [ebp - 0x24]
inc eax
add ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x14]
add ebx, esi
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x18], edi
jl 0x4ec7c5
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret