Skip to content

Portable Executable reader / writer for Delphi -->> for Lazarus

Notifications You must be signed in to change notification settings

oranke/pe-image-for-Lazarus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pe-image-for-delphi

This is Delphi library to work with Portable Executable Image files. The main purpose is to make parsing image structures of 32/64 bit image easy. Now it can parse most used things, like: sections, imports, exports, resources and tls.

Also it can write image, but that was not primary goal.

ToDo:

  • There must be introduced sparsed/paged virtual memory concept (just like Windows does) Currently all section data is loaded into memory. Some virus samples tested can crash loading because of using too big virtual address range. With normal compiler generated images you won't have such problem.

... and some tweaks for Lazarus.

Lazarus does not support anonymous functions, so I just change it to callbacks. This code is very dirty and terrible. You should use it at your own risk.

Generic problem was simply solved by "FreePascal Generics.Collections library". (Thank's for it.)

You also need "TlHelp32.pas" and "PsAPI.pas" units for build it in Lazarus. Copy them from Delphi's src folder.

About

Portable Executable reader / writer for Delphi -->> for Lazarus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 91.2%
  • C++ 7.6%
  • SourcePawn 1.2%