Initialization error 4 in x86 build

Issues related to VMProtect
Post Reply
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Initialization error 4 in x86 build

Post by stefan_reinalter »

Since upgrading to build v3.3.1.1076 on Windows, the x86 build of my application always fails to start with "Initialization error 4".
All options are the same and this used to work with prior versions of VMProtect.
The x64 build works fine.

Any ideas?
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

I updated my subscription in order to upgrade to the latest build 1097, and the issue persists.
With build 1097, the "Initialization error 4" is gone, but now the x86 exe simply refuses to start - it looks like it starts but then immediately closes itself again.

And again, the x64 build works fine.

I can make my x86 application available.
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

Disregard this.
This was caused by a memory overwrite of 4 bytes in the application's startup code. I guess this corrupted something in a way that made VMProtect "unhappy".
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Initialization error 4 in x86 build

Post by Admin »

Did you find an application that does it?
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

There is definitely something wrong with VMProtect and x86 builds.
I built a small test case which is literally the following C++ code:

#include "VMProtectSDK.h"

int DeactivateLicense(void)
{
VMProtectBeginUltra("DeactivateLicense");
VMProtectEnd();

return 0;
}

int main(void)
{
const int result = DeactivateLicense();
printf("exit code: %d\n", result);
return result;
}

The resulting executable runs fine on its own.
When using VMProtect and running the resulting executable, VMProtect will detect a file modification and close the app.

Where can I submit the application in question so the developers can take a look at it?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Initialization error 4 in x86 build

Post by Admin »

When using VMProtect and running the resulting executable, VMProtect will detect a file modification and close the app.
... because the file was modified in the memory? It seems something changes your protected file at the runtime and VMProtect detects it and shows the error.
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

Admin wrote:
When using VMProtect and running the resulting executable, VMProtect will detect a file modification and close the app.
... because the file was modified in the memory? It seems something changes your protected file at the runtime and VMProtect detects it and shows the error.
The file is not modified in memory. The code I posted above is the exact C++ code - there is nothing else in there.
The x64 application runs fine (and VMProtect doesn't detect any modification), but x86 fails.

Can I send you the compiled x86 executable along with my VMProtect options? It's only around 100KB.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Initialization error 4 in x86 build

Post by Admin »

OK. Please send all files (the original binary + MAP + VMP files too) to info@vmpsoft.com
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

Admin wrote:OK. Please send all files (the original binary + MAP + VMP files too) to info@vmpsoft.com
Done, thank you for your help!
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

Can you confirm yet if this is indeed a bug in VMProtect along with a possible ETA for a fix?
I have quite a few customers who need to use the x86 version of my product.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Initialization error 4 in x86 build

Post by Admin »

Please try the 1099 build
stefan_reinalter
Posts: 10
Joined: Fri Jun 08, 2018 1:35 pm

Re: Initialization error 4 in x86 build

Post by stefan_reinalter »

I can confirm that the issue is fixed in the 1099 build.
Post Reply