Function at 0x4d7080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
test eax, eax
je 0x4d72dd
dec eax
shr eax, 3
lea ebx, [ecx + 0x14]
inc eax
lea edi, [ecx + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi + 5]
shl eax, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
movzx ecx, byte [esi + 4]
or ecx, eax
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi]
and al, 0xdf
or al, 0x40
mov byte [edi], al
movzx eax, byte [ebx]
and al, 0xbf
or al, 0x20
mov byte [ebx], al
movzx eax, byte [edi]
mov dword [esp + 0x14], ecx
movzx eax, byte [eax + 0x55df48]
mov byte [edi], al
movzx eax, byte [edi + 1]
mov dword [esp + 0x24], ecx
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 1], al
movzx eax, byte [edi + 2]
mov dword [esp + 0x2c], ecx
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 2], al
movzx eax, byte [edi + 3]
lea edx, [esp + 0x30]
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 3], al
movzx eax, byte [edi + 4]
mov ecx, edi
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 4], al
movzx eax, byte [edi + 5]
lea esi, [esi + 8]
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 5], al
movzx eax, byte [edi + 6]
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 6], al
movzx eax, byte [edi + 7]
movzx eax, byte [eax + 0x55df48]
mov byte [edi + 7], al
call fcn.004b4860
push 1
lea edx, [esp + 0x34]
lea ecx, [esp + 0x2c]
call fcn.004b4aa0
movzx eax, byte [ebx]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx], al
movzx eax, byte [ebx + 1]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 1], al
movzx eax, byte [ebx + 2]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 2], al
movzx eax, byte [ebx + 3]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 3], al
movzx eax, byte [ebx + 4]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 4], al
movzx eax, byte [ebx + 5]
lea edx, [esp + 0x34]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 5], al
movzx eax, byte [ebx + 6]
mov ecx, ebx
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 6], al
movzx eax, byte [ebx + 7]
movzx eax, byte [eax + 0x55df48]
mov byte [ebx + 7], al
call fcn.004b4860
push 1
lea edx, [esp + 0x38]
lea ecx, [esp + 0x28]
call fcn.004b4aa0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
xor ebx, eax
xor eax, dword [esp + 0x30]
xor edx, ecx
xor ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ecx, edi
add esp, 8
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x10]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [ecx], bl
mov eax, ebx
shr eax, 8
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
shr ebx, 0x18
mov byte [ecx + 3], bl
mov eax, edx
shr eax, 8
mov byte [ecx + 4], dl
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
dec dword [esp + 0x1c]
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov ebx, ecx
jne 0x4d70c0
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret