VMProtectDecryptString

Issues related to VMProtect
Post Reply
KozmoK
Posts: 3
Joined: Tue Jul 03, 2012 4:40 pm

VMProtectDecryptString

Post 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.
Admin
Site Admin
Posts: 2586
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VMProtectDecryptString

Post by Admin »

Please send us a test example with this problem.
KozmoK
Posts: 3
Joined: Tue Jul 03, 2012 4:40 pm

Re: VMProtectDecryptString

Post 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")));
Post Reply