Loading of encrypted DLL

x64 version issues
Post Reply
brgmnn
Posts: 5
Joined: Wed Jun 20, 2018 1:49 pm

Loading of encrypted DLL

Post by brgmnn » Wed Aug 22, 2018 6:34 am

Hello,

we tried to encrypt a dll with basic features of our software, so that potential calls from the "wrapper" executable could be debugged [in regard to our previous question.]
However, as soon as we encrypt the dll, our wrapper-application stops (and seems to wait for the dll to check for licensing information).

We build a minimal example project for windows:

Code: Select all

#include <windows.h>
__declspec(dllexport) int check(int val) { return 123; }
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {  return TRUE; }

Code: Select all

#include <windows.h>
#include <iostream>
typedef int(*TestFunc)(int);
int main() {
	TestFunc _TestFunc;
	HINSTANCE hInstLibrary = LoadLibrary("Compiled_DLL.dll");
	if (hInstLibrary) {
		_TestFunc = (TestFunc)GetProcAddress(hInstLibrary, "check");
		if (_TestFunc) {
			std::cout << _TestFunc(23) << std::endl;
		}
		FreeLibrary(hInstLibrary);
	} else {
		std::cout << "DLL Failed To Load!" << std::endl;
	}
	return 0;
}
Without encryption, the dll returns the proper int value and it is printed on-screen. As soon as the dll is encrypted, nothing happens at that point. There is neither a Registration Dialog nor a valid check of licensing information (even when it is added via *.reg-file or "Dummy-Registration-Application").

Are there specific Options during Encryption, which lead to our problem?

Regards
J

Enigma
Site Admin
Posts: 2367
Joined: Wed Aug 20, 2008 2:24 pm

Re: Loading of encrypted DLL

Post by Enigma » Wed Aug 22, 2018 7:28 am

Hi Jim, can you please confirm that for dll protection you've tried to use just default protection settings?
Some protection settings may cause such behavior, so first recommendation is to try just default settings which are compatible with the most of applications.

If this still does not work, can you please send us non protected dll + exe that calls it to support@enigmaprotector.com, we will check it and let you know where is a problem.

brgmnn
Posts: 5
Joined: Wed Jun 20, 2018 1:49 pm

Re: Loading of encrypted DLL

Post by brgmnn » Tue Aug 28, 2018 10:16 am

Hello,

thanks for the information.
We tried it with a clean project and default settings and it worked.

Best regards
J

Enigma
Site Admin
Posts: 2367
Joined: Wed Aug 20, 2008 2:24 pm

Re: Loading of encrypted DLL

Post by Enigma » Tue Aug 28, 2018 10:41 am

OK Jim, thanks for confirmation!

Post Reply