Function at 0x4d28c6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4dd52c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, edi
shl eax, 2
push eax
mov dword [ebp - 0x44], edi
lea ebx, [edi - 0x15]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
jne 0x4d290e
mov eax, 0xfffff447
jmp 0x4d2c0a
push esi
push dword [ebp - 0x38]
lea esi, [edi + eax]
lea eax, [esi + ebx]
add eax, ebx
mov dword [ebp - 0x1c], eax
add eax, ebx
add eax, 0x14
mov dword [ebp - 0x40], eax
add eax, 0x14
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], eax
call fcn.004cef17
cmp dword [ebp + 0x10], 0x2b67
jne 0x4d2aef
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
shl eax, 2
lea ecx, [eax - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov edx, ecx
shr edx, 2
mov edx, dword [eax + edx*4]
and ecx, 3
shl ecx, 3
shr edx, cl
test dl, dl
jne 0x4d298b
mov ecx, dword [ebp - 0x20]
dec ecx
mov dword [ebp - 0x24], ecx
dec dword [ebp - 0x20]
dec dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
shr edx, 2
mov edx, dword [eax + edx*4]
and ecx, 3
shl ecx, 3
shr edx, cl
test dl, dl
je 0x4d296d
lea eax, [edi - 0x2a]
cmp dword [ebp - 0x20], eax
jb 0x4d299d
mov esi, 0xfffff444
jmp 0x4d2bfd
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x4d29b8
mov esi, 0xfffff447
jmp 0x4d2bfd
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.004ceebf
mov eax, edi
shr eax, 1
inc eax
push eax
call fcn.004cf015
push 0xa0
push eax
mov dword [ebp - 0x24], eax
call fcn.004cf0fc
mov eax, dword [ebp - 0x1c]
add eax, ebx
push eax
push 0x14
push dword [ebp - 0x24]
call fcn.004ceebf
cmp dword [ebp - 0x24], 0
je 0x4d29fd
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0xe0]
push eax
call fcn.004d0ac5
push esi
lea eax, [ebp - 0xe0]
push eax
call fcn.004d2317
sub edi, dword [ebp - 0x20]
xor eax, eax
lea ecx, [edi - 0x2a]
mov edx, ecx
shr ecx, 2
mov dword [ebp - 0x28], edi
lea edi, [esi + 0x14]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add eax, esi
mov esi, dword [ebp - 0x3c]
mov byte [eax - 0x16], 1
lea edi, [eax - 0x15]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
push ebx
push 0x14
add eax, ebx
push eax
mov eax, dword [ebp - 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + ebx]
push esi
call fcn.004d2776
test ebx, ebx
jbe 0x4d2a83
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
sub esi, eax
sub edi, eax
mov ecx, ebx
mov dl, byte [esi + eax]
xor dl, byte [eax]
mov byte [edi + eax], dl
inc eax
dec ecx
jne 0x4d2a77
mov esi, dword [ebp - 0x40]
push 0x14
push ebx
push dword [ebp - 0x1c]
push esi
call fcn.004d2776
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
add eax, ebx
push 0x14
sub esi, eax
sub edi, eax
pop ecx
mov dl, byte [esi + eax]
xor dl, byte [eax]
mov byte [edi + eax], dl
inc eax
dec ecx
jne 0x4d2aa1
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
push 5
pop ecx
push dword [ebp - 0x38]
mov byte [eax], 0
push dword [ebp - 0x44]
lea edi, [eax + 1]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x15]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004d01b5
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4d2bfb
cmp dword [ebp + 0x10], 0x2b68
jne 0x4d2bfb
mov esi, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x28]
call fcn.004ceebf
cmp byte [esi], 0
je 0x4d2b18
mov esi, 0xfffff445
jmp 0x4d2bfd
mov edi, dword [ebp - 0x34]
push 5
inc esi
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
add esi, 0x15
rep movsd dword es:[edi], dword [esi]
push 0x14
mov ecx, eax
push ebx
push dword [ebp - 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x40]
push esi
call fcn.004d2776
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
sub edi, esi
add ecx, ebx
push 0x14
mov eax, esi
sub ecx, esi
pop esi
mov dl, byte [edi + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec esi
jne 0x4d2b5a
mov eax, dword [ebp - 0x1c]
push ebx
push 0x14
add eax, ebx
push eax
mov eax, dword [ebp - 0x2c]
lea esi, [eax + ebx]
push esi
call fcn.004d2776
test ebx, ebx
jbe 0x4d2b99
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
sub edi, esi
mov eax, esi
sub ecx, esi
mov esi, ebx
mov dl, byte [edi + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec esi
jne 0x4d2b8d
lea eax, [ebp - 0xe0]
push eax
call fcn.004d0ac5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004d2317
mov esi, dword [ebp - 0x2c]
mov edi, esi
lea ecx, [ebp - 0x18]
xor eax, eax
sub edi, ecx
mov dl, byte [ebp + eax - 0x18]
lea ecx, [edi + eax]
cmp dl, byte [ebp + ecx - 0x18]
jne 0x4d2b0e
inc eax
cmp eax, 0x14
jb 0x4d2bc1
jmp 0x4d2bdb
inc eax
cmp byte [eax + esi], 0
je 0x4d2bda
lea ecx, [eax + esi]
cmp byte [ecx], 1
jne 0x4d2b0e
push dword [ebp - 0x38]
sub ebx, eax
dec ebx
push ebx
inc ecx
push ecx
call fcn.004d01b5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.004a9585
leave
ret 0x10