Function at 0x100a5543
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 0x100a5580
push 1
call fcn.100a6650
test eax, eax
je 0x100a557a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.100a5380
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, 0x100e5ba8
jb 0x100a55ad
mov eax, 0x100e5bd8
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 0x100a55f1
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 0x100a55d8
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 0x100a5654
lea ebx, [esi + 0x40]
mov ebp, 0xfffffff8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x100a5627
mov ecx, ebx
call fcn.10005e21
mov byte [esp + 0x10], al
jmp 0x100a5630
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 0x100a5611
cmp edi, 9
jb 0x100a571c
jne 0x100a5681
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.100a5380
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp edi, 0xe
mov dword [esi + 0xb4], 0
jne 0x100a56c4
push 0x100e5c18
mov ecx, esi
call fcn.100a5470
mov edi, eax
push 0xf
mov ecx, esi
add edi, 5
call fcn.100a6650
add eax, 0x7fff
push edi
push eax
mov ecx, esi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], eax
call fcn.100a5380
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x78]
push 0x100e5c08
sub ecx, edi
mov ebp, edi
inc ecx
and ecx, 3
mov ebx, dword [esi + ecx*4 + 0x7c]
mov ecx, esi
call fcn.100a5470
mov edi, eax
cmp edi, 0xff
jne 0x100a5705
cmp ebp, 0xa
jne 0x100a5705
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 0x100a5788
mov edx, dword [esi + 0xc0]
inc edi
dec edx
cmp ebx, edx
jb 0x100a5788
inc edi
jmp 0x100a5788
mov eax, dword [esi + 0xa0]
push 0x100e5c48
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.100a5470
and eax, 0xff
mov ebx, dword [esi + eax*4 + 0x4c4]
je 0x100a5788
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.100a5380
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret