Page 1 of 1

VMProtectDecryptString

Posted: Tue Jul 03, 2012 4:47 pm
by KozmoK
I am working on a DLL.

If if do in c++

std:string sTest1 = VMProtectDecryptStringA("Test");
std:string sTest2 = VMProtectDecryptStringA("Test123");

in the objects list, I only see the "Test" I do not see Test123 unless I do this:

std:string sTest1 = VMProtectDecryptStringA("Test");
VMProtectFreeString("Test");
std:string sTest2 = VMProtectDecryptStringA("Test123");
VMProtectFreeString("Test123");

Is this the correct way to do this? Otherwise, if I have 10 strings in one function, it only does the last one.

Also, this doesnt work either:

if(strcmp(proj->sName,VMProtectDecryptStringA("TestData"))==0)
{
..

} else
if(strcmp(proj->sName,VMProtectDecryptStringA("OtherData"))==0)
{


}

It will never show "OtherData" in the object list.

Re: VMProtectDecryptString

Posted: Wed Jul 04, 2012 2:13 am
by Admin
Please send us a test example with this problem.

Re: VMProtectDecryptString

Posted: Thu Jul 05, 2012 9:57 pm
by KozmoK
Correction:

std:string sTest1 = VMProtectDecryptStringA("Test");
std:string sTest2 = VMProtectDecryptStringA("Test123");

if used above Works

If I add the VMPRotectDecryptStringA within a param of another function it will not work.

AddEntry(1,3,iniFile.GetValueB("TEST",VMProtectDecryptStringA("Test1")));
AddEntry(2,3,iniFile.GetValueB("TEST",VMProtectDecryptStringA("Test123")));