hasherezade / libpeconv

A library to load, manipulate, dump PE files. See also: https://github.com/hasherezade/libpeconv_tpl
https://hasherezade.github.io/libpeconv
BSD 2-Clause "Simplified" License
1.07k stars 176 forks source link

Tls Callbacks #29

Closed Tzaxast closed 1 year ago

Tzaxast commented 2 years ago

Some pe files have tls callbacks that need to be executed for the pe file to run properly. Does the library support executing the tls callbacks when mapping and running a pe file from memory?

hasherezade commented 2 years ago

hi @Tzaxast ! Sorry for the late response. I added support for TLS Callbacks. Please let me know if everything is fine!

hasherezade commented 2 years ago

The TLS Callbacks are not run automatically, but you can run them as presented in the demo case: https://github.com/hasherezade/libpeconv/blob/master/tests/test_tls_callbacks.cpp