Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Issues related to VMProtect
Locked
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

Hello,

I try the VMProtect Demo with PDB file generate by Visual Studio 2022, compiling .NET 7.0 console application to Native single EXE file

I turned on debugging symbols for Publish and Release build, and try the PDB file in the Publish folder and Release folder

But it does not work

VMprotect imports the PDB file, but when going to use it, say invalid address on all methods

I use this process here: https://learn.microsoft.com/en-us/dotne ... ative-aot/

I also try to use DumpBin.exe to convert PDB file to MAP file (see below), but the syntax and formatting is not correct. it is similar to MAP file, but not close enough.

https://stackoverflow.com/questions/245 ... a-pdb-file
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

So the issue was answered here: https://github.com/dotnet/runtime/issues/80992

HOWEVER The compilation time takes so long between when the .MAP is generated and the EXE is spit out, that VMProtect is rejecting the time stamp

How do I fix this?
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

After spending some time on this, I think right now its safe to say VMprotect cannot support Native AOT compiled EXE binary, unless the MAP file is the problem

Every method I try to protect gives

"Command not supported"

OR

"Address is already used by function xxxxxxxx"


I know this is still early days for .NET Native AOT, but the potential is very exciting

But sadly, I guess not ready yet
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by Admin »

Do you have a very simple example (EXE+ PDB + MAP + VMP files) that shows the following problems:
1.
VMprotect imports the PDB file, but when going to use it, say invalid address on all methods
2.
The compilation time takes so long between when the .MAP is generated and the EXE is spit out, that VMProtect is rejecting the time stamp
3.
Every method I try to protect gives

"Command not supported"

OR

"Address is already used by function xxxxxxxx"
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

Yes I have sample ZIP with unprotected EXE and VIsual Studio project. where to send it?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by Admin »

TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

I try to email yesterday, email is not delivered, say timeout
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

I try to email twice now, both emails bounced back.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by Admin »

It seems your mail server has problems too.
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

Yesterday, the VMPsoft website had a https://www.1gb.ru/index.php error on it instead of home page

I just try to send email again
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by TomBarisano »

I am still unable to email info@vmpsoft.com

I email plenty of other people just fine, and they email me back just fine (including Themida support)

If you want the sample program and VS project I am having problem with, maybe there is another way I can send it?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Post by Admin »

We are happy for the themida's support.

The topic is closed.
Locked