There are laws against chemical weapons but I don't think there are laws against producing any kind of software. It's more what you do with the software. Whereas with chemical weapons they are criminalized as such because it is clear they can be used only for one purpose.