Based on this thread and personal need, I created a script that extracts the icon from an exe, have a look here.