Are nested functions obfuscated?
Are nested functions obfuscated?
We have a large project. Can nested functions be obfuscated all at once in it?
Re: Are nested functions obfuscated?
Do you mean nested functions in .NET application?
Re: Are nested functions obfuscated?
I don't quite understand this problem either.Admin wrote:Do you mean nested functions in .NET application?
If there are three functions like these:
Code: Select all
void Fun_3()
{
int a= 3+3;
Fun_2();
}
void Fun_2()
{
int a= 2+2;
Fun_2();
}
void Fun_1()
{
int a= 1+1;
Fun_2();
}
int Main()
{
VMProtectBeginVirtualization("main")
int i = 3+2+1;
Fun_1();
VMProtectEnd();
return 0;
}
The problem is:
After compilation in VMProtect,the code between VMProtectBeginVirtualization("main") and VMProtectEnd()in the Main like "int i = 3+2+1;" will be virtualized,but what about call to "Fun_1();" in the Main?
When the Main calls the Fun_1 , will the internal code of the FUN_1 such as "int a = 1+1;" be virtualized?
More like "int a= 2+2;" "int a= 3+3;" in the Fun_2 and Fun_3?
Re: Are nested functions obfuscated?
VMProtect will virtualize ONLY the marker "main". If you want to virtualize Fun_1 - you have to add this function into the "Functions for protection" section.Fun_1,Fun_2,Fun_3,these three functions are not using markers or MAP-file.
The problem is:
After compilation in VMProtect,the code between VMProtectBeginVirtualization("main") and VMProtectEnd()in the Main like "int i = 3+2+1;" will be virtualized,but what about call to "Fun_1();" in the Main?
When the Main calls the Fun_1 , will the internal code of the FUN_1 such as "int a = 1+1;" be virtualized?
More like "int a= 2+2;" "int a= 3+3;" in the Fun_2 and Fun_3?
Re: Are nested functions obfuscated?
Thanks, figured it outAdmin wrote:VMProtect will virtualize ONLY the marker "main". If you want to virtualize Fun_1 - you have to add this function into the "Functions for protection" section.Fun_1,Fun_2,Fun_3,these three functions are not using markers or MAP-file.
The problem is:
After compilation in VMProtect,the code between VMProtectBeginVirtualization("main") and VMProtectEnd()in the Main like "int i = 3+2+1;" will be virtualized,but what about call to "Fun_1();" in the Main?
When the Main calls the Fun_1 , will the internal code of the FUN_1 such as "int a = 1+1;" be virtualized?
More like "int a= 2+2;" "int a= 3+3;" in the Fun_2 and Fun_3?