Embedding DLL into exe

Issues related to VMProtect
alsys135
Posts: 6
Joined: Sun May 10, 2020 4:56 pm

Embedding DLL into exe

Postby alsys135 » Thu Dec 31, 2020 1:44 pm

I hope that I can find my reply here

From Delphi compiler (10.x) I got both app.exe and app.enu files. The app.enu file contains localized english strings that is indeed a DLL with STRING and RCDATA sections. App.exe loads the STRING and RCDATA sections from app.enu with a simple call of

LoadLibraryEx(FileName, 0, LOAD_LIBRARY_AS_DATAFILE);

Q1 : I would like to merge both files (.exe + .enu/dll) and load the localized STRING and RCDATA sections in my exe app. is that possible
and then pack it with VMProtect software

Q2: in case this is not possible is it possible to pack a DLL standalone and load it by my app.exe that is also wmprotected ?

Happy new year.

Admin
Site Admin
Posts: 1990
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Embedding DLL into exe

Postby Admin » Sun Jan 10, 2021 7:29 am

Q1 : I would like to merge both files (.exe + .enu/dll) and load the localized STRING and RCDATA sections in my exe app. is that possible
and then pack it with VMProtect software

Yes, it's possible.

alsys135
Posts: 6
Joined: Sun May 10, 2020 4:56 pm

Re: Embedding DLL into exe

Postby alsys135 » Sun Jan 10, 2021 5:25 pm

So how to proceed ??
Rgds,

Admin
Site Admin
Posts: 1990
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Embedding DLL into exe

Postby Admin » Sun Jan 10, 2021 5:32 pm

Just add required DLLs into the "Files" section

alsys135
Posts: 6
Joined: Sun May 10, 2020 4:56 pm

Re: Embedding DLL into exe

Postby alsys135 » Thu Jan 14, 2021 12:25 am

And if I do a loadlibrary from thecompressedfile.exe it will work ?

Admin
Site Admin
Posts: 1990
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Embedding DLL into exe

Postby Admin » Thu Jan 14, 2021 4:51 am

Yes, it works.

alsys135
Posts: 6
Joined: Sun May 10, 2020 4:56 pm

Re: Embedding DLL into exe

Postby alsys135 » Thu Jan 14, 2021 11:11 pm

Thanks, I'll give a try asap