Function at 0x4d16e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
movzx ebx, byte [edi + 1]
movzx eax, byte [edi]
movzx ecx, byte [edi + 7]
shl ebx, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edi + 5]
shl eax, 8
cmp dword [ebp + 0x1c], 0
je 0x4d18dd
movzx edx, byte [edi + 4]
mov esi, dword [ebp + 0xc]
or edx, eax
movzx eax, byte [edi + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x10], ecx
js 0x4d1819
mov edi, dword [ebp + 8]
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov dword [ebp + 0x10], ecx
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]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [ebp - 0x14], 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 - 0x14]
xor ecx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x10], ecx
call fcn.004cf5b4
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [ebp - 4], 1
mov dword [ebp + 0x1c], edx
jne 0x4d1764
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
jmp 0x4d181c
mov eax, dword [ebp + 8]
cmp ecx, 0xfffffff8
je 0x4d1abe
add eax, 8
xor edx, edx
add ecx, eax
mov edi, edx
mov eax, dword [ebp + 0x10]
add eax, 7
cmp eax, 7
ja case.default.0x4d1839
jmp dword [eax*4 + 0x4d1b10]
dec ecx
movzx edx, byte [ecx]
shl edx, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or edx, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or edx, eax
dec ecx
movzx eax, byte [ecx]
or edx, eax
dec ecx
movzx edi, byte [ecx]
shl edi, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or edi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
or edi, eax
xor edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push 1
push dword [ebp + 0x14]
xor edi, ebx
mov dword [ebp - 0x10], edx
push eax
mov dword [ebp - 0x14], edi
call fcn.004cf5b4
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
mov edi, dword [ebp + 0x18]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x4d1abe
movzx esi, byte [edi + 4]
xor edx, edx
or esi, eax
movzx eax, byte [edi + 6]
or ecx, eax
shl ecx, 0x10
or esi, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], esi
mov dword [ebp - 4], ecx
js 0x4d19d9
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 8], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx + 1]
movzx edi, byte [ecx]
movzx esi, byte [ecx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x14], edi
movzx eax, byte [ecx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add ecx, 8
push edx
push dword [ebp + 0x14]
or esi, eax
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
push eax
call fcn.004cf5b4
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x10]
xor ecx, ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
xor edx, dword [ebp + 0x1c]
shr eax, 8
push 0
mov byte [ebx], cl
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov ecx, dword [ebp - 0xc]
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
sub dword [ebp - 8], 1
mov dword [ebp + 0x10], ebx
mov ebx, edi
mov dword [ebp + 0x1c], esi
pop edx
jne 0x4d191c
mov edi, dword [ebp + 0x18]
mov edx, ecx
mov ecx, dword [ebp - 4]
jmp 0x4d19e2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
cmp ecx, 0xfffffff8
je 0x4d1abb
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x1c]
shl ecx, 0x10
or eax, ecx
push 0
push dword [ebp + 0x14]
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004cf5b4
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebp - 0x14]
xor edx, esi
mov esi, dword [ebp - 4]
xor eax, ebx
mov dword [ebp + 0x18], eax
lea ecx, [esi + 8]
add esi, 7
add ecx, dword [ebp + 0x10]
cmp esi, 7
ja case.default.0x4d1a69
jmp dword [esi*4 + 0x4d1b30]
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
mov edx, dword [ebp + 0x18]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
jmp 0x4d1a9b
mov edx, dword [ebp + 0x18]
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
jmp 0x4d1aa8
mov edx, dword [ebp + 0x18]
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
jmp 0x4d1ab5
mov edx, dword [ebp + 0x18]
mov byte [ecx - 1], dl
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x1c]
mov esi, edx
mov byte [edi], bl
shr esi, 8
mov eax, edx
mov dword [ebp - 0xc], esi
mov ecx, edx
mov esi, ebx
shr eax, 0x18
shr esi, 0x18
mov dword [ebp + 0x1c], esi
mov esi, ebx
shr esi, 0x10
mov dword [ebp + 0x10], esi
mov esi, ebx
shr ecx, 0x10
shr esi, 8
mov dword [ebp + 0x18], esi
mov ebx, dword [ebp + 0x18]
mov byte [edi + 1], bl
mov ebx, dword [ebp + 0x10]
mov byte [edi + 2], bl
mov ebx, dword [ebp + 0x1c]
mov byte [edi + 3], bl
mov byte [edi + 4], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 5], dl
mov byte [edi + 6], cl
mov byte [edi + 7], al
pop edi
pop esi
pop ebx
leave
ret