Function at 0x4eeaa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
call fcn.004ed355
pop ecx
test eax, eax
jne 0x4eed2e
cmp dword [ebp + 0x10], eax
setne al
test eax, eax
jne 0x4eed2e
mov edx, dword [ebp + 0x18]
imul edi, edi, 0x68
test byte [ebp + 0x18], 7
mov eax, dword [edi + 0x544e68]
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
pop ecx
setne cl
shr edx, 3
mov dword [ebp - 0x14], eax
add ecx, edx
mov esi, ecx
cmp ebx, esi
ja 0x4eed29
lea eax, [eax + ebx + 2]
cmp esi, eax
jb 0x4eed29
push esi
call sub.MSVCRT.dll_malloc
push esi
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_malloc
push esi
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_malloc
push esi
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_malloc
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ecx
je 0x4eecf8
cmp dword [ebp - 0xc], ecx
je 0x4eecef
cmp dword [ebp - 8], ecx
je 0x4eecef
cmp eax, ecx
je 0x4eecef
cmp ebx, ecx
jbe 0x4eeb7b
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
imul eax, eax, 0x28
push ebx
push dword [ebp - 8]
call dword [eax + 0x544f44]
add esp, 0xc
cmp eax, ebx
je 0x4eeb7b
push 9
pop ebx
jmp 0x4eecc8
lea eax, [ebp - 0x18]
push eax
call dword [edi + 0x544eb4]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4eecc8
push 8
push dword [ebp - 4]
call fcn.004ed33b
push 8
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
call dword [edi + 0x544eb8]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4eecc8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push dword [ebp - 0x20]
push eax
call dword [edi + 0x544eb8]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4eecc8
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [edi + 0x544eb8]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4eecc8
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call dword [edi + 0x544ebc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4eecc8
mov edi, esi
sub edi, dword [ebp - 0x14]
mov eax, edi
sub eax, dword [ebp + 8]
dec eax
dec eax
push eax
push ebx
mov ebx, dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
neg eax
push dword [ebp - 8]
mov dword [ebp + 0x10], eax
sub eax, dword [ebp + 8]
lea eax, [eax + esi - 2]
add eax, ebx
mov byte [eax], 1
inc eax
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add esp, 0x18
dec edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.004eefe7
mov ebx, eax
test ebx, ebx
jne 0x4eecc8
test edi, edi
jbe 0x4eec74
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov edx, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x4eec6b
mov eax, dword [ebp + 0x20]
cmp dword [eax], esi
jae 0x4eec80
push 6
pop ebx
jmp 0x4eecc6
push edi
push dword [ebp - 4]
mov edi, dword [ebp + 0x1c]
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x14]
lea ebx, [eax + esi - 1]
push dword [ebp - 0x10]
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
mov ecx, esi
shl ecx, 3
sub ecx, dword [ebp + 0x18]
add ebx, eax
add esp, 0x18
inc ecx
mov eax, 0xff
sar eax, cl
mov byte [ebx + edi], 0xbc
and byte [edi], al
mov eax, dword [ebp + 0x20]
xor ebx, ebx
mov dword [eax], esi
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
push dword [ebp - 8]
call sub.MSVCRT.dll_free
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
push dword [ebp - 4]
call sub.MSVCRT.dll_free
add esp, 0x10
mov eax, ebx
jmp 0x4eed2c
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 0xc], 0
je 0x4eed07
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 8], 0
je 0x4eed16
push dword [ebp - 8]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 0x10], 0
je 0x4eed25
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
push 0xd
jmp 0x4eed2b
push 0x16
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x1c