Looks like a bodge to stop an oil leak or to stop shaft rotation.
If you have a dremel you might be able to start to remove the metal surface - might be worth using a sharp pick tool at the edges where it has been spread onto the cylinder head. It's probably some sort of Epoxy Resin material like JB weld. Some very light impact with a small dead weight mallet might crack the surface contact?
Might be worth some Google searches for a potential solvent first.
If you undo the three bolts on the end cap will this enable the cam top to be removed?
Be easier to work on with the head removed.