Function at 0x75ef84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [esi + 8]
cmp eax, 1
jle 0x75f028
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 1]
mov eax, connect
imul ecx
mov ebx, ecx
sar ebx, 0x1f
add edx, ecx
sub edx, ebx
je 0x75f64d
mov dword [esp + 0x1c], ecx
xor eax, eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov ecx, ebx
movsd xmm1, qword [ebx + esi + 0x18]
comisd xmm0, xmm1
jbe 0x75efe2
movaps xmm0, xmm1
lea eax, [ecx + 1]
movsd xmm1, qword [ebx + esi + 0x28]
comisd xmm0, xmm1
jbe 0x75eff4
movaps xmm0, xmm1
lea eax, [ecx + 2]
add ecx, 2
add ebx, 0x20
add edi, 1
cmp edi, edx
jb 0x75efd0
mov ecx, dword [esp + 0x1c]
lea ebx, [edi + edi + 1]
lea edx, [ebx - 1]
cmp ecx, edx
jbe 0x75f02a
mov edx, ebx
shl edx, 4
movsd xmm1, qword [edx + esi + 8]
comisd xmm0, xmm1
jbe 0x75f02a
movaps xmm0, xmm1
mov eax, ebx
jmp 0x75f02a
xor eax, eax
movaps xmm2, xmm0
movaps xmm5, xmm0
movsd xmm3, qword [0xb52b78]
movsd xmm1, qword [0xb52b80]
mov ebx, eax
andps xmm3, xmm0
mov edx, dword [ebp + 0xc]
xorps 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 [0xb52b88]
andps xmm4, xmm0
addsd xmm5, xmm4
cvtsd2si ecx, xmm5
mov dword [esp + 0x1c], ecx
je 0x75f6ae
movsd xmm3, qword [0xb52b78]
movsd xmm0, qword [0xb52b80]
movsd xmm4, qword [0xb52b88]
mov edx, dword [ebp + 0x14]
movsd xmm2, qword [esi]
minsd xmm2, qword [esi + 0x10]
movsd xmm7, qword [0xb52b80]
mov dword [esp + 0x10], ecx
andps xmm3, xmm2
movaps xmm1, xmm3
xorps 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 [0xb52b78]
cmpltsd xmm5, xmm3
andps xmm5, xmm4
addsd xmm6, xmm5
cvtsd2si edi, xmm6
mov dword [edx], edi
movsd xmm1, qword [esi]
maxsd xmm1, qword [esi + 0x10]
andps xmm2, xmm1
movaps xmm0, xmm2
xorps xmm6, xmm6
movaps xmm5, xmm6
movsd qword [esp + 0x30], xmm5
xorps 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 [0xb52b88]
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 edi, xmm4
movaps xmm4, xmm6
movsd qword [esp + 0x28], xmm4
mov dword [edx + 4], edi
mov edx, eax
shl edx, 4
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], edx
mov ecx, edx
mov edx, eax
shl edx, 4
mov dword [esp + 0x20], edx
lea edi, [edi - 1]
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x20]
movsd xmm4, qword [ecx + edi + 8]
movsd xmm6, qword [esi + edi + 8]
comisd xmm6, xmm4
mov edx, ebx
mov dword [esp + 0x24], eax
jae 0x75f606
mov esi, dword [ebp + 8]
mov edx, ebx
shl edx, 4
movsd xmm5, qword [edx + esi + 8]
comisd xmm5, xmm6
jae 0x75f5ba
movsd xmm5, qword [0xb52b78]
mov edx, dword [esp + 0x1c]
minsd xmm4, xmm6
movsd xmm6, qword [0xb52b80]
andps xmm5, xmm4
movaps xmm7, xmm5
xorps 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 [0xb52b88]
cmpnlesd xmm7, xmm5
andps xmm7, xmm4
subsd xmm6, xmm7
cvtsd2si esi, xmm6
cmp edx, esi
jg 0x75f5a1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x75f3d3
mov edi, esi
sub edi, dword [esp + 0x1c]
add edi, 1
je 0x75f5a1
movsd xmm5, qword [0xb52b88]
movsd xmm4, qword [0xb52b70]
mov edx, 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], ecx
mov ecx, 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], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, edx
shl edi, 3
neg edi
add edi, ecx
lea edi, [edi + esi*8]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], edi
lea edx, [edx + edx]
shl edx, 2
neg edx
add edx, ecx
mov ecx, dword [esp + 0x14]
lea edx, [edx + esi*8]
mov esi, dword [esp]
mov dword [esp], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
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 [0xb52b78]
movsd xmm0, qword [0xb52b80]
andps xmm3, xmm6
movaps xmm1, xmm3
xorps xmm1, xmm6
cmpltsd xmm1, xmm0
andps xmm1, xmm0
movsd xmm0, qword [0xb52b88]
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 [0xb52b80]
addsd xmm2, xmm1
cvtsd2si ecx, xmm2
addsd xmm6, xmm5
movsd xmm1, qword [0xb52b78]
andps xmm1, xmm7
movaps xmm2, xmm1
lea edi, [ecx - 1]
xorps 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 [0xb52b88]
subsd xmm3, xmm7
cmpnlesd xmm3, xmm1
movaps xmm1, xmm5
andps xmm3, xmm2
subsd xmm0, xmm3
subsd xmm1, xmm7
cvtsd2si eax, xmm0
cvtsi2sd xmm0, ecx
subsd xmm6, xmm0
cvtsi2sd xmm0, eax
comisd xmm4, xmm6
cmova ecx, edi
addsd xmm1, xmm0
comisd xmm4, xmm1
lea edi, [eax + 1]
cmova eax, edi
mov edi, dword [esp + 0x58]
mov dword [edi + esi*8], ecx
mov dword [edx + esi*8 + 4], eax
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jb 0x75f2bb
jmp 0x75f57a
mov edi, esi
sub edi, dword [esp + 0x1c]
add edi, 1
je 0x75f5a1
movsd xmm5, qword [0xb52b88]
movsd xmm4, qword [0xb52b70]
mov edx, 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], ecx
mov ecx, 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], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, edx
shl edi, 3
neg edi
add edi, ecx
lea edi, [edi + esi*8]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], edi
lea edx, [edx + edx]
shl edx, 2
neg edx
add edx, ecx
mov ecx, dword [esp + 0x14]
lea edx, [edx + esi*8]
mov esi, dword [esp]
mov dword [esp], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
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 [0xb52b78]
movsd xmm0, qword [0xb52b80]
andps xmm3, xmm6
movaps xmm1, xmm3
xorps xmm1, xmm6
cmpltsd xmm1, xmm0
andps xmm1, xmm0
movsd xmm0, qword [0xb52b88]
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 [0xb52b80]
addsd xmm2, xmm1
cvtsd2si ecx, xmm2
addsd xmm6, xmm5
movsd xmm1, qword [0xb52b78]
andps xmm1, xmm7
movaps xmm2, xmm1
lea edi, [ecx - 1]
xorps 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 [0xb52b88]
subsd xmm3, xmm7
cmpnlesd xmm3, xmm1
movaps xmm1, xmm5
andps xmm3, xmm2
subsd xmm0, xmm3
subsd xmm1, xmm7
cvtsd2si eax, xmm0
cvtsi2sd xmm0, ecx
subsd xmm6, xmm0
cvtsi2sd xmm0, eax
comisd xmm4, xmm6
cmova ecx, edi
addsd xmm1, xmm0
comisd xmm4, xmm1
lea edi, [eax + 1]
cmova eax, edi
mov edi, dword [esp + 0x58]
mov dword [edi + esi*8], ecx
mov dword [edx + esi*8 + 4], eax
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jb 0x75f467
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 ecx, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [esi + 1]
mov dword [esp + 0x1c], edx
cmp ebx, eax
jne 0x75f183
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
xorps xmm7, xmm7
jmp 0x75f5d0
mov esi, eax
lea eax, [esi + 1]
xor edi, edi
cmp esi, edx
cmovge eax, edi
shl esi, 4
movsd xmm3, qword [esi + ecx + 8]
mov edi, eax
shl edi, 4
movsd xmm6, qword [edi + ecx + 8]
movsd xmm5, qword [edi + ecx + 8]
subsd xmm5, xmm3
ucomisd xmm5, xmm7
jne 0x75f659
jp 0x75f659
cmp ebx, eax
je 0x75f5b0
jmp 0x75f5ce
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
jmp 0x75f614
mov edx, ebx
lea ebx, [edx - 1]
cmp edx, 0
cmovle ebx, esi
shl edx, 4
movsd xmm5, qword [edx + edi + 8]
mov ecx, ebx
shl ecx, 4
movsd xmm4, qword [ecx + edi + 8]
movsd xmm1, qword [ecx + edi + 8]
subsd xmm1, xmm5
ucomisd xmm1, xmm0
jne 0x75f691
jp 0x75f691
cmp ebx, eax
je 0x75f5b0
jmp 0x75f612
xor eax, eax
mov ebx, 1
jmp 0x75f009
mov ecx, dword [esp + 0x14]
movsd qword [esp + 0x30], xmm3
mov dword [esp + 0x24], esi
mov edx, esi
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x20]
movsd xmm3, qword [edx + edi]
movsd xmm7, qword [esi + edi]
subsd xmm7, xmm3
divsd xmm7, xmm5
movsd qword [esp + 0x28], xmm7
jmp 0x75f1be
mov esi, dword [ebp + 8]
movsd xmm2, qword [edx + esi]
movsd xmm0, qword [ecx + esi]
subsd xmm0, xmm2
divsd xmm0, xmm1
movaps xmm1, xmm5
jmp 0x75f1b4
movsd xmm3, qword [0xb52b78]
movsd xmm0, qword [0xb52b80]
movsd xmm4, qword [0xb52b88]
mov edx, dword [ebp + 0x14]
movsd xmm2, qword [esi]
movsd xmm1, qword [esi]
movsd xmm6, qword [esi]
andps xmm3, xmm2
xorps 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 eax, xmm6
mov dword [edx + 4], eax
mov dword [edx], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret