Function at 0x4d2c1d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4dd52c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea esi, [edi - 1]
shr esi, 3
inc esi
cmp dword [ebp + 0x18], 0x2b67
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
lea ebx, [esi - 0x15]
jne 0x4d2da2
lea eax, [esi + esi*2 + 6]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x4d2dc5
add eax, 0x30
add eax, ebx
mov dword [ebp - 0x1c], eax
add eax, esi
shr edi, 4
inc edi
push edi
mov dword [ebp - 0x2c], eax
call fcn.004cf015
push 0xa0
push eax
mov dword [ebp - 0x24], eax
call fcn.004cf0fc
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 0x10]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push 5
pop ecx
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x20]
push 5
pop ecx
lea eax, [ebp - 0xd0]
add edi, 0x1c
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004d0ac5
mov esi, dword [ebp - 0x20]
push 0x30
push esi
lea eax, [ebp - 0xd0]
push eax
call fcn.004d2234
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004d2317
mov ecx, dword [ebp - 0x30]
add ecx, 0xffffffd6
lea edx, [esi + 0x30]
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x30]
push 5
pop ecx
lea eax, [edx + eax - 0x14]
mov edx, dword [ebp - 0x24]
mov byte [eax - 0x16], 1
mov esi, dword [edx + 0xc]
push ebx
lea edi, [eax - 0x15]
push 0x14
lea eax, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
push eax
push esi
call fcn.004d2776
and byte [esi], 0x7f
cmp ebx, 1
jbe 0x4d2d4f
mov ecx, dword [ebp - 0x20]
add ecx, 0x30
lea eax, [esi + 1]
sub ecx, esi
lea edi, [ebx - 1]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec edi
jne 0x4d2d46
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 5
pop ecx
push dword [ebp - 0x28]
lea edi, [eax + ebx]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov byte [eax - 1], 0xbc
call fcn.004cef17
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call fcn.004d01b5
push dword [ebp - 0x20]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x24]
call esi
pop ecx
jmp 0x4d2ee6
cmp dword [ebp + 0x18], 0x2b68
jne 0x4d2ee7
lea eax, [esi*4 - 0x10]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x4d2dcf
mov eax, 0xfffff447
jmp 0x4d2ee9
lea edi, [eax + esi]
lea ecx, [edi + ebx]
push eax
mov dword [ebp - 0x24], ecx
add ecx, 0x14
push esi
push dword [ebp - 0x34]
add ecx, ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], ecx
call fcn.004ceebf
cmp byte [edi - 1], 0xbc
jne 0x4d2ef8
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
push 5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ecx
lea esi, [eax + ebx]
mov eax, dword [ebp - 0x24]
push ebx
mov edi, eax
push 0x14
rep movsd dword es:[edi], dword [esi]
push eax
lea esi, [eax + 0x14]
push esi
call fcn.004d2776
and byte [esi], 0x7f
cmp ebx, 1
mov edi, dword [ebp - 0x2c]
jbe 0x4d2e45
mov ecx, esi
lea eax, [edi + 1]
sub ecx, edi
lea esi, [ebx - 1]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4d2e3c
xor eax, eax
mov byte [edi], 0
cmp byte [edi], al
jne 0x4d2e55
inc eax
cmp byte [eax + edi], 0
je 0x4d2e4e
lea edx, [eax + edi]
cmp byte [edx], 1
jne 0x4d2ef8
mov esi, dword [ebp + 0x10]
sub ebx, eax
dec ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x20]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 5
pop ecx
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x28]
mov eax, ecx
shr ecx, 2
lea esi, [edx + 1]
lea edi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0xd0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004d0ac5
mov eax, dword [ebp - 0x28]
add eax, 0x1c
push eax
push ebx
lea eax, [ebp - 0xd0]
push eax
call fcn.004d2234
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004d2317
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
xor esi, esi
sub eax, ecx
lea ecx, [ebp + esi - 0x18]
mov dl, byte [eax + ecx]
cmp dl, byte [ecx]
jne 0x4d2ef8
inc esi
cmp esi, 0x14
jb 0x4d2ecc
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x18
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, 0xfffff43d
jmp 0x4d2ee9