Function at 0x100b8c6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x10227c40]
push ebx
push esi
push edi
cmp byte [eax + 0x18e8], 0
je 0x100b8f38
mov eax, dword [0x10229e7c]
mov ecx, dword [eax]
test ecx, ecx
je 0x100b8f38
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x100b8f38
mov eax, dword [0x10229e7c]
mov ecx, dword [0x102296ac]
mov esi, dword [0x1022a00c]
mov ebx, dword [eax]
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
cmp esi, dword [edi + 4]
jle 0x100b8b54
push 0x1022a00c
call fcn.1019d7b4
mov esi, dword [0x1022a00c]
add esp, 4
cmp esi, 0xffffffff
jne 0x100b8b54
mov edx, 0xc60bf9f2
mov ecx, 0x101eef55
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x1022a00c
mov dword [0x10229f60], eax
call fcn.1019d76a
mov esi, dword [0x1022a00c]
add esp, 4
mov eax, dword [0x10229f60]
movss xmm1, dword [eax + ebx + 4]
movss xmm0, dword [eax + ebx]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x100b8b82
sqrtsd xmm0, xmm0
jmp 0x100b8b87
call fcn.101c6320
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x100b8f38
mov eax, dword [0x10229e7c]
mov ebx, dword [eax]
cmp esi, dword [edi + 4]
jle 0x100b8beb
push 0x1022a00c
call fcn.1019d7b4
add esp, 4
cmp dword [0x1022a00c], 0xffffffff
jne 0x100b8beb
mov edx, 0xc60bf9f2
mov ecx, 0x101eef55
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x1022a00c
mov dword [0x10229f60], eax
call fcn.1019d76a
add esp, 4
mov eax, dword [0x10229f60]
movss xmm1, dword [eax + ebx + 4]
movss xmm0, dword [eax + ebx]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x100b8c19
sqrtsd xmm0, xmm0
jmp 0x100b8c1e
call fcn.101c6320
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x101ff2b8]
jb 0x100b8f38
mov eax, dword [0x10227c40]
mov edx, dword [eax + 0x3564]
lea ecx, [eax + 0x3564]
cmp edx, 3
ja case.0x100b8c45.0
jmp dword [edx*4 + 0x100b8f4c]
call fcn.100cae00
mov cl, al
mov eax, dword [0x10227c40]
jmp 0x100b8c5d
mov cl, byte [ecx + 0x20]
test cl, cl
je case.0x100b8c45.0
cmp byte [eax + 0x3561], 0
jne 0x100b8f38
mov eax, dword [0x10227c48]
mov edi, dword [eax + 0x70]
mov eax, dword [edi]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov esi, dword [eax + 0x1c]
mov eax, dword [0x10229e7c]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, edi
call esi
mov eax, dword [0x10227c48]
movq xmm0, qword [str.SQYOO]
mov esi, dword [eax + 0x38]
mov eax, dword [str.MO_3_C]
mov dword [esp + 0x24], eax
mov ax, word [0x101f2a80]
movq qword [esp + 0x1c], xmm0
mov word [esp + 0x28], ax
test ah, ah
je 0x100b8e1a
xor ebx, ebx
cmp dword [0x102296a0], 2
jl 0x100b8df2
movaps xmm2, xmmword [0x101ff6c0]
mov eax, 4
movaps xmm3, xmmword [0x101ffba0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ebx, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff720]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ff700]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
movd xmm0, dword [str.SQYOO]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101ff830]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x1c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff720]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
movd xmm0, dword [esp + 0x20]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101ff830]
pxor xmm1, xmm0
movd dword [esp + 0x20], xmm1
mov eax, 0x5397829d
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x31
sub cl, al
add cl, 0x36
xor byte [esp + ebx + 0x1c], cl
inc ebx
cmp ebx, 0xe
jl 0x100b8df2
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push 0
push 1
push 0
mov eax, dword [eax + 0x150]
push ecx
mov ecx, esi
call eax
mov esi, eax
test esi, esi
je 0x100b8f38
mov ecx, dword [0x10227c40]
cmp byte [ecx + 0x18e7], 0
jne 0x100b8e76
movss xmm0, dword [ecx + 0x18df]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x18db]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + 0x18d7]
jmp 0x100b8f2a
mov eax, dword [0x10227c3c]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
mulss xmm0, dword [ecx + 0x18e3]
movss dword [esp + 0x10], xmm0
addss xmm0, dword [0x101ff2a4]
cvtps2pd xmm0, xmm0
call fcn.101c6150
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x101ff218]
mulss xmm1, dword [0x101ff0d4]
addss xmm1, dword [0x101ff0d4]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x14], xmm1
call fcn.101c6150
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x101ff0d4]
addss xmm0, dword [0x101ff0d4]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
call fcn.101c6150
movss xmm1, dword [esp + 0x14]
sub esp, 0xc
cvtsd2ss xmm0, xmm0
movss dword [esp + 8], xmm1
mulss xmm0, dword [0x101ff0d4]
movss xmm1, dword [esp + 0x24]
movss dword [esp + 4], xmm1
addss xmm0, dword [0x101ff0d4]
mov eax, dword [esi]
mov ecx, esi
movss dword [esp], xmm0
mov eax, dword [eax + 0x70]
call eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret