If you are reverse-engineering a dongle for interoperability with an independently created program (and you own the software), you might have a defense, but it is narrow and risky.
If you are a business considering an emulator to solve a licensing headache, stop. There are legitimate, safer, and often cheaper alternatives. usb dongle emulator
. These emulators allow protected software to run by tricking it into "seeing" a physical USB key that is not actually present. Core Functionality Virtual Device Creation If you are reverse-engineering a dongle for interoperability
A USB dongle emulator is a combination of software and/or hardware that mimics the behavior of a proprietary USB software protection key. you might have a defense