This is actually one of the goals of some retro computing enthusiasts: recovering the source code for old games through AI reverse engineering.
I know it's not the same thing because you lose comments, unused prototypes etc, but I still find it a fascinating use of the technology.