Function at 0x100b91c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x102220c0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword fs:[0x2c]
mov edx, dword [0x10240d9c]
push ebx
mov bl, cl
push esi
mov ecx, dword [eax + edx*4]
mov eax, dword [0x105339e0]
push edi
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ecx
cmp eax, dword [ecx + 4]
jle 0x100b9224
push 0x105339e0
call fcn.101b5d2d
add esp, 4
cmp dword [0x105339e0], 0xffffffff
jne 0x100b9224
push 0x101e1e10
call fcn.101b5a79
push 0x105339e0
call fcn.101b5cdc
add esp, 8
mov eax, dword [0x1023fc80]
mov edi, dword [0x10240d90]
mov dl, byte [0x104682e5]
mov cl, byte [eax + 0x1689]
test cl, cl
jne 0x100b924c
cmp byte [eax + 0x17ae], 0
je 0x100b93dd
test dl, dl
jne 0x100b93cd
mov eax, dword [0x1023fc88]
movq xmm0, qword [str.TBTU_OcTSO__6C]
mov esi, dword [eax + 0x20]
mov eax, dword [0x101eeb54]
mov dword [esp + 0x1c], eax
mov ax, word [0x101eeb58]
movq qword [esp + 0x14], xmm0
mov word [esp + 0x20], ax
test ah, ah
je 0x100b93af
xor ebx, ebx
cmp edi, 2
jl 0x100b9383
movaps xmm2, xmmword [0x10214950]
mov ebx, 8
movaps xmm3, xmmword [0x10214d20]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x102149b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10214990]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214a50]
movd xmm0, dword [str.TBTU_OcTSO__6C]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10214a90]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x102149b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214a50]
movd xmm0, dword [esp + 0x18]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10214a90]
xorps xmm1, xmm0
movd dword [esp + 0x18], 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 + 0x14], cl
inc ebx
cmp ebx, 0xe
jl 0x100b9383
mov bl, byte [esp + 0xf]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x1023f168
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
mov byte [0x104682e5], 1
jmp 0x100b93fc
test cl, cl
jne 0x100b93d9
cmp byte [eax + 0x17ae], cl
je 0x100b93dd
test bl, bl
je 0x100b9401
test dl, dl
je 0x100b9401
mov eax, dword [0x1023fc88]
push 0x1023f168
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104682e5], 0
mov eax, dword [0x1023fc80]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x105339ac]
cmp ecx, dword [edx + 4]
jle 0x100b9445
push 0x105339ac
call fcn.101b5d2d
add esp, 4
cmp dword [0x105339ac], 0xffffffff
jne 0x100b9440
push 0x101e1e00
call fcn.101b5a79
push 0x105339ac
call fcn.101b5cdc
add esp, 8
mov eax, dword [0x1023fc80]
mov dl, byte [eax + 0x1689]
mov cl, byte [0x104682e4]
test dl, dl
jne 0x100b9462
cmp byte [eax + 0x17ae], 0
je 0x100b9606
test cl, cl
jne 0x100b95f6
mov eax, dword [0x1023fc88]
movq xmm0, qword [str.TBTU_OcTSO__6C]
mov esi, dword [eax + 0x20]
mov eax, dword [0x101eeb54]
mov dword [esp + 0x1c], eax
mov ax, word [0x101eeb58]
movq qword [esp + 0x14], xmm0
mov word [esp + 0x20], ax
test ah, ah
je 0x100b95c8
xor ebx, ebx
cmp edi, 2
jl 0x100b95a0
movaps xmm2, xmmword [0x10214950]
mov ebx, 8
movaps xmm4, xmmword [0x10214d20]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
mov eax, dword [0x10214a90]
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x102149b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10214990]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214a50]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.TBTU_OcTSO__6C]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x102149b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214a50]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x18]
xorps xmm1, xmm0
movd dword [esp + 0x18], xmm1
nop
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 + 0x14], cl
inc ebx
cmp ebx, 0xe
jl 0x100b95a0
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x1023f174
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
pop edi
pop esi
mov byte [0x104682e4], 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101b579a
add esp, 0x1c
ret
test dl, dl
jne 0x100b9602
cmp byte [eax + 0x17ae], dl
je 0x100b9606
test bl, bl
je 0x100b9625
test cl, cl
je 0x100b9625
mov eax, dword [0x1023fc88]
push 0x1023f174
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104682e4], 0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b579a
add esp, 0x1c
ret