Function at 0x100f3510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov edx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, edx
imul eax, esi
test esi, esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
jle 0x100f35e9
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [edx*4]
mov esi, dword [ebp - 0x10]
movss xmm1, dword [edi + ecx*4]
shl ecx, 2
add eax, ecx
movss xmm2, dword [esi]
mov esi, dword [ebp - 0xc]
addss xmm2, dword [esi]
mov esi, dword [ebp - 8]
addss xmm1, dword [esi]
mov esi, dword [ebp + 0x14]
movaps xmm0, xmm1
subss xmm1, xmm2
addss xmm0, xmm2
movss dword [esi + ecx*4], xmm0
lea ecx, [ecx + edx*2]
movss dword [esi + eax*4 - 4], xmm1
mov eax, dword [ebp - 0x14]
movss xmm0, dword [edi + eax*4]
mov eax, dword [ebp - 8]
subss xmm0, dword [eax]
mov eax, dword [ebp - 0xc]
movss dword [esi + ecx*4 - 4], xmm0
movss xmm0, dword [eax]
mov eax, dword [ebp - 0x10]
subss xmm0, dword [eax]
lea eax, [edx*4]
add dword [ebp - 8], eax
add dword [ebp - 0xc], eax
add dword [ebp - 0x10], eax
movss dword [esi + ecx*4], xmm0
mov ecx, dword [ebp - 0x14]
add ecx, edx
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x14], ecx
jne 0x100f3561
mov eax, dword [ebp - 4]
cmp edx, 2
jl 0x100f3969
je 0x100f388c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
test ecx, ecx
jle 0x100f3883
lea esi, [edx + edx]
mov dword [ebp - 8], 0
mov dword [ebp - 0x3c], esi
lea eax, [eax + eax*2]
lea esi, [edx*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
sub esi, edx
neg esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], esi
xor ecx, ecx
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
shl ecx, 2
cmp edx, 2
jle 0x100f385d
mov eax, dword [ebp - 0x3c]
add eax, ecx
mov edx, dword [ebp + 0x1c]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [esi + ecx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
lea eax, [ecx + eax*2]
lea eax, [esi + eax*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, ecx
sub eax, dword [ebp - 8]
lea esi, [edi + eax*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x34], esi
lea eax, [edi + eax*4]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
add esi, 4
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x30], esi
sub eax, dword [ebp - 8]
add eax, ecx
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
add eax, ecx
mov ecx, edx
sub edx, dword [ebp + 0x20]
sub ecx, dword [ebp + 0x18]
mov dword [ebp - 0x44], edx
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
lea eax, [eax - 3]
shr eax, 1
inc eax
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
add dword [ebp - 0x10], 8
add edi, 8
add dword [ebp - 0x18], 8
movss xmm4, dword [esi - 4]
movss xmm2, dword [ecx + esi]
movaps xmm0, xmm4
mulss xmm4, dword [edi]
mov dword [ebp - 0x40], edi
movss xmm3, dword [edi - 4]
movss xmm5, dword [edi]
mov edi, dword [ebp - 0x10]
mulss xmm5, dword [esi]
add dword [ebp - 0x1c], 8
mulss xmm0, xmm3
add dword [ebp - 0x20], 8
mulss xmm3, dword [esi]
sub dword [ebp - 0xc], 8
addss xmm5, xmm0
add dword [ebp - 0x28], 8
sub dword [ebp - 0x2c], 8
subss xmm4, xmm3
movss xmm3, dword [edi - 4]
mov edi, dword [ebp - 0x34]
movaps xmm0, xmm3
movss xmm1, dword [edx + edi]
mov edx, dword [ebp - 0x10]
mulss xmm0, xmm1
movss dword [ebp - 0x14], xmm4
movaps xmm4, xmm2
movss xmm7, dword [edx]
mov edx, dword [ebp - 0x18]
mulss xmm4, xmm7
mulss xmm2, xmm3
addss xmm4, xmm0
mulss xmm7, xmm1
movss xmm1, dword [edi]
mov edi, dword [ebp - 0x50]
movss xmm0, dword [edx - 4]
subss xmm7, xmm2
mulss xmm0, xmm1
movss xmm2, dword [edi + esi]
mov esi, dword [ebp - 0x1c]
movaps xmm6, xmm2
mulss xmm2, dword [edx - 4]
movss dword [ebp - 0x54], xmm4
movss xmm4, dword [edx]
movss xmm3, dword [esi]
mulss xmm6, xmm4
mulss xmm4, xmm1
movss xmm1, dword [esi - 4]
addss xmm6, xmm0
mov esi, dword [ebp - 0x20]
subss xmm4, xmm2
movaps xmm2, xmm1
addss xmm2, dword [ebp - 0x54]
subss xmm1, dword [ebp - 0x54]
movss dword [ebp - 0x24], xmm6
addss xmm6, xmm5
movss xmm0, dword [ebp - 0x24]
subss xmm0, xmm5
movaps xmm5, xmm4
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm5, xmm0
subss xmm0, xmm4
movaps xmm4, xmm3
addss xmm4, xmm7
subss xmm3, xmm7
movss dword [ebp - 0x14], xmm0
movaps xmm0, xmm2
addss xmm0, xmm6
movss dword [esi - 4], xmm0
movaps xmm0, xmm4
addss xmm0, xmm5
movss dword [esi], xmm0
movaps xmm0, xmm1
subss xmm0, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
movss dword [esi - 4], xmm0
movss xmm0, dword [ebp - 0x24]
subss xmm2, xmm6
addss xmm1, dword [ebp - 0x14]
add dword [ebp - 0x30], 8
subss xmm0, xmm3
addss xmm3, dword [ebp - 0x24]
add dword [ebp - 0x34], 8
subss xmm5, xmm4
mov edx, dword [ebp - 0x44]
movss dword [esi], xmm0
mov esi, dword [ebp - 0x28]
movss dword [esi - 4], xmm1
movss dword [esi], xmm3
mov esi, dword [ebp - 0x2c]
movss dword [esi - 4], xmm2
movss dword [esi], xmm5
sub eax, 1
jne 0x100f36c6
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x48]
lea esi, [edx + edx*2]
add eax, esi
add ecx, edx
mov esi, dword [ebp - 0x58]
add dword [ebp - 0x38], esi
sub dword [ebp - 0x4c], 1
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 8], eax
jne 0x100f3636
mov eax, dword [ebp - 4]
test dl, 1
jne 0x100f3969
lea ecx, [edx - 1]
add ecx, eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x58], eax
jle 0x100f3969
mov eax, edx
movss xmm3, dword [0x101d54b4]
shl eax, 4
lea ecx, [edx*4]
mov dword [ebp - 0x4c], eax
lea eax, [ecx + esi]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
movss xmm4, dword [0x101c3e30]
mov dword [ebp - 0x50], ecx
lea eax, [edi + eax*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x58]
lea eax, [edi + eax*4]
mov dword [ebp - 0x34], eax
lea eax, [edx + edx*2]
lea edx, [esi + eax*4]
mov eax, dword [ebp - 4]
add eax, dword [ebp + 8]
lea esi, [edi + eax*4]
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 4]
lea edi, [edi + eax*4]
mov eax, dword [ebp - 0x54]
nop dword [eax]
mov ecx, dword [ebp - 0x34]
movss xmm0, dword [ecx]
mov ecx, dword [ebp - 0x38]
movss xmm1, dword [ecx]
movaps xmm2, xmm1
mov ecx, dword [ebp - 0x50]
subss xmm1, xmm0
add dword [ebp - 0x38], ecx
addss xmm2, xmm0
add dword [ebp - 0x34], ecx
mulss xmm1, xmm3
mulss xmm2, xmm3
movaps xmm0, xmm1
addss xmm0, dword [edi]
xorps xmm2, xmm4
movss dword [eax - 4], xmm0
movss xmm0, dword [edi]
add edi, ecx
subss xmm0, xmm1
movss dword [edx - 4], xmm0
movaps xmm0, xmm2
subss xmm0, dword [esi]
movss dword [eax], xmm0
addss xmm2, dword [esi]
add eax, dword [ebp - 0x4c]
add esi, ecx
movss dword [edx], xmm2
add edx, dword [ebp - 0x4c]
sub dword [ebp + 0xc], 1
jne 0x100f3900
pop edi
pop esi
mov esp, ebp
pop ebp
ret