Function at 0x100bb860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [0x102070c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x1033682c
push edi
call fcn.100bc060
mov ecx, esi
call fcn.100b54f0
mov ecx, esi
call fcn.100b4870
cmp esi, 1
jne case.0x100bbff9.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10225d4c]
mov edi, dword [0x10225d40]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10352da8]
cmp eax, dword [esi + 4]
jle 0x100bba62
push 0x10352da8
call fcn.1019a827
add esp, 4
cmp dword [0x10352da8], 0xffffffff
jne 0x100bba62
mov eax, dword [0x10224ca8]
xor ebx, ebx
movq xmm0, qword [str._PFlR_Z_ZKSTI_]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x101ec25c]
mov dword [esp + 0x18], eax
mov ax, word [0x101ec260]
mov word [esp + 0x1c], ax
mov al, byte [0x101ec262]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x100bba16
movaps xmm2, xmmword [0x101f8d60]
mov ebx, 8
movaps xmm3, xmmword [0x101f9250]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8de0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101f8da0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
movd xmm0, dword [str._PFlR_Z_ZKSTI_]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101f8ee0]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8de0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
movd xmm0, dword [esp + 0x14]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101f8ee0]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
mov eax, 0xa0a0a0a1
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x33
sub cl, al
add cl, 0x30
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 0xf
jl 0x100bba16
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x10352da8
mov dword [0x1035352c], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x103534f0]
cmp eax, dword [esi + 4]
jle 0x100bbc0c
push 0x103534f0
call fcn.1019a827
add esp, 4
cmp dword [0x103534f0], 0xffffffff
jne 0x100bbc0c
cmp byte [0x101ec12b], 0
mov eax, dword [0x10224ca8]
mov edx, dword [0x101ec124]
mov ecx, dword [eax + 8]
mov eax, dword [0x101ec128]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
je 0x100bbbee
xor ebx, ebx
cmp edi, 2
jl 0x100bbbc0
movaps xmm2, xmmword [0x101f8d60]
movaps xmm4, xmmword [0x101f9250]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [0x101f8ee0]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8de0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101f8da0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, edx
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8de0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x101ec128]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
jmp 0x100bbbee
mov eax, 0xa0a0a0a1
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x33
sub cl, al
add cl, 0x30
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 8
jl 0x100bbbc0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
mov eax, dword [eax + 0x3c]
call eax
push 0x103534f0
mov dword [0x10353118], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x103534b0]
cmp eax, dword [esi + 4]
jle 0x100bbdcc
push 0x103534b0
call fcn.1019a827
add esp, 4
cmp dword [0x103534b0], 0xffffffff
jne 0x100bbdcc
mov eax, dword [0x10224ca8]
xor ebx, ebx
movq xmm0, qword [str.S_mPGXiRVXXWYY_]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x101ec1ec]
mov dword [esp + 0x18], eax
mov ax, word [0x101ec1f0]
mov word [esp + 0x1c], ax
mov al, byte [0x101ec1f2]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x100bbd80
movaps xmm2, xmmword [0x101f8d60]
mov ebx, 8
movaps xmm4, xmmword [0x101f9250]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [0x101f8ee0]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8de0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101f8da0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.S_mPGXiRVXXWYY_]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101f8de0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x14]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
nop dword [eax + eax]
mov eax, 0xa0a0a0a1
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x33
sub cl, al
add cl, 0x30
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 0xf
jl 0x100bbd80
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x103534b0
mov dword [0x103534e0], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x10353528]
cmp eax, dword [esi + 4]
jle 0x100bbf9f
push 0x10353528
call fcn.1019a827
add esp, 4
cmp dword [0x10353528], 0xffffffff
jne 0x100bbf9f
cmp byte [0x101ec147], 0
mov eax, dword [0x10224ca8]
movups xmm0, xmmword [str.S_mPGXiEWMeTJXLM__CBn_PPZvU_SRIsV.A]
mov esi, dword [eax + 8]
mov eax, dword [0x101ec144]
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x38], eax
je 0x100bbf7f
xor ebx, ebx
cmp edi, 2
jl 0x100bbf55
movaps xmm0, xmmword [0x101f8ee0]
movaps xmm4, xmmword [0x101f8d60]
movaps xmm3, xmmword [0x101f9250]
movaps xmm5, xmmword [0x101f8de0]
movaps xmmword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x28]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x28], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101f8eb0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x2c]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x2c], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100bbe51
cmp ebx, 0x14
jge 0x100bbf7f
mov eax, 0xa0a0a0a1
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x33
sub cl, al
add cl, 0x30
xor byte [esp + ebx + 0x28], cl
inc ebx
cmp ebx, 0x14
jl 0x100bbf55
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10353528
mov dword [0x10353540], eax
call fcn.1019a7d6
add esp, 4
mov ecx, dword [0x1035352c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x10353118]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x103534e0]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x10353540]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x10224ca0]
cmp byte [eax + 0x18f8], 0
je case.0x100bbff9.0
mov ecx, dword [eax + 0x18fc]
add eax, 0x18fc
cmp ecx, 3
ja case.0x100bbff9.0
jmp dword [ecx*4 + 0x100bc04c]
mov ecx, eax
call fcn.100cac70
jmp 0x100bc00c
mov al, byte [eax + 0x20]
test al, al
je case.0x100bbff9.0
mov eax, dword [0x10226524]
mov ecx, dword [eax]
test ecx, ecx
je case.0x100bbff9.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je case.0x100bbff9.0
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0xc]
mov byte [eax + 0xa9], 0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret