It looks like zipcord to me. Is that a scorch mark on it in the second photo?

The connections into the red wirenut don't look very good either.