If you have any interest in knowing what is hidden behind the Windows executable files, you have reached the right place.
In this small tutorial we will discuss basic concepts to be able to use the different programs that allow us to edit resources of executable files (exe, dll, scr, etc).
Executable files are not designed to allow modification, but to run in the operating system.
This is because they are the result of compiling a source code into machine code.
Despite this, there are techniques that allow us to modify executable files, some are advanced and require extensive knowledge of reverse engineering. Others are simpler and we can address them using specific programs for this.
How to edit executable file resources (exe, dll, scr, etc).
To begin, we are going to do a little exercise to learn how to edit
.exe
file resources, since practice is the best way to learn. First, we will need a program that allows us to edit resources. There are currently several alternatives, but the best known program is
Resource Hacker
(formerly known as ResHack or ResHacker)
.
At the end of this tutorial I will leave you with other programs with similar functionality, so that you at least know some alternative to Resource Hacker. At the moment, we go to the
official website of
the program and download it.
Once installed, we run Resource Hacker and see that we need an executable file to examine. For my tests I will use the executable file of the
ResourceHacker.exe
program, so I open it through the
File → Open
menu.
My first goal will be to extract the icon from the ResourceHacker.exe executable.
For this I go to the list I find on the left side and double click on
«Icon Group»
. We see that two groups of icons are shown, we are going to extract the one called
«MAINICON: 1033»
by right clicking and selecting the option
«Save * .ico resource"¦»
, which will ask us to enter the name with the You save the icon to disk.
With these simple steps we have already managed to extract the icon from an
.exe
file, something very basic but that serves as a contact.
I leave a small list with other
alternative programs to Resource Hacker
and they have taken me out of more than a hurry:
IMPORTANT!
I did not want to finish this article without warning you about two programs similar to Resource Hacker that you can find on the internet, but that will install malware on your computer. This is
http://www.resedit.net/
and
http://www.freeresourceextractor.com/
,
both programs have viruses and install malware Beware!