Function at 0x1000a500
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
mov ebx, dword [edi + 0x28]
lea eax, [ecx + edx*4]
xor esi, esi
cmp dword [eax], esi
je 0x1000a52a
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor eax, eax
cmp dword [edi + 0x10], esi
jle 0x1000a53d
mov ecx, dword [edi + 0x1c]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [edi + 0x10]
jl 0x1000a531
xor ebp, ebp
cmp dword [edi + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], ebp
jle 0x1000a5f7
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov eax, esi
shr eax, 5
test dword [ecx + eax*4], edx
je 0x1000a5dd
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + esi*4]
movzx ecx, word [eax + 8]
add eax, 8
cmp cx, 0xffff
je 0x1000a5dd
movsx ecx, cx
cmp ecx, dword [esp + 0x34]
jne 0x1000a5d0
mov ecx, dword [eax + 4]
mov ebp, dword [edi + 0x1c]
mov edx, ecx
shr edx, 5
lea edx, [ebp + edx*4]
and ecx, 0x1f
mov ebp, 1
shl ebp, cl
or dword [edx], ebp
mov ecx, dword [eax + 4]
mov ebp, 1
cmp ecx, dword [ebx + 0x10]
jne 0x1000a5bc
mov dword [esp + 0x14], ebp
mov edx, dword [ebx + 0x1c]
mov ecx, dword [edx + ecx*4]
cmp word [ecx], 0
jne 0x1000a5d0
mov dword [esp + 0x18], 0
movzx ecx, word [eax + 8]
add eax, 8
cmp cx, 0xffff
jne 0x1000a587
inc esi
cmp esi, dword [edi + 8]
jl 0x1000a558
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x1000a5f7
mov eax, dword [ebx + 8]
and eax, 1
jmp 0x1000a5f9
xor eax, eax
mov dword [esp + 0x24], 0
test eax, eax
je 0x1000a708
xor edx, edx
cmp dword [edi + 8], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
jle 0x1000a708
lea esp, [esp]
mov esi, dword [edi + 0x1c]
mov ecx, edx
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, edx
shr ecx, 5
test dword [esi + ecx*4], eax
je 0x1000a6ef
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax + edx*4]
movzx eax, word [esi + 8]
add esi, 8
cmp ax, 0xffff
je 0x1000a6ef
movsx edx, ax
cmp edx, dword [ebx + 4]
jle 0x1000a6d6
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x1f
mov ebp, 1
shl ebp, cl
mov ecx, dword [edi + 0x1c]
shr eax, 5
mov dword [esp + 0x24], 1
test dword [ecx + eax*4], ebp
jne 0x1000a6d6
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, ebx
call fcn.1000a840
add esp, 8
test eax, eax
je 0x1000a6d6
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x1c]
mov eax, ecx
shr eax, 5
lea eax, [edx + eax*4]
mov edx, 1
and ecx, 0x1f
mov ebp, edx
shl ebp, cl
mov dword [esp + 0x20], edx
or dword [eax], ebp
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 0x10]
jne 0x1000a6c2
mov dword [esp + 0x14], edx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx + eax*4]
cmp word [edx], 0
jne 0x1000a6d6
mov dword [esp + 0x18], 0
movzx eax, word [esi + 8]
add esi, 8
cmp ax, 0xffff
jne 0x1000a654
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
inc edx
cmp edx, dword [edi + 8]
mov dword [esp + 0x1c], edx
jl 0x1000a620
cmp dword [esp + 0x20], 0
jne 0x1000a609
test ebp, ebp
jne 0x1000a716
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [edi + 0x10]
cmp edx, 1
jne 0x1000a725
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
jmp 0x1000a73a
xor ecx, ecx
test edx, edx
jle 0x1000a73a
mov eax, dword [edi + 0x1c]
mov edi, edi
xor ecx, dword [eax]
add eax, 4
sub edx, 1
jne 0x1000a730
mov edx, dword [edi + 4]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], ecx
test edx, edx
jle 0x1000a7ab
mov ecx, dword [esp + 0x10]
cmp dword [eax + 4], ecx
jne 0x1000a7a1
mov ecx, dword [edi + 0x10]
cmp ecx, 1
je 0x1000a7a9
mov esi, dword [eax]
mov ebp, dword [edi + 0x1c]
add ecx, ecx
add ecx, ecx
cmp ecx, 4
jb 0x1000a77c
mov ebx, dword [ebp]
cmp ebx, dword [esi]
jne 0x1000a7a1
sub ecx, 4
add esi, 4
add ebp, 4
cmp ecx, 4
jae 0x1000a767
test ecx, ecx
je 0x1000a7a9
mov bl, byte [esi]
cmp bl, byte [ebp]
jne 0x1000a7a1
cmp ecx, 1
jbe 0x1000a7a9
mov bl, byte [esi + 1]
cmp bl, byte [ebp + 1]
jne 0x1000a7a1
cmp ecx, 2
jbe 0x1000a7a9
mov cl, byte [esi + 2]
cmp cl, byte [ebp + 2]
je 0x1000a7a9
dec edx
add eax, 0x20
test edx, edx
jg 0x1000a748
test edx, edx
jne 0x1000a803
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x30]
push edi
call fcn.1000a8f0
xor ecx, ecx
add esp, 8
cmp dword [edi + 0x10], ecx
jle 0x1000a7e1
lea ebx, [ebx]
mov edx, dword [edi + 0x1c]
mov edx, dword [edx + ecx*4]
mov esi, dword [eax]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, dword [edi + 0x10]
jl 0x1000a7d0
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
cmp dword [esp + 0x18], 0
mov dword [eax + 8], ecx
je 0x1000a803
or ecx, 8
mov dword [eax + 8], ecx
cmp dword [esp + 0x24], 0
jne 0x1000a82f
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x34]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x1c]
mov edi, dword [eax + 0xc]
mov dword [ecx + edx*8], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + edx*8 + 4], edi
mov dword [eax + 0xc], esi
mov word [eax + 0x10], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret