Function at 0x100b2910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x58
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100b2c1b
mov edx, dword [eax + 0xc]
test edx, edx
je 0x100b2c1b
movsd xmm0, qword [eax]
push ebx
push esi
xor ebx, ebx
movsd qword [ebp - 0x38], xmm0
comisd xmm0, xmmword [ecx]
mov esi, 1
mov dword [ebp - 0x10], ebx
push edi
mov dword [ebp - 0xc], esi
jb 0x100b2974
nop
subsd xmm0, qword [ecx + ebx*8]
lea eax, [ebx + 1]
xor esi, 1
xor ebx, ebx
cmp eax, edx
cmovne ebx, eax
comisd xmm0, xmmword [ecx + ebx*8]
jae 0x100b2950
mov dword [ebp - 0xc], esi
movsd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x10], ebx
push dword [ebp + 0xc]
call fcn.100ab320
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.100ab570
mov ecx, dword [ebx + 0x1c]
mov edi, eax
mov edx, 8
add ecx, dword [edi + 0x1c]
mov esi, dword [edi + 0x20]
cmp ecx, esi
jle 0x100b29ca
test esi, esi
cmove esi, edx
cmp esi, ecx
jge 0x100b29ac
add esi, esi
cmp esi, ecx
jl 0x100b29a6
lea eax, [esi*4]
push eax
push dword [edi + 0x18]
call fcn.100d0940
add esp, 8
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], esi
mov edx, 8
mov eax, dword [ebx + 0x28]
add eax, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
cmp eax, esi
jle 0x100b29fd
test esi, esi
cmove esi, edx
cmp esi, eax
jge 0x100b29e6
add esi, esi
cmp esi, eax
jl 0x100b29e0
mov eax, esi
shl eax, 4
push eax
push dword [edi + 0x24]
call fcn.100d0940
add esp, 8
mov dword [edi + 0x24], eax
mov dword [edi + 0x2c], esi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x24]
mov dword [ebp - 4], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x100b2c07
nop word [eax + eax]
mov edx, dword [ebp - 0xc]
movsd xmm2, qword [ebp - 0x38]
movsd xmm5, qword [ebx]
movsd xmm6, qword [ebx + 8]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], edx
movsd qword [ebp - 0x30], xmm2
movsd qword [ebp - 0x20], xmm5
movsd qword [ebp - 0x28], xmm6
test edx, edx
je 0x100b2a79
sub esp, 0x10
movsd qword [esp + 8], xmm6
movsd qword [esp], xmm5
push edi
call fcn.100ab7e0
movsd xmm2, qword [ebp - 0x30]
add esp, 0x14
movsd xmm5, qword [ebp - 0x20]
movsd xmm6, qword [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add ecx, 4
add ebx, 0x10
mov dword [ebp - 4], ecx
cmp ecx, eax
jae 0x100b2c07
nop word [eax + eax]
cmp dword [ecx], 1
jne 0x100b2a20
movsd xmm0, qword [ebx + 8]
xorps xmm3, xmm3
movsd xmm7, qword [ebx]
subsd xmm0, xmm6
subsd xmm7, xmm5
mov eax, dword [ebp + 8]
movaps xmm1, xmm0
movsd qword [ebp - 0x30], xmm0
mulsd xmm1, xmm0
movaps xmm0, xmm7
mov eax, dword [eax + 8]
mulsd xmm0, xmm7
movsd qword [ebp - 0x58], xmm7
addsd xmm1, xmm0
movsd xmm0, qword [eax + esi*8]
subsd xmm0, xmm2
sqrtsd xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x40], xmm1
jbe 0x100b2ba3
movsd xmm4, qword [0x100f91d0]
divsd xmm4, xmm1
movsd qword [ebp - 0x50], xmm4
nop dword [eax + eax]
movsd xmm1, qword [eax + esi*8]
movaps xmm0, xmm4
subsd xmm1, xmm2
sub esp, 0x10
addsd xmm1, xmm3
mulsd xmm0, xmm1
movsd qword [ebp - 0x48], xmm1
movaps xmm1, xmm0
mulsd xmm0, qword [ebp - 0x30]
mulsd xmm1, xmm7
addsd xmm0, xmm6
addsd xmm1, xmm5
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push edi
test edx, edx
je 0x100b2b47
call fcn.100ab700
jmp 0x100b2b4c
call fcn.100ab7e0
mov ecx, dword [ebp + 8]
xor eax, eax
movsd xmm1, qword [ebp - 0x40]
add esp, 0x14
cmp dword [ebp - 8], eax
movaps xmm0, xmm1
movsd xmm3, qword [ebp - 0x48]
xorps xmm2, xmm2
movsd xmm4, qword [ebp - 0x50]
subsd xmm0, xmm3
movsd xmm5, qword [ebp - 0x20]
sete al
movsd xmm6, qword [ebp - 0x28]
mov edx, eax
movsd xmm7, qword [ebp - 0x58]
lea eax, [esi + 1]
xor esi, esi
mov dword [ebp - 8], edx
cmp eax, dword [ecx + 0xc]
cmovne esi, eax
mov eax, dword [ecx + 8]
comisd xmm0, xmmword [eax + esi*8]
ja 0x100b2b00
mov ecx, dword [ebp - 4]
movsd xmm5, qword [ebx]
subsd xmm1, xmm3
movsd xmm6, qword [ebx + 8]
movsd qword [ebp - 0x20], xmm5
movsd qword [ebp - 0x28], xmm6
addsd xmm2, xmm1
movsd qword [ebp - 0x30], xmm2
test edx, edx
je 0x100b2bf3
sub esp, 0x10
movsd qword [esp + 8], xmm6
movsd qword [esp], xmm5
push edi
call fcn.100ab700
movsd xmm2, qword [ebp - 0x30]
add esp, 0x14
movsd xmm5, qword [ebp - 0x20]
movsd xmm6, qword [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add ecx, 4
add ebx, 0x10
mov dword [ebp - 4], ecx
cmp ecx, eax
jb 0x100b2a90
push dword [ebp - 0x18]
call fcn.100ab6d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
call fcn.100ab210
add esp, 4
mov esp, ebp
pop ebp
ret