Page 1 of 1

Loading of encrypted DLL

Posted: Wed Aug 22, 2018 6:34 am
by brgmnn
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

Re: Loading of encrypted DLL

Posted: Wed Aug 22, 2018 7:28 am
by Enigma
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.

Re: Loading of encrypted DLL

Posted: Tue Aug 28, 2018 10:16 am
by brgmnn
Hello,

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

Best regards
J

Re: Loading of encrypted DLL

Posted: Tue Aug 28, 2018 10:41 am
by Enigma
OK Jim, thanks for confirmation!