1

I have started recently with reverse engineering. I came across the linked file. It is a packed/crypted putty.exe. (WARNING: IT MAY BE BACKDOORED!!)

How it's working and loading putty.exe with runpe is clear. But it has anti reversing techniques I don't understand.

For example, all imports are obfuscated. It can't be opened by ILSpy (dotpeek works).

  • Can someone explain which technique is used to obfuscate the imports and how this works?
  • Are they loading imports dynamically and how does this work?
  • Is this done after compilation or in source code?

Some code on how this is done would also be helpful. I did not know this is even possible.

Download Link (THE FILE MAY BE BACKDOORED SO BE CAREFUL):
password for the file is "reverse"
https://easyupload.io/4ekdna

enter image description here enter image description here

Thanks for help

2 Answers 2

1

It looks like the crypter is using a technique called "Dynamic Import Obfuscation". This means that the imports are not statically resolved at compile-time, but instead are resolved at runtime. This makes it more difficult to reverse engineer the program, because you cannot simply look at the imported symbols to understand what the program is doing.

To understand how this works, you need to first understand how normal, static import resolution works. When a program is compiled, the compiler looks at all the symbols that are imported by the program and resolves them to specific addresses. This means that when the program is run, the system knows exactly which addresses to use for the imported functions.

With dynamic import obfuscation, the process is slightly different. Instead of resolving the imports at compile-time, the program resolves them at runtime. This means that the program needs to have some way of knowing which functions to import, and then look up the addresses of those functions at runtime.

There are different ways to do this, but one common method is to use a stub function. The program will first call the stub function, which will then resolve the address of the real function and return it. The program can then call the real function using the returned address.

This technique makes it more difficult to reverse engineer the program, because it is not trivial to understand which functions are being imported and what they are doing. However, with some careful analysis, it is possible to understand what the program is doing. If you are interested in learning more about this technique, I suggest doing some research on dynamic import obfuscation.

0

To retrieve all used winapi's the best way at runtime level. One of usefull tools is apimonitor. Just configure it at api list you need and execute binary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.