Embedding DLL into exe

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

Embedding DLL into exe

Post by alsys135 »

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: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Embedding DLL into exe

Post by Admin »

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

Post by alsys135 »

So how to proceed ??
Rgds,
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Embedding DLL into exe

Post by Admin »

Just add required DLLs into the "Files" section
alsys135
Posts: 6
Joined: Sun May 10, 2020 4:56 pm

Re: Embedding DLL into exe

Post by alsys135 »

And if I do a loadlibrary from thecompressedfile.exe it will work ?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Embedding DLL into exe

Post by Admin »

Yes, it works.
alsys135
Posts: 6
Joined: Sun May 10, 2020 4:56 pm

Re: Embedding DLL into exe

Post by alsys135 »

Thanks, I'll give a try asap
Post Reply