"They wouldn't sell it unless they were absolutely sure it wouldn't be used against its own people and they have no problem selling to their arch enemies."
I do not follow that logic.
They do not have to control every instance of their software, to defend against it. I certainly would not try to hack someone with their own tools. I would just assume they spot it easily and exchange the favour.