Function at 0x4d396c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
push ebx
push esi
lea esi, [eax + 1]
movzx eax, byte [eax]
shl eax, 8
cmp dword [ebp + 0x1c], 0
push edi
je 0x4d3bc1
movzx edx, byte [esi]
movzx ebx, byte [esi + 3]
or edx, eax
movzx eax, byte [esi + 1]
mov edi, dword [ebp + 0xc]
shl eax, 8
shl edx, 0x10
or edx, eax
shl ebx, 0x18
movzx eax, byte [esi + 2]
or edx, eax
movzx eax, byte [esi + 4]
shl eax, 0x10
or ebx, eax
mov dword [ebp + 0x1c], edx
movzx eax, byte [esi + 5]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 6]
dec esi
or ebx, eax
add ecx, 0xfffffff8
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
js 0x4d3aa3
mov esi, dword [ebp + 8]
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov dword [ebp - 8], ecx
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
push dword [ebp + 0x14]
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 3]
or edx, eax
movzx eax, byte [esi + 5]
xor edx, dword [ebp + 0x1c]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 7]
or ecx, eax
add esi, 8
lea eax, [ebp - 0x1c]
xor ecx, ebx
push eax
mov dword [ebp - 0x18], ecx
call fcn.004d3e68
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ebx, dword [ebp - 0x18]
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], bl
add edi, 8
sub dword [ebp + 0x10], 1
pop ecx
pop ecx
mov dword [ebp + 0x1c], edx
jne 0x4d39f1
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
jmp 0x4d3aa6
mov eax, dword [ebp + 8]
cmp ecx, 0xfffffff8
je 0x4d3b78
mov edx, dword [ebp - 8]
add eax, 8
add ecx, eax
add edx, 7
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
cmp edx, 7
ja case.default.0x4d3aca
jmp dword [edx*4 + 0x4d3e28]
dec ecx
movzx eax, byte [ecx]
mov dword [ebp + 0x10], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or dword [ebp + 0x10], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or dword [ebp + 0x10], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x18
or dword [ebp + 0x10], eax
dec ecx
movzx eax, byte [ecx]
mov dword [ebp - 4], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or dword [ebp - 4], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or dword [ebp - 4], eax
movzx eax, byte [ecx - 1]
mov ecx, dword [ebp - 4]
shl eax, 0x18
or ecx, eax
mov eax, dword [ebp + 0x10]
jmp 0x4d3b24
mov ecx, eax
push dword [ebp + 0x14]
xor ecx, dword [ebp + 0x1c]
xor eax, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.004d3e68
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ebx, dword [ebp - 0x18]
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
shr eax, 8
pop ecx
mov byte [edi + 6], al
pop ecx
mov byte [edi + 7], bl
inc esi
mov dword [ebp + 0x10], ebx
shr dword [ebp + 0x10], 0x18
mov ecx, ebx
mov dword [ebp - 4], esi
inc esi
mov eax, esi
mov dword [ebp - 0x18], esi
add eax, 4
shr ecx, 0x10
mov dword [ebp - 0x24], eax
mov edi, esi
mov eax, ebx
mov dword [ebp - 0x20], ecx
shr eax, 8
add esi, 2
mov dword [ebp + 0x1c], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 0x14], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 8], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x4d3df2
mov edi, esi
movzx edx, byte [edi]
movzx ebx, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 1]
shl eax, 8
shl edx, 0x10
or edx, eax
shl ebx, 0x18
movzx eax, byte [edi + 2]
or edx, eax
movzx eax, byte [edi + 4]
shl eax, 0x10
or ebx, eax
mov dword [ebp + 0x1c], edx
movzx eax, byte [edi + 5]
shl eax, 8
or ebx, eax
movzx eax, byte [edi + 6]
dec edi
or ebx, eax
add ecx, 0xfffffff8
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ecx
js 0x4d3ce7
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 8]
movzx edi, byte [ecx]
movzx eax, byte [ecx + 1]
movzx esi, byte [ecx + 4]
shl eax, 0x10
push dword [ebp + 0x14]
shl edi, 0x18
or edi, eax
shl esi, 0x18
movzx eax, byte [ecx + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 3]
or edi, eax
movzx eax, byte [ecx + 5]
shl eax, 0x10
or esi, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ecx + 6]
shl eax, 8
or esi, eax
movzx eax, byte [ecx + 7]
or esi, eax
add ecx, 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 0x18], esi
call fcn.004d3e68
mov edx, dword [ebp - 0x18]
xor edx, ebx
mov ebx, dword [ebp + 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp + 0x1c]
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 eax, edx
mov byte [ebx + 3], cl
mov ecx, dword [ebp - 0xc]
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
sub dword [ebp - 4], 1
mov edx, edi
mov dword [ebp + 0x10], ebx
mov ebx, esi
mov dword [ebp + 0x1c], edx
jne 0x4d3c29
mov edi, dword [ebp - 0x24]
mov esi, ecx
mov ecx, dword [ebp - 8]
jmp 0x4d3cf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], eax
cmp ecx, 0xfffffff8
je 0x4d3db2
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
movzx edx, byte [esi + 4]
push dword [ebp + 0x14]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
shl edx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 3]
or ecx, eax
movzx eax, byte [esi + 5]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [esi + 6]
shl eax, 0x10
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 7]
or ecx, eax
lea eax, [ebp - 0x1c]
or edx, ecx
push eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
call fcn.004d3e68
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
xor edx, dword [ebp + 0x1c]
xor eax, ebx
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
add ecx, 8
mov dword [ebp + 0x1c], eax
add ecx, esi
add esi, 7
cmp esi, 7
ja case.default.0x4d3d71
jmp dword [esi*4 + 0x4d3e48]
dec ecx
mov byte [ecx], al
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x1c]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 0x1c]
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 edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
inc edi
mov dword [ebp + 0x10], ebx
shr dword [ebp + 0x10], 0x18
mov ecx, ebx
mov dword [ebp - 4], edi
inc edi
shr ecx, 0x10
mov dword [ebp - 0x20], ecx
mov ecx, edx
mov dword [ebp - 0x18], edi
lea esi, [edi + 2]
lea eax, [esi + 2]
mov dword [ebp - 0x24], eax
mov eax, ebx
shr eax, 8
mov dword [ebp + 0x1c], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 0x14], eax
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov byte [edi], al
mov eax, dword [ebp - 0x18]
pop edi
mov byte [eax + 1], dl
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
mov byte [esi], dl
mov byte [esi + 1], cl
mov ecx, dword [ebp - 0x24]
pop esi
mov byte [ecx], al
mov byte [ecx + 1], bl
pop ebx
leave
ret