Function at 0x100b9cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [0x102220c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x1045b244
push edi
call fcn.100ba4b0
mov ecx, esi
call fcn.100b4250
mov ecx, esi
call fcn.100b35d0
cmp esi, 1
jne case.0x100ba442.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10240d9c]
mov edi, dword [0x10240d90]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10533258]
cmp eax, dword [esi + 4]
jle 0x100b9eca
push 0x10533258
call fcn.101b57fd
add esp, 4
cmp dword [0x10533258], 0xffffffff
jne 0x100b9eca
mov eax, dword [0x1023fc88]
xor ebx, ebx
movq xmm0, qword [str.UXNdZHRS_3__1F]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x1020720c]
mov dword [esp + 0x18], eax
mov ax, word [0x10207210]
mov word [esp + 0x1c], ax
mov al, byte [0x10207212]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x100b9e80
movaps xmm2, xmmword [0x102149a0]
mov ebx, 8
movaps xmm3, xmmword [0x10214db0]
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 [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x102149e0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
movd xmm0, dword [str.UXNdZHRS_3__1F]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10214b30]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], 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 [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
movd xmm0, dword [esp + 0x14]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10214b30]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
nop
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 0xf
jl 0x100b9e80
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x10533258
mov dword [0x105339d8], eax
call fcn.101b57ac
add esp, 4
mov eax, dword [0x105339a0]
cmp eax, dword [esi + 4]
jle 0x100ba06a
push 0x105339a0
call fcn.101b57fd
add esp, 4
cmp dword [0x105339a0], 0xffffffff
jne 0x100ba06a
cmp byte [0x102071c3], 0
mov eax, dword [0x1023fc88]
mov edx, dword [0x102071bc]
mov ecx, dword [eax + 8]
mov eax, dword [0x102071c0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
je 0x100ba04c
xor ebx, ebx
cmp edi, 2
jl 0x100ba020
movaps xmm2, xmmword [0x102149a0]
movaps xmm4, xmmword [0x10214db0]
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 [0x10214b30]
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x102149e0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
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
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 [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x102071c0]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
jmp 0x100ba04c
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 8
jl 0x100ba020
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
mov eax, dword [eax + 0x3c]
call eax
push 0x105339a0
mov dword [0x105335c8], eax
call fcn.101b57ac
add esp, 4
mov eax, dword [0x10533960]
cmp eax, dword [esi + 4]
jle 0x100ba21a
push 0x10533960
call fcn.101b57fd
add esp, 4
cmp dword [0x10533960], 0xffffffff
jne 0x100ba21a
mov eax, dword [0x1023fc88]
xor ebx, ebx
movq xmm0, qword [str._UeXOPaZ._____F]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x102072f4]
mov dword [esp + 0x18], eax
mov ax, word [0x102072f8]
mov word [esp + 0x1c], ax
mov al, byte [0x102072fa]
movq qword [esp + 0x10], xmm0
mov byte [esp + 0x1e], al
cmp edi, 2
jl 0x100ba1d0
movaps xmm2, xmmword [0x102149a0]
mov ebx, 8
movaps xmm4, xmmword [0x10214db0]
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 [0x10214b30]
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x102149e0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str._UeXOPaZ._____F]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x10], 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 [0x10214a10]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x14]
xorps xmm1, xmm0
movd dword [esp + 0x14], xmm1
nop
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 0xf
jl 0x100ba1d0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x10533960
mov dword [0x10533990], eax
call fcn.101b57ac
add esp, 4
mov eax, dword [0x105339d4]
cmp eax, dword [esi + 4]
jle 0x100ba3e8
push 0x105339d4
call fcn.101b57fd
add esp, 4
cmp dword [0x105339d4], 0xffffffff
jne 0x100ba3e8
cmp byte [0x102071ab], 0
mov eax, dword [0x1023fc88]
movups xmm0, xmmword [0x10207198]
mov esi, dword [eax + 8]
mov eax, dword [0x102071a8]
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x38], eax
je 0x100ba3c8
xor ebx, ebx
cmp edi, 2
jl 0x100ba3a0
movaps xmm0, xmmword [0x10214b30]
lea edx, [esp + 0x2c]
movaps xmm4, xmmword [0x102149a0]
movaps xmm3, xmmword [0x10214db0]
movaps xmm5, xmmword [0x10214a10]
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
psrad xmm1, 4
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 [0x10214ac0]
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
punpckhdq xmm0, xmm2
punpckldq xmm1, 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, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100ba2a3
cmp ebx, 0x14
jge 0x100ba3c8
nop dword [eax]
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x28], cl
inc ebx
cmp ebx, 0x14
jl 0x100ba3a0
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x105339d4
mov dword [0x105339ec], eax
call fcn.101b57ac
add esp, 4
mov ecx, dword [0x105339d8]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x105335c8]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x10533990]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x105339ec]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x1023fc80]
cmp byte [eax + 0x1930], 0
je case.0x100ba442.0
mov ecx, dword [eax + 0x1934]
add eax, 0x1934
cmp ecx, 3
ja case.0x100ba442.0
jmp dword [ecx*4 + 0x100ba494]
mov ecx, eax
call fcn.100c92e0
jmp 0x100ba455
mov al, byte [eax + 0x20]
test al, al
je case.0x100ba442.0
mov eax, dword [0x10241574]
mov ecx, dword [eax]
test ecx, ecx
je case.0x100ba442.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je case.0x100ba442.0
mov eax, dword [0x1023fc7c]
mov eax, dword [eax + 8]
mov byte [eax + 0xa9], 0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret