Function at 0x100b8f70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x102230c0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword fs:[0x2c]
mov edx, dword [0x10241d9c]
push ebx
mov bl, cl
push esi
mov ecx, dword [eax + edx*4]
mov eax, dword [0x105349cc]
push edi
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ecx
cmp eax, dword [ecx + 4]
jle 0x100b8fd4
push 0x105349cc
call fcn.101b633d
add esp, 4
cmp dword [0x105349cc], 0xffffffff
jne 0x100b8fd4
push 0x101e23f0
call fcn.101b6089
push 0x105349cc
call fcn.101b62ec
add esp, 8
mov eax, dword [0x10240c80]
mov edi, dword [0x10241d90]
mov dl, byte [0x104692e1]
mov cl, byte [eax + 0x1679]
test cl, cl
jne 0x100b8ffc
cmp byte [eax + 0x179e], 0
je 0x100b919c
test dl, dl
jne 0x100b918c
mov eax, dword [0x10240c88]
movq xmm0, qword [0x101efb40]
mov esi, dword [eax + 0x20]
mov eax, dword [0x101efb48]
mov dword [esp + 0x1c], eax
mov ax, word [0x101efb4c]
movq qword [esp + 0x14], xmm0
mov word [esp + 0x20], ax
test ah, ah
je 0x100b916e
xor ebx, ebx
cmp edi, 2
jl 0x100b9140
movaps xmm2, xmmword [0x10215760]
mov ebx, 8
movaps xmm3, xmmword [0x10215c00]
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 [0x10215810]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x102157a0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x102158a0]
movd xmm0, dword [0x101efb40]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x102158e0]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], 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 [0x10215810]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x102158a0]
movd xmm0, dword [esp + 0x18]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x102158e0]
xorps xmm1, xmm0
movd dword [esp + 0x18], xmm1
nop dword [eax + eax]
mov eax, 0x8fb823ef
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, 0x39
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x14], cl
inc ebx
cmp ebx, 0xe
jl 0x100b9140
mov bl, byte [esp + 0xf]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x10240164
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
mov byte [0x104692e1], 1
jmp 0x100b91bb
test cl, cl
jne 0x100b9198
cmp byte [eax + 0x179e], cl
je 0x100b919c
test bl, bl
je 0x100b91c0
test dl, dl
je 0x100b91c0
mov eax, dword [0x10240c88]
push 0x10240164
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104692e1], 0
mov eax, dword [0x10240c80]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x105349a4]
cmp ecx, dword [edx + 4]
jle 0x100b9204
push 0x105349a4
call fcn.101b633d
add esp, 4
cmp dword [0x105349a4], 0xffffffff
jne 0x100b91ff
push 0x101e23e0
call fcn.101b6089
push 0x105349a4
call fcn.101b62ec
add esp, 8
mov eax, dword [0x10240c80]
mov dl, byte [eax + 0x1679]
mov cl, byte [0x104692e0]
test dl, dl
jne 0x100b9221
cmp byte [eax + 0x179e], 0
je 0x100b93cd
test cl, cl
jne 0x100b93bd
mov eax, dword [0x10240c88]
movq xmm0, qword [0x101efb40]
mov esi, dword [eax + 0x20]
mov eax, dword [0x101efb48]
mov dword [esp + 0x1c], eax
mov ax, word [0x101efb4c]
movq qword [esp + 0x14], xmm0
mov word [esp + 0x20], ax
test ah, ah
je 0x100b938f
xor ecx, ecx
cmp edi, 2
jl 0x100b9365
movaps xmm2, xmmword [0x10215760]
mov ecx, 8
movaps xmm4, xmmword [0x10215c00]
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 [0x102158e0]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10215810]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x102157a0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x102158a0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x101efb40]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], 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 [0x10215810]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x102158a0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x18]
xorps xmm1, xmm0
movd dword [esp + 0x18], xmm1
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x32
xor byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0xe
jl 0x100b9365
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x10240170
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
pop edi
pop esi
mov byte [0x104692e0], 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101b5daa
add esp, 0x1c
ret
test dl, dl
jne 0x100b93c9
cmp byte [eax + 0x179e], dl
je 0x100b93cd
test bl, bl
je 0x100b93ec
test cl, cl
je 0x100b93ec
mov eax, dword [0x10240c88]
push 0x10240170
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104692e0], 0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b5daa
add esp, 0x1c
ret