Page 1 of 1

Weird crash caused by Virtualization

Posted: Fri Apr 13, 2012 1:14 am
by tim66
I have an Enigma protected application using an Enigma protected dll.
To improve the dlls security I wanted to use Enigma's VM feature to virtualize key functions.
Sadly the application starts crashing when I virtualize some functions.
The crash only occurs when I utilize virtualization. A normally protected dll and the unprotected dll
are working fine.

edit: Some additional information
Compiler: MSVC6 + MSVC10 (/LTCG + /arch:SSE)
OS: Windows 7 amd64
It's a x86 executable

Kind Regards Tim

Re: Weird crash caused by Virtualization

Posted: Fri Apr 13, 2012 9:16 am
by Enigma
Hi Tim,

There is an issue with the VM Marker for Visual Studio 2010, if there is try/catch block inside the marker. This happen with some particular applications.

Try to avoid usage try/catch inside VM, or, for example, around the code inside "try" and inside "catch" with the marker separately.

Hope this will be solved soon.

Re: Weird crash caused by Virtualization

Posted: Fri Apr 13, 2012 1:59 pm
by tim66
Hi Enigma,

I don't use C++ exceptions in my code (I even disabled them in the compiler), neither I use SEH __try / __except blocks in the virtualized functions.

Kind Regards Tim

Re: Weird crash caused by Virtualization

Posted: Fri Apr 13, 2012 2:06 pm
by Enigma
Ok, so you are using virtualization by functions selecting through map file?

If possible, can you please send us all necessary files to reproduce the problem at support@enigmaprotector.com? (including non protected dll, so we will protect it and test). This will help to find a problem quickly.