Function at 0x100a4470
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 0x100a44b0
push 1
call fcn.100a4220
test eax, eax
je 0x100a44aa
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.100a42b0
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, 0x100e39e8
jb 0x100a44dd
mov eax, 0x100e3a18
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 0x100a4521
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 0x100a4508
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 0x100a4584
lea ebx, [esi + 0x40]
mov ebp, 0xfffffff8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x100a4557
mov ecx, ebx
call fcn.1000672c
mov byte [esp + 0x10], al
jmp 0x100a4560
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 0x100a4541
cmp edi, 9
jb 0x100a464c
jne 0x100a45b1
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.100a42b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp edi, 0xe
mov dword [esi + 0xb4], 0
jne 0x100a45f4
push 0x100e3a58
mov ecx, esi
call fcn.100a43a0
mov edi, eax
push 0xf
mov ecx, esi
add edi, 5
call fcn.100a4220
add eax, 0x7fff
push edi
push eax
mov ecx, esi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], eax
call fcn.100a42b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x78]
push 0x100e3a48
sub ecx, edi
mov ebp, edi
inc ecx
and ecx, 3
mov ebx, dword [esi + ecx*4 + 0x7c]
mov ecx, esi
call fcn.100a43a0
mov edi, eax
cmp edi, 0xff
jne 0x100a4635
cmp ebp, 0xa
jne 0x100a4635
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 0x100a46b8
mov edx, dword [esi + 0xc0]
inc edi
dec edx
cmp ebx, edx
jb 0x100a46b8
inc edi
jmp 0x100a46b8
mov eax, dword [esi + 0xa0]
push 0x100e3a88
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.100a43a0
and eax, 0xff
mov ebx, dword [esi + eax*4 + 0x4c4]
je 0x100a46b8
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.100a42b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret