Function at 0x1000dab0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
push esi
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov eax, ebp
cmp ebp, 0x8000
jb 0x1000dad5
mov eax, 0x8000
push edi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 8]
push edi
push eax
call fcn.100190f0
xor cl, cl
mov eax, 1
add esp, 0xc
mov byte [esp + 0x14], cl
cmp ebp, eax
jbe 0x1000db03
xor cl, byte [eax + edi]
inc eax
cmp eax, ebp
jb 0x1000daf7
mov byte [esp + 0x14], cl
push 8
mov ecx, ebx
call fcn.1000a700
mov esi, dword [esp + 0x1c]
mov cl, byte [esp + 0x14]
mov dword [esi + 0x10], 0
cmp cl, byte [edi]
jne 0x1000ddb8
push ebp
push edi
mov ecx, ebx
call fcn.1000c810
mov ebp, eax
test ebp, ebp
je 0x1000dbae
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jbe 0x1000db76
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x1000db4e
mov edi, ecx
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.10018eca
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x1000db73
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x10], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0xc]
mov dword [ecx], ebp
mov dword [eax + 0x14], ecx
mov ecx, 3
lea edx, [eax + 0x1c]
mov dword [eax], 0x36
mov dword [eax + 0x24], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
mov ecx, ebx
call fcn.1000a6d0
push 1
mov ecx, ebx
mov edi, eax
call fcn.1000a700
test edi, 0x8000
je 0x1000dc5a
push ebx
call fcn.1000c710
mov ecx, dword [esp + 0x1c]
inc eax
add esp, 4
xor ebp, ebp
mov dword [esp + 0x14], eax
cmp dword [ebx], ecx
jae 0x1000ddb4
jmp 0x1000dbf4
mov eax, dword [esp + 0x14]
cmp ebp, eax
jae 0x1000dc5a
inc dword [esi + 0x24]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
cmp ecx, eax
jbe 0x1000dc37
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov edi, ecx
cmp ecx, eax
ja 0x1000dc16
mov edi, eax
mov eax, dword [esi + 0x20]
push edi
push eax
call fcn.10018eca
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
jne 0x1000dc34
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x20]
mov ecx, ebx
add edi, ebp
call fcn.1000a6d0
shr eax, 8
push 8
mov ecx, ebx
mov byte [edi], al
call fcn.1000a700
mov ecx, dword [esp + 0x18]
inc ebp
cmp dword [ebx], ecx
jb 0x1000dbf0
mov edx, dword [esp + 0x18]
cmp dword [ebx], edx
jae 0x1000ddb4
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jbe 0x1000dcac
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov edi, ecx
cmp ecx, eax
ja 0x1000dc84
mov edi, eax
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.10018eca
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x1000dca9
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [esi]
mov ecx, ebx
lea edi, [eax + edx*8]
call fcn.1000a6d0
mov ecx, ebx
test eax, 0x8000
jne 0x1000dcce
shr eax, 0xc
push 4
jmp 0x1000dcd6
shr eax, 0xa
sub eax, 0x18
push 6
mov dword [edi], eax
call fcn.1000a700
mov ecx, dword [edi]
test byte [ecx + 0x10029118], 4
je 0x1000dd05
mov ecx, ebx
call fcn.1000a6d0
test eax, 0xffff8000
setne dl
push 1
mov ecx, ebx
mov byte [edi + 4], dl
call fcn.1000a700
jmp 0x1000dd09
mov byte [edi + 4], 0
mov ecx, dword [edi]
lea eax, [edi + 0x18]
mov dword [eax], 3
mov dword [esp + 0x14], eax
lea eax, [edi + 8]
mov dword [eax], 3
movzx ebp, byte [ecx + 0x10029118]
and ebp, 3
mov ecx, 0
mov dword [edi + 0x24], ecx
mov dword [edi + 0x14], ecx
jle 0x1000dda5
movzx edx, byte [edi + 4]
push edx
push eax
mov ecx, ebx
call fcn.1000c950
cmp ebp, 2
jne 0x1000dd5d
movzx eax, byte [edi + 4]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.1000c950
jmp 0x1000dda5
cmp dword [edi + 8], 1
jne 0x1000dda5
mov edx, dword [edi]
test byte [edx + 0x10029118], 0x18
je 0x1000dda5
mov eax, dword [edi + 0xc]
cmp eax, 0x100
jl 0x1000dd7f
sub eax, 0x100
jmp 0x1000dda2
cmp eax, 0x88
jl 0x1000dd8d
sub eax, 0x108
jmp 0x1000dd9f
cmp eax, 0x10
jl 0x1000dd97
sub eax, 8
jmp 0x1000dd9f
cmp eax, 8
jl 0x1000dd9f
sub eax, 0x10
add eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x18]
inc dword [esi + 0x10]
cmp dword [ebx], eax
jb 0x1000dc66
mov ebp, dword [esp + 0x18]
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jbe 0x1000ddfe
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov edi, ecx
cmp ecx, eax
ja 0x1000ddd6
mov edi, eax
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.10018eca
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x1000ddfb
mov ecx, 0x1002bd54
call fcn.10006190
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x10], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
mov ecx, 3
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
lea edx, [eax + 0xc]
xor ecx, ecx
mov dword [eax], 0x16
mov dword [eax + 0x14], edx
cmp dword [esi + 0x10], ecx
jle 0x1000de5a
xor edx, edx
mov eax, dword [esi]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x1000de45
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x1000de51
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [esi + 0x10]
jl 0x1000de35
pop edi
test ebp, ebp
je 0x1000de67
push esi
mov ecx, ebx
call fcn.1000ca40
pop esi
pop ebp
pop ebx
ret 0xc