There's one more thing in the mix besides copyright. If the program uses any patented technology (no matter how lame or nonfunctional), then it can licensed. All the fair use and first sale doctrine debate in the world can't get around the patent licensing.