There are alternatives to “decopyrighting”: a government-sponsored development effort, open source from the beginning, for example. Or a government buying an existing piece of software to a willing company. Or sending money to that company in exchange of them publishing their source code.
The OP did not say anything about taking ownership of already-existing software without its owner’s consent.