Function at 0x4fd8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 8]
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
imul eax, edi
lea ecx, [edx + edx]
mov dword [ebp - 0x10], ecx
lea ecx, [edx*4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
jle 0x4fd95f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0x10]
lea edx, [edx + eax*4]
mov eax, esi
mov dword [ebp - 0xc], edx
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
movss xmm0, dword [edi + eax*4 - 4]
addss xmm0, dword [edi + ecx*4]
movss dword [edx + esi*4], xmm0
movss xmm0, dword [edi + ecx*4]
subss xmm0, dword [edi + eax*4 - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add esi, edx
movss dword [eax], xmm0
lea ecx, [edx*4]
add eax, ecx
sub dword [ebp - 0x18], 1
mov dword [ebp - 0xc], eax
lea eax, [esi + esi]
mov dword [ebp - 4], eax
jne 0x4fd915
jmp 0x4fd962
mov dword [ebp - 8], ecx
cmp edx, 2
jl 0x4fdad8
je 0x4fda73
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x20], 0
test eax, eax
jle 0x4fda6e
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [edi + ecx*4]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
nop dword [eax]
mov ecx, dword [ebp - 8]
cmp edx, 2
jle 0x4fda4c
mov eax, dword [ebp - 0x10]
lea edx, [edi + esi*4]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov esi, dword [ebp + 0x18]
add esi, 4
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
lea eax, [edi + eax*4]
mov edi, dword [ebp + 8]
add edi, 0xfffffffd
shr edi, 1
inc edi
mov dword [ebp - 0x1c], edi
movss xmm0, dword [eax - 0xc]
sub eax, 8
addss xmm0, dword [edx + 4]
mov edi, dword [ebp - 0x18]
add edx, 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]
movaps xmm1, xmm3
mulss xmm1, dword [esi - 4]
movaps xmm0, xmm2
mulss xmm0, dword [esi]
subss xmm1, xmm0
movss dword [ecx - 4], xmm1
mulss xmm2, dword [esi - 4]
mulss xmm3, dword [esi]
add esi, 8
sub dword [ebp - 0x1c], 1
addss xmm2, xmm3
movss dword [ecx], xmm2
jne 0x4fd9d2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], ecx
add eax, edx
add dword [ebp - 0xc], ecx
sub dword [ebp - 0x24], 1
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea esi, [eax + eax]
jne 0x4fd9a0
lea ecx, [edx*4]
test dl, 1
jne 0x4fdad8
cmp dword [ebp + 0xc], 0
jle 0x4fdad8
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add esi, 0xfffffffc
movss xmm1, dword [0x59b180]
add edi, 0xfffffffc
shl eax, 2
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
lea esi, [esi + edx*4]
dec eax
lea edi, [edi + edx*4]
add eax, edx
mov edx, dword [ebp + 0x14]
lea eax, [edx + eax*4]
mov edx, dword [ebp + 0xc]
nop dword [eax + eax]
movss xmm0, dword [esi]
addss xmm0, xmm0
movss dword [edi], xmm0
add edi, ecx
movss xmm0, dword [esi + 4]
add esi, dword [ebp + 8]
addss xmm0, xmm0
xorps xmm0, xmm1
movss dword [eax], xmm0
add eax, ecx
sub edx, 1
jne 0x4fdab0
pop edi
pop esi
mov esp, ebp
pop ebp
ret