Function at 0x76e12c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsd xmm0, qword [eax + 8]
cmp edx, 1
jle 0x76e806
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edx, 1
mov eax, 0x10
movaps xmm2, xmm0
movaps xmm1, xmm0
movsd xmm3, qword [eax + ebx + 8]
movaps xmm0, xmm3
comisd xmm2, xmm3
cmova ecx, edx
minsd xmm0, xmm1
add eax, 0x10
add edx, 1
cmp edx, esi
jl 0x76e15e
movaps xmm2, xmm0
movaps xmm5, xmm0
movsd xmm3, qword [0xb52be8]
movsd xmm1, qword [0xb52bf0]
mov ebx, ecx
andps xmm3, xmm0
mov edx, dword [ebp + 0xc]
pxor xmm2, xmm3
cmpltsd xmm2, xmm1
andps xmm2, xmm1
orps xmm2, xmm3
addsd xmm5, xmm2
subsd xmm5, xmm2
movaps xmm4, xmm5
cmp edx, 1
subsd xmm4, xmm0
cmpltsd xmm4, xmm3
movsd xmm0, qword [0xb52bf8]
andps xmm4, xmm0
addsd xmm5, xmm4
cvtsd2si esi, xmm5
mov eax, esi
je 0x76e80d
mov edi, dword [ebp + 8]
movsd xmm3, qword [0xb52be8]
movsd xmm0, qword [0xb52bf0]
movsd xmm4, qword [0xb52bf8]
movsd xmm2, qword [edi]
minsd xmm2, qword [edi + 0x10]
mov edx, dword [ebp + 0x14]
movsd xmm7, qword [0xb52bf0]
mov dword [esp + 0x1c], eax
andps xmm3, xmm2
movaps xmm1, xmm3
mov dword [esp + 0x10], esi
pxor xmm1, xmm2
cmpltsd xmm1, xmm0
andps xmm1, xmm0
orps xmm1, xmm3
movaps xmm6, xmm1
addsd xmm6, xmm2
subsd xmm6, xmm1
movaps xmm5, xmm6
subsd xmm5, xmm2
movsd xmm2, qword [0xb52be8]
cmpltsd xmm5, xmm3
andps xmm5, xmm4
addsd xmm6, xmm5
cvtsd2si eax, xmm6
mov dword [edx], eax
movsd xmm1, qword [edi]
maxsd xmm1, qword [edi + 0x10]
andps xmm2, xmm1
movaps xmm0, xmm2
pxor xmm6, xmm6
movaps xmm5, xmm6
movsd qword [esp + 0x30], xmm5
pxor xmm0, xmm1
cmpltsd xmm0, xmm7
andps xmm0, xmm7
orps xmm0, xmm2
movaps xmm4, xmm0
addsd xmm4, xmm1
subsd xmm4, xmm0
movaps xmm3, xmm4
movsd xmm0, qword [0xb52bf8]
subsd xmm3, xmm1
movaps xmm1, xmm6
cmpnlesd xmm3, xmm2
movaps xmm2, xmm6
andps xmm3, xmm0
movaps xmm0, xmm6
subsd xmm4, xmm3
movaps xmm3, xmm6
cvtsd2si eax, xmm4
movaps xmm4, xmm6
movsd qword [esp + 0x28], xmm4
mov dword [edx + 4], eax
mov edx, ecx
shl edx, 4
mov eax, ecx
shl eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
lea edi, [eax - 1]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x20]
movsd xmm4, qword [edx + edi + 8]
movsd xmm6, qword [esi + edi + 8]
comisd xmm6, xmm4
mov eax, ebx
mov dword [esp + 0x24], ecx
jae 0x76e76c
mov esi, dword [ebp + 8]
mov eax, ebx
shl eax, 4
movsd xmm5, qword [eax + esi + 8]
comisd xmm5, xmm6
jae 0x76e722
movsd xmm5, qword [0xb52be8]
mov eax, dword [esp + 0x1c]
minsd xmm4, xmm6
movsd xmm6, qword [0xb52bf0]
andps xmm5, xmm4
movaps xmm7, xmm5
pxor xmm7, xmm4
cmpltsd xmm7, xmm6
andps xmm7, xmm6
orps xmm7, xmm5
movaps xmm6, xmm7
addsd xmm6, xmm4
subsd xmm6, xmm7
movaps xmm7, xmm6
subsd xmm7, xmm4
movsd xmm4, qword [0xb52bf8]
cmpnlesd xmm7, xmm5
andps xmm7, xmm4
subsd xmm6, xmm7
cvtsd2si esi, xmm6
cmp eax, esi
jg 0x76e709
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x76e539
mov edi, esi
sub edi, dword [esp + 0x1c]
add edi, 1
je 0x76e709
movsd xmm5, qword [0xb52bf8]
movsd xmm4, qword [0xb52be0]
mov eax, dword [esp + 0x10]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x48], xmm2
movsd qword [esp + 0x50], xmm3
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x14]
mov dword [esp], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 4], ebx
mov ebx, esi
mov dword [esp + 8], ecx
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, eax
shl edi, 3
neg edi
add edi, edx
lea edi, [edi + esi*8]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], edi
lea eax, [eax + eax]
shl eax, 2
neg eax
add eax, edx
mov edx, dword [esp + 0x14]
lea eax, [eax + esi*8]
mov esi, dword [esp]
mov dword [esp], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], edx
cvtsi2sd xmm7, ebx
movaps xmm6, xmm7
add ebx, 1
subsd xmm7, qword [esp + 0x30]
mulsd xmm7, qword [esp + 0x28]
subsd xmm6, qword [esp + 0x40]
mulsd xmm6, qword [esp + 0x38]
addsd xmm7, qword [esp + 0x50]
addsd xmm6, qword [esp + 0x48]
movsd xmm3, qword [0xb52be8]
movsd xmm0, qword [0xb52bf0]
andps xmm3, xmm6
movaps xmm1, xmm3
pxor xmm1, xmm6
cmpltsd xmm1, xmm0
andps xmm1, xmm0
movsd xmm0, qword [0xb52bf8]
orps xmm1, xmm3
movaps xmm2, xmm1
addsd xmm2, xmm6
subsd xmm2, xmm1
movaps xmm1, xmm2
subsd xmm1, xmm6
cmpltsd xmm1, xmm3
andps xmm1, xmm0
movsd xmm0, qword [0xb52bf0]
addsd xmm2, xmm1
cvtsd2si ecx, xmm2
addsd xmm6, xmm5
movsd xmm1, qword [0xb52be8]
andps xmm1, xmm7
movaps xmm2, xmm1
lea edi, [ecx - 1]
pxor xmm2, xmm7
cmpltsd xmm2, xmm0
andps xmm2, xmm0
orps xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, xmm7
subsd xmm0, xmm2
movaps xmm3, xmm0
movsd xmm2, qword [0xb52bf8]
subsd xmm3, xmm7
cmpnlesd xmm3, xmm1
movaps xmm1, xmm5
andps xmm3, xmm2
subsd xmm0, xmm3
subsd xmm1, xmm7
cvtsd2si edx, xmm0
cvtsi2sd xmm0, ecx
subsd xmm6, xmm0
cvtsi2sd xmm0, edx
comisd xmm4, xmm6
cmova ecx, edi
addsd xmm1, xmm0
comisd xmm4, xmm1
lea edi, [edx + 1]
cmova edx, edi
mov edi, dword [esp + 0x58]
mov dword [edi + esi*8], ecx
mov dword [eax + esi*8 + 4], edx
mov edx, dword [esp + 0x24]
add esi, 1
cmp esi, edx
jb 0x76e41f
jmp 0x76e6e2
mov edi, esi
sub edi, dword [esp + 0x1c]
add edi, 1
je 0x76e709
movsd xmm5, qword [0xb52bf8]
movsd xmm4, qword [0xb52be0]
mov eax, dword [esp + 0x10]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x48], xmm2
movsd qword [esp + 0x50], xmm3
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x14]
mov dword [esp], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 4], ebx
mov ebx, esi
mov dword [esp + 8], ecx
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, eax
shl edi, 3
neg edi
add edi, edx
lea edi, [edi + esi*8]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], edi
lea eax, [eax + eax]
shl eax, 2
neg eax
add eax, edx
mov edx, dword [esp + 0x14]
lea eax, [eax + esi*8]
mov esi, dword [esp]
mov dword [esp], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], edx
cvtsi2sd xmm6, ebx
movaps xmm7, xmm6
add ebx, 1
subsd xmm6, qword [esp + 0x30]
mulsd xmm6, qword [esp + 0x28]
subsd xmm7, qword [esp + 0x40]
mulsd xmm7, qword [esp + 0x38]
addsd xmm6, qword [esp + 0x50]
addsd xmm7, qword [esp + 0x48]
movsd xmm3, qword [0xb52be8]
movsd xmm0, qword [0xb52bf0]
andps xmm3, xmm6
movaps xmm1, xmm3
pxor xmm1, xmm6
cmpltsd xmm1, xmm0
andps xmm1, xmm0
movsd xmm0, qword [0xb52bf8]
orps xmm1, xmm3
movaps xmm2, xmm1
addsd xmm2, xmm6
subsd xmm2, xmm1
movaps xmm1, xmm2
subsd xmm1, xmm6
cmpltsd xmm1, xmm3
andps xmm1, xmm0
movsd xmm0, qword [0xb52bf0]
addsd xmm2, xmm1
cvtsd2si ecx, xmm2
addsd xmm6, xmm5
movsd xmm1, qword [0xb52be8]
andps xmm1, xmm7
movaps xmm2, xmm1
lea edi, [ecx - 1]
pxor xmm2, xmm7
cmpltsd xmm2, xmm0
andps xmm2, xmm0
orps xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, xmm7
subsd xmm0, xmm2
movaps xmm3, xmm0
movsd xmm2, qword [0xb52bf8]
subsd xmm3, xmm7
cmpnlesd xmm3, xmm1
movaps xmm1, xmm5
andps xmm3, xmm2
subsd xmm0, xmm3
subsd xmm1, xmm7
cvtsd2si edx, xmm0
cvtsi2sd xmm0, ecx
subsd xmm6, xmm0
cvtsi2sd xmm0, edx
comisd xmm4, xmm6
cmova ecx, edi
addsd xmm1, xmm0
comisd xmm4, xmm1
lea edi, [edx + 1]
cmova edx, edi
mov edi, dword [esp + 0x58]
mov dword [edi + esi*8], ecx
mov dword [eax + esi*8 + 4], edx
mov edx, dword [esp + 0x24]
add esi, 1
cmp esi, edx
jb 0x76e5cd
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x48]
movsd xmm3, qword [esp + 0x50]
mov esi, dword [esp]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 8]
lea eax, [esi + 1]
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jne 0x76e2e6
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
pxor xmm7, xmm7
jmp 0x76e739
mov esi, ecx
lea ecx, [esi + 1]
xor edi, edi
cmp esi, eax
cmovge ecx, edi
shl esi, 4
movsd xmm3, qword [esi + edx + 8]
mov edi, ecx
shl edi, 4
movsd xmm6, qword [edi + edx + 8]
movaps xmm5, xmm6
subsd xmm5, xmm3
ucomisd xmm5, xmm7
jne 0x76e7b1
jp 0x76e7b1
cmp ebx, ecx
je 0x76e718
jmp 0x76e737
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 8]
pxor xmm0, xmm0
jmp 0x76e77b
mov eax, ebx
lea ebx, [eax - 1]
cmp eax, 0
cmovle ebx, esi
shl eax, 4
movsd xmm5, qword [eax + edi + 8]
mov edx, ebx
shl edx, 4
movsd xmm4, qword [edx + edi + 8]
movaps xmm1, xmm4
subsd xmm1, xmm5
ucomisd xmm1, xmm0
jne 0x76e7e9
jp 0x76e7e9
cmp ebx, ecx
je 0x76e718
jmp 0x76e779
mov edx, dword [esp + 0x14]
movsd qword [esp + 0x30], xmm3
mov dword [esp + 0x24], esi
mov eax, esi
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x20]
movsd xmm3, qword [eax + edi]
movsd xmm7, qword [esi + edi]
subsd xmm7, xmm3
divsd xmm7, xmm5
movsd qword [esp + 0x28], xmm7
jmp 0x76e321
mov esi, dword [ebp + 8]
movsd xmm2, qword [eax + esi]
movsd xmm0, qword [edx + esi]
subsd xmm0, xmm2
divsd xmm0, xmm1
movaps xmm1, xmm5
jmp 0x76e317
xor ecx, ecx
jmp 0x76e182
mov eax, dword [ebp + 8]
movsd xmm3, qword [0xb52be8]
movsd xmm0, qword [0xb52bf0]
movsd xmm4, qword [0xb52bf8]
movsd xmm2, qword [eax]
movaps xmm1, xmm2
movaps xmm6, xmm2
mov ecx, dword [ebp + 0x14]
andps xmm3, xmm2
pxor xmm1, xmm3
cmpltsd xmm1, xmm0
andps xmm1, xmm0
orps xmm1, xmm3
addsd xmm6, xmm1
subsd xmm6, xmm1
movaps xmm5, xmm6
subsd xmm5, xmm2
cmpnlesd xmm5, xmm3
andps xmm5, xmm4
subsd xmm6, xmm5
cvtsd2si edx, xmm6
mov dword [ecx + 4], edx
mov dword [ecx], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret