Function at 0x100a8700
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c
call fcn.10107480
mov eax, dword [0x101be8d0]
xor eax, esp
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x5c]
mov ebp, dword [esi + 0x54]
mov ebx, ecx
shr ebx, 4
mov dword [esp + 0x1c], eax
push edi
mov edi, dword [esi + 0x50]
xor edx, edx
mov eax, ebx
add eax, edi
adc edx, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x100a87cb
xor edx, edx
cmp eax, eax
jne 0x100a87cb
cmp dword [esp + 0x18], edx
jne 0x100a87cb
cmp dword [esi + 0x10], edx
je 0x100a87cb
xor ecx, ecx
shr eax, 1
je 0x100a8775
jmp 0x100a8770
inc ecx
shr eax, 1
jne 0x100a8770
push ecx
push esi
call fcn.100a7d70
add esp, 8
test eax, eax
jne 0x100a8798
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.101044ca
add esp, 0x4c
ret
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x98]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x88]
push ecx
mov ecx, dword [esp + 0x1c]
inc edx
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esi + 0x10]
push ebx
push ecx
push edx
call eax
add esp, 0x20
jmp 0x100a8927
add edi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x18]
ja 0x100a892f
jb 0x100a87e5
cmp edi, eax
ja 0x100a892f
mov eax, edi
and eax, 1
xor ebx, ebx
or eax, ebx
mov ecx, edi
mov edx, ebp
mov dword [esp + 0x1c], 0
jne 0x100a8815
lea esp, [esp]
inc dword [esp + 0x1c]
shrd ecx, edx, 1
mov eax, ecx
and eax, 1
xor ebx, ebx
shr edx, 1
or eax, ebx
je 0x100a8800
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call fcn.100a7d70
add esp, 8
test eax, eax
je 0x100a8783
mov edx, dword [eax]
xor dword [esi + 0x88], edx
mov ecx, dword [eax + 4]
xor dword [esi + 0x8c], ecx
mov edx, dword [eax + 8]
xor dword [esi + 0x90], edx
mov eax, dword [eax + 0xc]
xor dword [esi + 0x94], eax
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
mov eax, edi
sub eax, dword [esi + 0x50]
dec eax
shl eax, 4
add eax, dword [esp + 0x20]
xor ecx, dword [eax]
xor edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor ecx, dword [esi + 0x90]
xor edx, dword [esi + 0x94]
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edx
push ecx
lea edx, [esp + 0x30]
push edx
call eax
mov ecx, dword [esi + 0x88]
xor ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x8c]
xor edx, dword [esp + 0x48]
mov eax, edi
sub eax, dword [esi + 0x50]
add esp, 0xc
dec eax
shl eax, 4
add eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x90]
xor ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x94]
xor edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov dword [eax + 0xc], edx
xor dword [esi + 0x98], ecx
mov edx, dword [eax + 4]
xor dword [esi + 0x9c], edx
mov ecx, dword [eax + 8]
xor dword [esi + 0xa0], ecx
mov edx, dword [eax + 0xc]
xor dword [esi + 0xa4], edx
add edi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x18]
jb 0x100a87e5
ja 0x100a8923
cmp edi, dword [esp + 0x14]
jbe 0x100a87e5
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
and ecx, 0xf
mov edi, ecx
jbe 0x100a89fb
mov ecx, dword [esi + 0x20]
xor dword [esi + 0x88], ecx
mov edx, dword [esi + 0x24]
xor dword [esi + 0x8c], edx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
xor dword [esi + 0x90], ecx
mov ecx, dword [esi + 8]
xor dword [esi + 0x94], edx
lea eax, [esi + 0x88]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x100a89a2
mov edx, dword [esp + 0x20]
mov ecx, ebx
shl ecx, 4
lea ebp, [ecx + edx]
mov edx, dword [esp + 0x10]
mov ecx, ebx
shl ecx, 4
add ecx, edx
mov dl, byte [eax + ebp]
xor dl, byte [esp + eax + 0x48]
inc eax
mov byte [ecx + eax - 1], dl
cmp eax, edi
jb 0x100a8992
xor eax, eax
shl ebx, 4
add ebx, dword [esp + 0x10]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.10105350
mov byte [esp + edi + 0x34], 0x80
mov ecx, dword [esp + 0x34]
xor dword [esi + 0x98], ecx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
xor dword [esi + 0xa0], eax
mov ecx, dword [esp + 0x40]
xor dword [esi + 0x9c], edx
mov eax, dword [esp + 0x20]
add esp, 0xc
xor dword [esi + 0xa4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.101044ca
add esp, 0x4c
ret