Function at 0x4d11a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
movzx eax, byte [ebx + 1]
shl eax, 0x10
cmp dword [ebp + 0x14], 0
push edi
mov esi, edx
mov edi, ecx
je 0x4d13d9
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
shl edx, 0x18
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 3]
or edx, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [ebx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x14], ebx
mov dword [ebp - 8], eax
js 0x4d12d1
mov ecx, dword [ebp - 8]
add eax, 8
shr eax, 3
mov dword [ebp + 8], eax
neg eax
mov ebx, edx
lea ecx, [ecx + eax*8]
mov dword [ebp - 8], ecx
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 5]
shl ecx, 0x18
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 7]
or ecx, eax
xor ecx, dword [ebp - 0xc]
xor edx, ebx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
add edi, 8
call fcn.004d08c0
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
shr eax, 0x18
mov byte [esi], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ebx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
mov byte [esi + 6], al
mov byte [esi + 7], cl
add esi, 8
dec dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jne 0x4d1225
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp eax, 0xfffffff8
je 0x4d139d
mov ebx, dword [ebp - 8]
lea ecx, [eax + 8]
add ecx, edi
add ebx, 7
xor eax, eax
xor edi, edi
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
cmp ebx, 7
ja case.default.0x4d12f4
jmp dword [ebx*4 + 0x4d15fc]
movzx edi, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
mov dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor edi, dword [ebp - 0xc]
xor eax, edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.004d08c0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x14]
mov eax, edx
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], dl
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
mov byte [esi + 6], al
mov byte [esi + 7], cl
mov eax, edx
shr eax, 0x18
mov byte [ebx], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, edx
shr eax, 8
mov byte [ebx + 2], al
mov byte [ebx + 3], dl
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, ecx
pop edi
shr eax, 8
mov byte [ebx + 6], al
pop esi
mov byte [ebx + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl ecx, 0x18
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 3]
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [ebx + 6]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 7]
or edx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
js 0x4d14fc
mov ecx, dword [ebp - 8]
add eax, 8
shr eax, 3
mov dword [ebp - 4], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 8], ecx
jmp 0x4d1440
movzx ebx, byte [edi]
movzx eax, byte [edi + 1]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [edi + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [edi + 3]
mov edx, dword [ebp + 0xc]
add edi, 4
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
movzx edi, byte [edi]
or ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
shl edi, 0x18
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 3]
add ecx, 4
or edi, eax
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.004d0d30
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 6], al
mov byte [esi + 7], dl
mov edx, edi
mov edi, dword [ebp + 8]
add esi, 8
dec dword [ebp - 4]
mov ecx, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0xc], edx
jne 0x4d1440
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp eax, 0xfffffff8
je 0x4d15bf
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 5]
shl ecx, 0x18
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
mov dword [ebp + 8], ecx
movzx ecx, byte [edi + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
or eax, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
call fcn.004d0d30
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
xor eax, dword [ebp - 0xc]
xor edx, dword [ebp + 0x14]
lea ecx, [edi + 8]
add edi, 7
add ecx, esi
mov dword [ebp + 0x14], eax
cmp edi, 7
ja case.default.0x4d157e
jmp dword [edi*4 + 0x4d161c]
dec ecx
mov byte [ecx], al
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x14]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 0x14]
dec ecx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
shr edx, 0x18
mov byte [ecx - 1], dl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov byte [ebx + 3], cl
mov eax, edx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
pop edi
shr eax, 8
mov byte [ebx + 6], al
pop esi
mov byte [ebx + 7], dl
pop ebx
mov esp, ebp
pop ebp
ret