Function at 0x100a8a20
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 0x100a8a60
push 1
call fcn.100a9ab0
test eax, eax
je 0x100a8a5a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.100a8860
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, 0x100ea170
jb 0x100a8a8d
mov eax, 0x100ea1a0
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 0x100a8ad1
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 0x100a8ab8
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 0x100a8b34
lea ebx, [esi + 0x40]
mov ebp, 0xfffffff8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x100a8b07
mov ecx, ebx
call fcn.100062f9
mov byte [esp + 0x10], al
jmp 0x100a8b10
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 0x100a8af1
cmp edi, 9
jb 0x100a8bfc
jne 0x100a8b61
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.100a8860
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp edi, 0xe
mov dword [esi + 0xb4], 0
jne 0x100a8ba4
push 0x100ea1e0
mov ecx, esi
call fcn.100a8950
mov edi, eax
push 0xf
mov ecx, esi
add edi, 5
call fcn.100a9ab0
add eax, 0x7fff
push edi
push eax
mov ecx, esi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], eax
call fcn.100a8860
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x78]
push 0x100ea1d0
sub ecx, edi
mov ebp, edi
inc ecx
and ecx, 3
mov ebx, dword [esi + ecx*4 + 0x7c]
mov ecx, esi
call fcn.100a8950
mov edi, eax
cmp edi, 0xff
jne 0x100a8be5
cmp ebp, 0xa
jne 0x100a8be5
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 0x100a8c68
mov edx, dword [esi + 0xc0]
inc edi
dec edx
cmp ebx, edx
jb 0x100a8c68
inc edi
jmp 0x100a8c68
mov eax, dword [esi + 0xa0]
push 0x100ea210
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.100a8950
and eax, 0xff
mov ebx, dword [esi + eax*4 + 0x4c4]
je 0x100a8c68
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.100a8860
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret