Function at 0x100b82e3
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0xb4]
mov dword [esi + 0xb0], edi
cmp eax, 2
jne 0x100b8320
push 1
call fcn.100b8090
test eax, eax
je 0x100b831a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.100b8120
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0xb4], edi
mov ebp, dword [esi + 0x38]
mov ecx, 8
sub ecx, ebp
mov ebp, dword [esi + 0x3c]
mov eax, dword [esi + 0xa0]
shr ebp, cl
shr ebp, 0x10
and ebp, 0xff
cmp eax, 0x25
mov eax, 0x100fb460
jb 0x100b834d
mov eax, 0x100fb490
mov edx, dword [esi + 0xac]
mov bl, byte [edx + eax + 0x10]
lea ecx, [edx + eax + 0x10]
xor edx, edx
mov dword [esp + 0x10], ecx
mov dl, byte [eax]
mov ecx, 8
xor edx, ebp
sub ecx, ebx
shr edx, cl
test edx, edx
je 0x100b8391
mov edx, dword [esp + 0x10]
sub edx, eax
mov bl, byte [edx + eax + 1]
inc edi
inc eax
mov ecx, 8
sub ecx, ebx
xor ebx, ebx
mov bl, byte [eax]
xor ebx, ebp
shr ebx, cl
test ebx, ebx
jne 0x100b8378
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edi + ecx]
mov ecx, dword [esi + 0x38]
add ecx, eax
mov eax, ecx
mov dword [esi + 0x38], ecx
cmp eax, 8
jb 0x100b83f4
lea ebx, [esi + 0x40]
mov ebp, 0xfffffff8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x100b83c7
mov ecx, ebx
call fcn.10007493
mov byte [esp + 0x10], al
jmp 0x100b83d0
mov dl, byte [eax]
inc eax
mov byte [esp + 0x10], dl
mov dword [ebx], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x10]
shl eax, 8
and ecx, 0xff
or eax, ecx
mov ecx, dword [esi + 0x38]
add ecx, ebp
mov dword [esi + 0x3c], eax
mov eax, ecx
mov dword [esi + 0x38], ecx
cmp eax, 8
jae 0x100b83b1
cmp edi, 9
jb 0x100b84bc
jne 0x100b8421
mov ebx, dword [esi + 0xb4]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
inc ebx
push edx
push eax
mov ecx, esi
mov dword [esi + 0xb4], ebx
call fcn.100b8120
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp edi, 0xe
mov dword [esi + 0xb4], 0
jne 0x100b8464
push 0x100fb4d0
mov ecx, esi
call fcn.100b8210
mov edi, eax
push 0xf
mov ecx, esi
add edi, 5
call fcn.100b8090
add eax, 0x7fff
push edi
push eax
mov ecx, esi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], eax
call fcn.100b8120
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x78]
push 0x100fb4c0
sub ecx, edi
mov ebp, edi
inc ecx
and ecx, 3
mov ebx, dword [esi + ecx*4 + 0x7c]
mov ecx, esi
call fcn.100b8210
mov edi, eax
cmp edi, 0xff
jne 0x100b84a5
cmp ebp, 0xa
jne 0x100b84a5
mov eax, dword [esi + 0xac]
pop edi
xor eax, 0x10
mov dword [esi + 0xac], eax
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp ebx, 0x100
jb 0x100b8528
mov edx, dword [esi + 0xc0]
inc edi
dec edx
cmp ebx, edx
jb 0x100b8528
inc edi
jmp 0x100b8528
mov eax, dword [esi + 0xa0]
push 0x100fb500
add eax, edi
mov dword [esi + 0xb4], 0
mov ecx, eax
shr ecx, 4
sub eax, ecx
mov ecx, esi
mov dword [esi + 0xa0], eax
call fcn.100b8210
and eax, 0xff
mov ebx, dword [esi + eax*4 + 0x4c4]
je 0x100b8528
mov ebp, dword [esi + ebx*4 + 0x14c4]
dec ebp
mov dword [esi + ebx*4 + 0x14c4], ebp
mov ecx, dword [esi + eax*4 + 0x4c0]
mov edx, dword [esi + ecx*4 + 0x14c4]
inc edx
mov dword [esi + ecx*4 + 0x14c4], edx
mov dword [esi + eax*4 + 0x4c4], ecx
mov dword [esi + eax*4 + 0x4c0], ebx
mov edx, dword [esi + 0x78]
add edi, 2
push edi
push ebx
mov dword [esi + edx*4 + 0x7c], ebx
mov eax, dword [esi + 0x78]
inc eax
mov ecx, esi
and eax, 3
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], eax
mov dword [esi + 0x70], ebx
call fcn.100b8120
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret