If you intend to replace the cable anyway, I would cut the cable say 10cm from the plug, to get access to the inner cables. It looks that the cable is broken near the connector - if is cuts in and out when you move the cable near the connector, not the plug itself.