That's a strange one. The discolouration, as pointed out, is oxidation which is usually caused by the presence of moisture or heat.
I'm surprised stranded cable has been used over such a long run. It will have a lower current carrying capacity but unless the pump is a beast, I wouldn't have...