Function at 0x10014c67
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xe0
push ebx
mov ebx, dword [ebp + 0x78]
push esi
shr ebx, 3
cmp byte [ebp + 0x7c], 0
push edi
je 0x10014c90
lea ebx, [ebx*8 + 0x10]
lea eax, [ebx - 8]
mov dword [ebp + 0x50], eax
jmp 0x10014c9a
lea ebx, [ebx*8 - 8]
mov dword [ebp + 0x50], ebx
mov esi, dword [ebp + 0x70]
cmp dword [esi + 0x14], ebx
jae 0x10014cbb
call fcn.1001485a
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_malloc
mov dword [esi + 0x10], eax
mov byte [eax + ebx], 0
pop ecx
mov dword [esi + 0x14], ebx
lea eax, [ebp - 0x78]
push eax
push esi
mov dword [esi + 0x18], ebx
call fcn.10014b18
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 8]
push eax
call fcn.10014b18
cmp byte [ebp + 0x7c], 0
mov edi, dword [esi + 0x10]
je 0x10014d3e
xor esi, esi
call sub.MSVCRT.dll_rand
sar eax, 4
and eax, 0x800000ff
jns 0x10014cf6
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + esi + 0x54], al
inc esi
cmp esi, 8
jb 0x10014ce0
xor eax, eax
cmp byte [ebp + 0x7c], 1
sete al
and dword [ebp + 0x64], 0
mov esi, eax
mov eax, dword [ebp + 0x64]
and eax, 1
imul eax, eax, 0x60
push esi
push edi
lea ecx, [ebp + 0x54]
lea eax, [ebp + eax - 0x78]
push ecx
call fcn.10014a38
xor eax, eax
test esi, esi
sete al
inc dword [ebp + 0x64]
cmp dword [ebp + 0x64], 3
mov esi, eax
jb 0x10014d0f
add edi, 8
jmp 0x10014d46
add dword [ebp + 0x74], 8
sub dword [ebp + 0x78], 8
mov eax, dword [ebp + 0x78]
and dword [ebp + 0x78], 0
cmp dword [ebp + 0x50], 0
mov dword [ebp + 0x5c], eax
jbe 0x10014e77
xor ecx, ecx
cmp byte [ebp + 0x7c], 1
mov esi, edi
sete cl
mov dword [ebp + 0x48], ecx
mov ecx, dword [ebp + 0x74]
sub ecx, edi
mov dword [ebp + 0x4c], ecx
jmp 0x10014d78
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x4c]
test eax, eax
push 8
jne 0x10014d8b
lea eax, [ebp + 0x54]
push 8
push eax
call sub.MSVCRT.dll_memset
jmp 0x10014dc6
pop edx
cmp eax, edx
jae 0x10014db9
mov ecx, edx
sub ecx, eax
push ecx
sub edx, eax
push edx
lea eax, [ebp + eax + 0x54]
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x4c]
add eax, esi
push eax
lea eax, [ebp + 0x54]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
jmp 0x10014dc9
push edx
add ecx, esi
push ecx
lea eax, [ebp + 0x54]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0x7c], 0
je 0x10014df3
mov eax, dword [ebp + 0x78]
lea eax, [eax + edi - 8]
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x54]
xor ecx, ecx
sub dword [ebp + 0x64], eax
mov edx, dword [ebp + 0x64]
lea eax, [ebp + ecx + 0x54]
mov dl, byte [edx + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 8
jb 0x10014de1
mov eax, dword [ebp + 0x48]
and dword [ebp + 0x64], 0
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x64]
push dword [ebp + 0x60]
and eax, 1
imul eax, eax, 0x60
push esi
lea ecx, [ebp + 0x54]
lea eax, [ebp + eax - 0x78]
push ecx
call fcn.10014a38
xor eax, eax
cmp dword [ebp + 0x60], eax
push 8
sete al
push esi
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x54]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
inc dword [ebp + 0x64]
cmp dword [ebp + 0x64], 3
jb 0x10014dfd
cmp byte [ebp + 0x7c], 0
jne 0x10014e60
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
lea ecx, [ecx + eax - 8]
mov eax, esi
sub ecx, esi
mov dword [ebp + 0x60], 8
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp + 0x60]
jne 0x10014e55
add dword [ebp + 0x78], 8
mov eax, dword [ebp + 0x78]
sub dword [ebp + 0x5c], 8
add esi, 8
cmp eax, dword [ebp + 0x50]
jb 0x10014d72
cmp byte [ebp + 0x7c], 0
jne 0x10014eb6
mov cl, byte [edi + ebx - 1]
cmp cl, 8
ja 0x10014eb6
movzx esi, cl
mov edx, ebx
lea eax, [ebx - 2]
sub edx, esi
jmp 0x10014e98
cmp byte [eax + edi], cl
jne 0x10014eb6
dec eax
cmp eax, edx
ja 0x10014e92
test cl, cl
je 0x10014eb6
push esi
sub edi, esi
push 0
add edi, ebx
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x70]
add esp, 0xc
sub dword [eax + 0x18], esi
pop edi
pop esi
mov al, 1
pop ebx
add ebp, 0x68
leave
ret 0x10