Function at 0x10081610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10149280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
call dword [0x1019344c]
mov edx, dword [edi + 0x58]
mov esi, eax
sub esi, dword [edi + 0x5c]
mov eax, edx
mov ecx, esi
shr eax, 0x1f
shr ecx, 0x1f
movd xmm0, edx
movd xmm1, esi
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
addsd xmm1, qword [ecx*8 + 0x1012b220]
addsd xmm0, qword [eax*8 + 0x1012b220]
comisd xmm0, xmm1
jbe 0x10081a20
sub edx, esi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x1012b220]
cvtpd2ps xmm2, xmm0
divss xmm2, dword [0x1012b6d4]
cvttss2si eax, xmm2
movaps xmm1, xmm2
movss dword [ebp - 0x24], xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
comiss xmm1, dword [0x1012b5e8]
jb 0x100816b8
addss xmm2, dword [0x1012b600]
movss dword [ebp - 0x24], xmm2
movss xmm0, dword [0x1012b614]
lea eax, [ebp - 0xc]
movss xmm3, dword [0x1012b6a0]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [0x1012b5fc]
push 0xa
push eax
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [0x1012b618]
cvttss2si eax, xmm2
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [0x1012b5f4]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x1012b698]
push eax
movss dword [ebp - 0x28], xmm3
movss dword [ebp - 0x2c], xmm0
call fcn.10062559
movss xmm0, dword [ebp - 0x24]
add esp, 0xc
movss xmm5, dword [0x1012b6a0]
comiss xmm0, xmm5
movss xmm2, dword [0x1012b5f8]
movss xmm3, dword [0x1012b690]
movss xmm4, dword [0x1012b5f0]
jb 0x1008175f
movss xmm1, dword [0x1012b68c]
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x14], xmm2
movss dword [ebp - 0x1c], xmm3
movss dword [ebp - 0x20], xmm4
movss xmm1, dword [0x1012b6b4]
mov eax, 0xff00ff00
mov esi, 0xffffff00
cmovb esi, eax
mov eax, 0xfffff000
comiss xmm0, dword [0x1012b6ac]
cmovae esi, eax
comiss xmm0, xmm1
jb 0x100817f1
movss dword [ebp - 0x14], xmm2
mov esi, 0xffff0000
movss xmm2, dword [0x1012b694]
xor ecx, ecx
movss dword [ebp - 0x18], xmm3
movss dword [ebp - 0x1c], xmm2
movss dword [ebp - 0x20], xmm4
mov dword [ebp - 0x10], 0x8389c9
lea eax, [ecx - 0x14]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x100817b2
divss xmm0, xmm1
mov byte [ebp - 0xd], 0
cvttss2si eax, xmm0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10060fce
movss xmm0, dword [ebp - 0x24]
add esp, 0xc
movss xmm1, dword [0x1012b6b4]
movss xmm5, dword [0x1012b6a0]
comiss xmm0, dword [0x1012b6d0]
jb 0x1008187f
movss xmm2, dword [0x1012b5f0]
xor ecx, ecx
movss dword [ebp - 0x14], xmm2
movss xmm2, dword [0x1012b6a4]
movss dword [ebp - 0x28], xmm2
movss xmm2, dword [0x1012b6a8]
movss dword [ebp - 0x1c], xmm2
movss xmm2, dword [0x1012b5ec]
movss dword [ebp - 0x20], xmm2
movss xmm2, dword [0x1012b69c]
movss dword [ebp - 0x18], xmm5
movss dword [ebp - 0x2c], xmm2
mov dword [ebp - 0x10], 0x8389c9
nop dword [eax]
lea eax, [ecx - 0x14]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x10081850
divss xmm0, xmm1
mov byte [ebp - 0xd], 0
cvttss2si eax, xmm0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10060fce
movss xmm0, dword [ebp - 0x24]
add esp, 0xc
movss xmm1, dword [0x1012b6d8]
comiss xmm0, xmm1
jb 0x10081907
movss xmm2, dword [0x1012b690]
xor ecx, ecx
movss dword [ebp - 0x18], xmm2
movss xmm2, dword [0x1012b5f8]
movss dword [ebp - 0x14], xmm2
movss xmm2, dword [0x1012b694]
movss dword [ebp - 0x1c], xmm2
movss xmm2, dword [0x1012b5f0]
movss dword [ebp - 0x20], xmm2
mov dword [ebp - 0x10], 0x8689c9
nop dword [eax]
lea eax, [ecx - 0x14]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x100818d0
divss xmm0, xmm1
mov byte [ebp - 0xd], 0
cvttss2si eax, xmm0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10060fce
movss xmm0, dword [ebp - 0x24]
add esp, 0xc
movss xmm1, dword [0x1012b6d8]
comiss xmm0, dword [0x1012b6dc]
jb 0x1008199a
movss xmm2, dword [0x1012b5f0]
xor ecx, ecx
movss xmm3, dword [0x1012b6a0]
movss dword [ebp - 0x14], xmm2
movss xmm2, dword [0x1012b6a4]
movss dword [ebp - 0x28], xmm2
movss xmm2, dword [0x1012b6a8]
movss dword [ebp - 0x1c], xmm2
movss xmm2, dword [0x1012b5ec]
movss dword [ebp - 0x20], xmm2
movss xmm2, dword [0x1012b69c]
movss dword [ebp - 0x18], xmm3
movss dword [ebp - 0x2c], xmm2
mov dword [ebp - 0x10], 0x8689c9
nop dword [eax + eax]
lea eax, [ecx - 0x14]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x10081970
divss xmm0, xmm1
mov byte [ebp - 0xd], 0
cvttss2si eax, xmm0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10060fce
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x100819be
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x28], xmm0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, 0x7c6690
call eax
movss xmm0, dword [ebp - 0x14]
add esp, 0xc
movss xmm1, dword [edi + 0xa4]
mov ecx, eax
lea eax, [ebp - 0xc]
movss dword [esp], xmm0
movss xmm0, dword [edi + 0xa8]
subss xmm0, dword [ebp - 0x28]
push 0x80000060
push esi
push eax
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
push eax
subss xmm1, xmm0
addss xmm1, dword [ebp - 0x18]
cvttss2si eax, xmm1
push eax
call dword [0x1014733c]
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006041b
mov esp, ebp
pop ebp
ret 8