Function at 0x100a8797
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 3
mov eax, dword [edi + 0x444]
mov ecx, dword [edi + 0x458]
shl eax, 3
sub ecx, eax
lea eax, [esi + 0x18]
cmp edx, ecx
mov dword [ebp - 0x2c], eax
cmovg edx, ecx
xor ebx, ebx
pop ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100a8b47
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
movzx ecx, byte [eax*2 + 0x1019c650]
movzx eax, byte [eax*2 + 0x1019c651]
mov dword [ebp - 0x28], eax
mov eax, ecx
shl eax, 4
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x100a882a
mov eax, dword [ebp - 0x10]
shl eax, 3
push eax
lea eax, [ebx + 0x20]
push ecx
lea eax, [esi + eax*4]
push eax
call fcn.10134340
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp - 0xc]
lea ebx, [ebx + eax*2]
jmp 0x100a8b44
cmp dword [ebp - 0x10], 0
jle 0x100a8b44
lea eax, [ebx + 0x21]
lea eax, [esi + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x454]
mov dword [ebp - 0x24], eax
cmp eax, edx
jl 0x100a886e
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.100aad02
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x24], edx
jge 0x100a8b41
mov eax, dword [ebp - 0x18]
lea esi, [edi + 0x44c]
mov ecx, dword [esi + 8]
mov edi, dword [esi]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x10300784]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, ecx
shr eax, 3
and ecx, 7
mov eax, dword [eax + edi]
mov edi, dword [ebp - 0x18]
bswap eax
shl eax, cl
shr eax, 0x19
mov ecx, dword [edi + 0x10300784]
mov edi, dword [ebp + 8]
movsx edx, word [edx + eax*4]
movsx ecx, word [ecx + eax*4 + 2]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jns 0x100a8957
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
add eax, 7
mov edi, dword [esi]
cmp ecx, eax
mov dword [ebp - 4], ecx
cmova ecx, eax
mov eax, dword [ebp - 0x1c]
neg eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], eax
mov eax, ecx
shr eax, 3
and ecx, 7
push 0x20
mov eax, dword [eax + edi]
mov edi, dword [ebp + 8]
bswap eax
shl eax, cl
pop ecx
sub ecx, dword [ebp - 0x30]
shr eax, cl
add eax, edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x10300784]
movsx edx, word [ecx + eax*4]
movsx ecx, word [ecx + eax*4 + 2]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jns 0x100a8957
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
mov esi, dword [esi]
mov dword [ebp - 4], ecx
cmova ecx, eax
mov eax, ecx
mov dword [ebp - 4], ecx
shr eax, 3
and ecx, 7
mov eax, dword [eax + esi]
lea esi, [edi + 0x44c]
bswap eax
shl eax, cl
mov ecx, dword [ebp - 0x1c]
add ecx, 0x20
shr eax, cl
add eax, edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x10300784]
movsx edx, word [ecx + eax*4]
movsx ecx, word [ecx + eax*4 + 2]
mov eax, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
cmova ecx, eax
mov dword [esi + 8], ecx
test edx, edx
jne 0x100a8978
mov eax, dword [ebp - 8]
and dword [eax], edx
and dword [eax - 4], edx
jmp 0x100a8b26
mov eax, dword [ebp + 0x10]
movsx esi, word [eax + ebx*2]
mov dword [ebp - 0x1c], esi
test dl, 0x10
je 0x100a8a87
mov eax, edx
and edx, 0xf
sar eax, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], edx
cmp eax, 0xf
jge 0x100a89c8
lea eax, [edi + 0x44c]
push eax
call fcn.100e441c
pop ecx
mov ecx, esi
neg eax
shl ecx, 4
add ecx, dword [ebp - 0x30]
mov ecx, dword [ecx*4 + 0x1032d038]
xor ecx, eax
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [eax - 4], ecx
jmp 0x100a8a0d
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x100a89e5
push ecx
lea eax, [edi + 0x44c]
push eax
call fcn.100a8755
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x30]
jmp 0x100a89e7
xor ecx, ecx
add eax, ecx
push esi
push eax
call fcn.100a8f0b
mov esi, eax
lea eax, [edi + 0x44c]
push eax
call fcn.100e441c
add esp, 0xc
test eax, eax
je 0x100a8a07
neg esi
mov eax, dword [ebp - 8]
mov dword [eax - 4], esi
mov esi, dword [ebp - 4]
cmp esi, 0xf
jae 0x100a8a41
lea eax, [edi + 0x44c]
push eax
call fcn.100e441c
pop ecx
mov ecx, dword [ebp - 0x1c]
neg eax
shl ecx, 4
add ecx, esi
mov ecx, dword [ecx*4 + 0x1032d038]
xor ecx, eax
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x100a8b26
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100a8a59
push eax
lea eax, [edi + 0x44c]
push eax
call fcn.100a8755
pop ecx
pop ecx
jmp 0x100a8a5b
xor eax, eax
push dword [ebp - 0x1c]
add eax, esi
push eax
call fcn.100a8f0b
mov esi, eax
lea eax, [edi + 0x44c]
push eax
call fcn.100e441c
add esp, 0xc
test eax, eax
je 0x100a8a7d
neg esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
jmp 0x100a8b26
mov esi, edx
sar edx, 5
and esi, 0xf
add edx, esi
mov dword [ebp - 4], edx
cmp edx, 0xf
jge 0x100a8abe
lea eax, [edi + 0x44c]
push eax
call fcn.100e441c
pop ecx
mov ecx, dword [ebp - 0x1c]
neg eax
shl ecx, 4
add ecx, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x1032d038]
xor ecx, eax
sub ecx, eax
jmp 0x100a8b02
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100a8ad9
push eax
lea eax, [edi + 0x44c]
push eax
call fcn.100a8755
mov edx, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x100a8adb
xor eax, eax
push dword [ebp - 0x1c]
add eax, edx
push eax
call fcn.100a8f0b
mov dword [ebp - 0x24], eax
lea eax, [edi + 0x44c]
push eax
call fcn.100e441c
add esp, 0xc
test eax, eax
je 0x100a8aff
neg dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
xor eax, eax
test esi, esi
setne al
add eax, 0x20
add eax, ebx
neg esi
sbb esi, esi
add esi, 0x21
mov dword [edx + eax*4], ecx
add esi, ebx
mov eax, edx
and dword [eax + esi*4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, 8
mov edx, dword [ebp - 0xc]
dec ecx
add ebx, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test ecx, ecx
jg 0x100a883d
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
add eax, 4
sub ecx, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
jne 0x100a87d3
movzx eax, byte [esi + 0x31]
xor ecx, ecx
shl eax, 4
add eax, 0x10304308
mov dword [ebp - 0x24], eax
cmp ebx, 0x23c
jg 0x100a8cdd
lea eax, [ebx + 0x22]
lea eax, [esi + eax*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x454]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
cmp eax, edx
jl 0x100a8bc7
mov esi, dword [ebp + 0x14]
cmp eax, esi
jle 0x100a8ba1
test ecx, ecx
jne 0x100a8c90
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.100aad02
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], edx
cmp eax, edx
jge 0x100a8cdd
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push 0x20
mov esi, dword [eax + 4]
lea eax, [edi + 0x44c]
mov edx, dword [eax + 8]
mov ecx, edx
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
shr ecx, 3
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
mov ecx, edx
and ecx, 7
bswap eax
shl eax, cl
pop ecx
sub ecx, dword [esi]
mov esi, dword [ebp - 0x34]
shr eax, cl
movsx ecx, word [esi + eax*4]
movsx eax, word [esi + eax*4 + 2]
mov esi, dword [ebp - 0x2c]
add eax, edx
mov edx, dword [ebp - 0x30]
cmp edi, eax
mov dword [ebp - 0x34], ecx
cmova edi, eax
xor eax, eax
mov dword [edx + 8], edi
mov edi, ecx
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi - 4], eax
mov dword [esi - 8], eax
test edi, edi
je 0x100a8c71
mov ecx, dword [edi*4 + 0x1019caf8]
push 8
pop eax
sar eax, cl
push edx
lea esi, [ecx + ebx]
xor edi, eax
call fcn.100e441c
mov edx, dword [ebp - 0x30]
neg eax
pop ecx
mov ecx, dword [ebp + 0x10]
movsx ecx, word [ecx + esi*2]
mov ecx, dword [ecx*4 + 0x1032c838]
xor ecx, eax
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + esi*4 + 0x80], ecx
test edi, edi
jne 0x100a8c31
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
add ebx, 4
add esi, 0x10
mov dword [ebp - 0x2c], esi
cmp ebx, 0x23c
jg 0x100a8cdd
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
jmp 0x100a8b82
sub ecx, eax
sub ebx, 4
push ecx
lea eax, [edi + 0x44c]
mov dword [ebp - 0x28], ecx
push eax
call fcn.1009dbe7
mov edx, dword [ebp - 0xc]
mov eax, esi
sub eax, dword [ebp - 0x34]
sub edx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push edx
push eax
push str.overread__skip__d_enddists:__d__d_n
push 0x20
push dword [edi + 0x80ac]
call fcn.1006b450
add esp, 0x20
test dword [edi + 0x80a8], 0x20002
push 0
pop eax
cmovne ebx, eax
jmp 0x100a8ce0
mov esi, dword [ebp + 0x14]
sub esi, dword [edi + 0x454]
jns 0x100a8cf4
test dword [edi + 0x80a8], 0x20004
jne 0x100a8d04
test esi, esi
jle 0x100a8d1c
test dword [edi + 0x80a8], 0x40004
je 0x100a8d1c
push esi
push str.bits_left_d_n
push 0x10
push dword [edi + 0x80ac]
call fcn.1006b450
add esp, 0x10
xor ebx, ebx
mov ecx, ebx
mov eax, 0x900
shl ecx, 2
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
sub eax, 0xffffff80
add eax, ecx
push 0
push eax
call fcn.10134340
lea eax, [edi + 0x44c]
push esi
push eax
call fcn.1009dbe7
mov eax, dword [edi + 0x454]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.100aad02
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret