API search engine by using CRC32
created by Positron
Big thanks to Billy Belceb whose tutorial of "Advanced API search engine"
gave me the idea to create API search engine in Delphi too.
How it works:
Instead of searching for a determinated amount of bytes that matches
exactly with the API name we have in our code, get all the API names, one
after another, and retrieve their CRC32, and compare it with the CRC32 of
the API we are searching for. If it's equal, then we must proceed as
Below you can see a small example. It search the address of MessageBoxA
function in user32.dll and display a messagebox. When you check the com-
piled .exe with a hex editor you will not find the "MessageBoxA" srting
in IAT. Why is it good? First of all your application will be smaller, coz
you do not have to store the function name in your application. Otherwise
you can hide which API functions are used by your application.
With CalculateCRC32 function you can calulate the CRC32 of all needed API.
Only Delphi source code is included in the archive.
Delphi Basics - Free Delphi Source Code - Ultimate Programming Resource > Delphi Basics Snippets >