Memory protection and load time

Issues related to VMProtect
Post Reply
chmichael
Posts: 3
Joined: Sat May 28, 2022 5:53 pm

Memory protection and load time

Post by chmichael »

Hello,
Seems support e-mail isn't working so i post here.
Just got VMProtect and use it on 1 of my apps.
When i use memory protection it take 15-20 seconds to load.
If i disable Memory Protection it loads quick!

Any ideas ? (Delphi)

Thank you
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Memory protection and load time

Post by Admin »

Do you use something like Detours for patching of VCL's code?
chmichael
Posts: 3
Joined: Sat May 28, 2022 5:53 pm

Re: Memory protection and load time

Post by chmichael »

Hello
No, i'm using CEF (https://github.com/salvadordf/CEF4Delphi) library though that might do ?

Thank you
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Memory protection and load time

Post by Admin »

Do you know that your application patches own code (calls VirtualProtect + modifies memory + calls VirtualProtect with old protection)? VMProtect disallows to change the protection of read only memory and your code probably throws "Access Violation" exception that takes additional time at initialization.
chmichael
Posts: 3
Joined: Sat May 28, 2022 5:53 pm

Re: Memory protection and load time

Post by chmichael »

Nope. unless a library does it! I take a look!

Thanks
Post Reply