Function at 0x4d6720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
movzx ecx, byte [esi + 7]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0x1c], edx
je 0x4d691e
movzx ebx, byte [esi + 4]
mov edi, dword [ebp + 8]
or ebx, eax
movzx eax, byte [esi + 6]
mov esi, dword [ebp + 0xc]
or ecx, eax
shl ecx, 0x10
or ebx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 4], ecx
js 0x4d684a
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 4], ecx
nop dword [eax]
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [ebp + 0x1c]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x18], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
push 1
push dword [ebp + 0x14]
or ecx, eax
lea eax, [ebp - 0x18]
xor ecx, ebx
push eax
mov dword [ebp - 0x14], ecx
call fcn.004d45c0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 4], bl
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [ebp + 0x10], 1
mov dword [ebp + 0x1c], edx
jne 0x4d67a0
mov ecx, dword [ebp - 4]
cmp ecx, 0xfffffff8
je 0x4d6af7
mov edx, dword [ebp - 4]
add edi, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp - 0xc], edx
xor edi, edi
mov dword [ebp + 0x10], eax
cmp edx, 7
ja case.default.0x4d686d
jmp dword [edx*4 + 0x4d6b54]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [ebp + 0x1c]
xor edi, ebx
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], edi
call fcn.004d45c0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
ret
shr eax, 8
mov byte [esi + 4], bl
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x4d6af7
movzx edi, byte [esi + 4]
mov ebx, dword [ebp + 8]
or edi, eax
movzx eax, byte [esi + 6]
or ecx, eax
shl ecx, 0x10
or edi, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 8], edi
mov dword [ebp - 4], ecx
js 0x4d6a2e
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 0xc], eax
neg eax
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], eax
nop dword [eax + eax]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x10], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [ebx + 7]
add ebx, 8
shl eax, 0x18
push 0
push dword [ebp + 0x14]
or esi, eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], esi
call fcn.004d45c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x14]
mov byte [eax], cl
inc eax
xor edx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov eax, ecx
mov edi, dword [ebp + 0x10]
inc dword [ebp + 0x10]
shr eax, 8
mov byte [edi], al
mov eax, ecx
mov edi, dword [ebp + 0x10]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov eax, edi
inc eax
mov edi, esi
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], edi
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
sub dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x1c], edx
jne 0x4d6960
mov esi, ecx
mov ecx, dword [ebp - 4]
jmp 0x4d6a31
mov esi, dword [ebp + 0xc]
cmp ecx, 0xfffffff8
je 0x4d6af4
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x18], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [ebp - 0x18]
push 0
push dword [ebp + 0x14]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
call fcn.004d45c0
mov eax, dword [ebp - 4]
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
xor ebx, dword [ebp + 0x1c]
xor edx, edi
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x4d6aaf
jmp dword [eax*4 + 0x4d6b74]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], bl
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
jmp 0x4d6af7
mov ebx, dword [ebp - 8]
mov eax, ebx
mov ecx, ebx
shr eax, 0x10
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, 8
mov dword [ebp - 8], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp + 0x1c], eax
mov eax, edx
shr ecx, 0x18
shr eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
mov byte [eax + 1], dl
mov edx, dword [ebp + 0x1c]
mov byte [eax + 2], dl
mov edx, dword [ebp - 0xc]
mov byte [eax + 3], dl
mov edx, dword [ebp - 8]
mov byte [eax + 4], bl
mov byte [eax + 5], dl
mov edx, dword [ebp - 4]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret