No idea whether anyone still cares, but I *think* I've found the game the op is referring to in of those shareware CDs that were so common in mid-to-late 90s.
Anyway, the game is called "Heavy Combat" and it totally matches the description. As one of the previous user said, the registration code can be found by examining the .exe with an hex editor