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

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

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

Postby TomBarisano » Sun Jan 22, 2023 3:52 am

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?

Postby TomBarisano » Sun Jan 22, 2023 6:18 am

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?

Postby TomBarisano » Sun Jan 22, 2023 7:18 am

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: 2342
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?

Postby Admin » Sun Jan 22, 2023 12:00 pm

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?

Postby TomBarisano » Mon Jan 23, 2023 5:53 am

Yes I have sample ZIP with unprotected EXE and VIsual Studio project. where to send it?

Admin
Site Admin
Posts: 2342
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?

Postby Admin » Mon Jan 23, 2023 5:56 am


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?

Postby TomBarisano » Mon Jan 23, 2023 11:39 pm

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?

Postby TomBarisano » Wed Jan 25, 2023 4:20 pm

I try to email twice now, both emails bounced back.

Admin
Site Admin
Posts: 2342
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?

Postby Admin » Wed Jan 25, 2023 4:45 pm

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?

Postby TomBarisano » Thu Jan 26, 2023 6:41 pm

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?

Postby TomBarisano » Fri Jan 27, 2023 5:35 pm

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: 2342
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?

Postby Admin » Fri Jan 27, 2023 5:48 pm

We are happy for the themida's support.

The topic is closed.