Function at 0x1000cfe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x590
push ebx
push ebp
push esi
push edi
push 0x44
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], ecx
push 0
push eax
call fcn.10010380
mov esi, dword [esp + 0x5b0]
add esp, 0xc
mov ebp, dword [esp + 0x5a8]
mov edx, esi
mov ecx, ebp
mov eax, dword [edx]
lea edx, [edx + 4]
inc dword [esp + eax*4 + 0x50]
sub ecx, 1
jne 0x1000d011
cmp dword [esp + 0x50], ebp
jne 0x1000d046
mov eax, dword [esp + 0x5b8]
mov dword [eax], ecx
mov eax, dword [esp + 0x5bc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x590
ret 0x1c
mov edi, dword [esp + 0x5bc]
mov ecx, 1
mov eax, dword [edi]
cmp dword [esp + ecx*4 + 0x50], 0
jne 0x1000d061
inc ecx
cmp ecx, 0x10
jbe 0x1000d054
cmp eax, ecx
mov dword [esp + 0x20], ecx
mov edx, ecx
cmovae edx, eax
mov eax, 0x10
cmp dword [esp + eax*4 + 0x50], 0
jne 0x1000d07d
sub eax, 1
jne 0x1000d071
cmp edx, eax
mov dword [esp + 0x24], eax
mov ebx, eax
cmovbe ebx, edx
mov edx, 1
shl edx, cl
mov dword [esp + 0x1c], ebx
mov dword [edi], ebx
cmp ecx, eax
jae 0x1000d0ad
nop dword [eax]
sub edx, dword [esp + ecx*4 + 0x50]
js 0x1000d0b9
inc ecx
add edx, edx
cmp ecx, eax
jb 0x1000d0a0
mov ecx, edx
sub edx, dword [esp + eax*4 + 0x50]
mov dword [esp + 0x4c], edx
jns 0x1000d0cb
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x590
ret 0x1c
xor edx, edx
mov dword [esp + eax*4 + 0x50], ecx
mov dword [esp + 0x9c], edx
sub eax, 1
je 0x1000d0f3
xor ecx, ecx
nop
add edx, dword [esp + ecx + 0x54]
lea ecx, [ecx + 4]
mov dword [esp + ecx + 0x9c], edx
sub eax, 1
jne 0x1000d0e0
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x1000d114
mov eax, dword [esp + edx*4 + 0x98]
mov dword [esp + eax*4 + 0x120], ecx
inc eax
mov dword [esp + edx*4 + 0x98], eax
inc ecx
cmp ecx, ebp
jb 0x1000d0f5
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x120]
mov edx, dword [esp + 0x20]
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
or ebp, 0xffffffff
neg ebx
mov dword [esp + 0x2c], edi
xor esi, esi
mov dword [esp + 0x98], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0xe0], edi
mov dword [esp + 0x3c], edi
cmp edx, eax
jg 0x1000d3e4
mov edi, dword [esp + 0x5b8]
lea eax, [esp + 0x50]
lea eax, [eax + edx*4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
mov edi, esi
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x1000d3c6
nop word [eax + eax]
mov dword [esp + 0x44], eax
dec eax
mov dword [esp + 0x40], eax
lea eax, [ecx + ebx]
cmp edx, eax
jle 0x1000d298
mov esi, dword [esp + 0x24]
inc ebp
sub esi, eax
mov dword [esp + 0x18], eax
cmp esi, ecx
mov dword [esp + 0x30], ebp
mov ebx, edx
cmova esi, ecx
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x44]
jbe 0x1000d1f3
mov edx, dword [esp + 0x34]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x40]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x1000d1f3
nop dword [eax]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x1000d1f3
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x1000d1e0
mov ecx, ebx
mov esi, 1
shl esi, cl
lea eax, [esi*8 + 8]
push eax
call fcn.10013aa1
add esp, 4
test eax, eax
je 0x1000d40a
mov edx, dword [esp + 0x48]
lea ecx, [esi + 1]
add dword [edx + 8], ecx
lea ecx, [eax + 8]
mov edx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + ebp*4 + 0xe0], ecx
mov dword [edx], ecx
mov dword [eax], 0
test ebp, ebp
je 0x1000d281
mov eax, dword [esp + 0x1c]
add bl, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x18]
mov ecx, ebx
sub ecx, eax
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + ebp*4 + 0xdc]
mov dword [esp + ebp*4 + 0x98], edi
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + edx*8 + 4], eax
jmp 0x1000d285
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [ecx + ebx]
cmp edx, eax
jg 0x1000d1a4
mov al, dl
lea ebp, [esp + 0x120]
sub al, bl
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x5a8]
lea eax, [eax*4]
add eax, ebp
mov ebp, dword [esp + 0x28]
cmp ebp, eax
jb 0x1000d2c6
mov byte [esp + 0x10], 0x63
jmp 0x1000d315
mov ecx, dword [ebp]
add ebp, 4
mov eax, dword [esp + 0x5ac]
mov dword [esp + 0x28], ebp
cmp ecx, eax
jae 0x1000d2f1
cmp ecx, 0x100
mov word [esp + 0x14], cx
setb al
add al, 0xf
mov byte [esp + 0x10], al
jmp 0x1000d315
sub ecx, eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x5b4]
mov al, byte [eax + ecx*2]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x5b0]
mov ax, word [eax + ecx*2]
mov word [esp + 0x14], ax
mov ecx, edx
mov ebp, 1
sub ecx, ebx
mov edx, edi
shl ebp, cl
mov ecx, ebx
shr edx, cl
cmp edx, esi
jae 0x1000d355
mov eax, dword [esp + 0x3c]
lea ecx, [ebp*8]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea eax, [eax + edx*8]
mov dword [eax], ebx
add edx, ebp
mov dword [eax + 4], edi
add eax, ecx
cmp edx, esi
jb 0x1000d340
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, 1
lea ecx, [edx - 1]
shl eax, cl
test edi, eax
je 0x1000d36f
xor edi, eax
shr eax, 1
test edi, eax
jne 0x1000d367
mov ebp, dword [esp + 0x30]
xor edi, eax
mov eax, 1
mov dword [esp + 0x2c], edi
mov ecx, ebx
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + ebp*4 + 0x98]
je 0x1000d3b6
mov edx, dword [esp + 0x1c]
sub ebx, edx
mov eax, 1
mov ecx, ebx
dec ebp
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + ebp*4 + 0x98]
jne 0x1000d392
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x1000d190
mov eax, dword [esp + 0x34]
inc edx
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], eax
cmp edx, dword [esp + 0x24]
jle 0x1000d180
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x4c], 0
je 0x1000d037
cmp eax, 1
je 0x1000d037
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x590
ret 0x1c
test ebp, ebp
je 0x1000d435
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x1000d435
nop dword [eax]
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.10013aac
add esp, 4
mov eax, esi
test esi, esi
jne 0x1000d420
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x590
ret 0x1c