[Bug 32515] Steam games protected with Valve's CEG (Custom Executable Generation) DRM scheme fail validation/crash on startup (Warhammer 40K: Space Marine, CoD:MW3 SP, LotR: War in the North, Total War: Shogun 2)

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Apr 23 04:45:34 CDT 2014


http://bugs.winehq.org/show_bug.cgi?id=32515

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |obfuscation
            Summary|Multiple Steam games crash  |Steam games protected with
                   |on startup (Steam game      |Valve's CEG (Custom
                   |cache validation            |Executable Generation) DRM
                   |fails)(Warhammer 40,000:    |scheme fail
                   |Space Marine, CoD:MW3       |validation/crash on startup
                   |single player, LotR: War in |(Warhammer 40K: Space
                   |the North)                  |Marine, CoD:MW3 SP, LotR:
                   |                            |War in the North, Total
                   |                            |War: Shogun 2)

--- Comment #23 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

refining summary.

All the games in question here have one binary generated using Valve's CEG
(Custom Executable Generation) DRM scheme and that doesn't work properly with
Wine.

'The Lord of the Rings: War in the North': http://steamdb.info/app/32800

--- snip ---
cegpublickey
   
30819D300D06092A864886F70D010101050003818B0030818702818100C985496E19A56ED8D0FC357D1A75FCC94ACB1C83B91BD7B8A20DE894335FD1E99BCB340E9C7C6CC34676525C8CBD8AF064D5AA598FDA7BE3AF7CD63825593D3CD16FFE6AB5930F170BFF3121A7A16F7F324B3BBED1E4DEB262D41C0538525F132DFE25D49F925E765E188696A09B9CB26A2E56817E80FDB06EB578FCED0601D5020111

checkguid    witn.exe
--- snip ---

'Warhammer 40,000 Space Marine': http://steamdb.info/app/55150/

--- snip ---
cegpublickey    
30819D300D06092A864886F70D010101050003818B0030818702818100B01850A97649ACD1D9DB362E518B59264274DCEF9557050B8FB82B952811E324AF808E18D987C54DE169631A1E5C9EDE0480B295A7B849C4D7BF2E5E2A5290076E2EEA4C1811A3742B8D87C531DB7AE0084FA4A6B7C3021D7470D01149F24F8BFD80FE476940B71E767612083AF64894FC6615C0E32C9E5EE3D1EEF6E1FDB1BB020111

checkguid    SpaceMarine.exe
checkguids    spacemarine.exe
--- snip ---

'Total War: SHOGUN 2': http://steamdb.info/app/34330

--- snip ---
cegpublickey
   
30819D300D06092A864886F70D010101050003818B0030818702818100AF336E35AD7B492545BA32DE317F4EB1D73BCD5E471A7D16E2796D30071AE019B210C26BF0655DCA68D061F1BE6CF3FFF5C668B28D1F1CD5B213BE649DD78CF79452E6E484681D177E30A2E36315E5DFA51D9BC3A9D2B43CEC3C97C1066DA3D28BEA05C73CE83A77B99522C31BD03B61AF094F2175B4063633CB6354276026C3020111

checkguid    Shogun2.dll
--- snip ---

You can verify by (re)running game cache validation.
It will always flag these CEG binaries as inconsistent (size mismatch) and
tries to update it.

--- snip ---
...
[2014-04-22 23:01:01] AppID 34330 state changed : 0x00020104 = Fully
Installed,Update Running,Validating,
[2014-04-22 23:01:01] Validating files (active,full) ...
[2014-04-22 23:01:09] Validation: size mismatch "C:\Program
Files\Steam\steamapps\common\Total War SHOGUN 2\Shogun2.dll"
[2014-04-22 23:03:10] File validation finished: 4440 files (20744526337 bytes)
total, 1 files (26974720 bytes) mismatched (128774 msec).
[2014-04-22 23:03:10] AppID 34330 state changed : 0x00020126 = Update
Required,Fully Installed,Files Missing,Update Running,Validating,
[2014-04-22 23:03:10] AppID 34330 state changed : 0x00000126 = Update
Required,Fully Installed,Files Missing,Update Running,
[2014-04-22 23:03:10] AppID 34330 state changed : 0x00080126 = Update
Required,Fully Installed,Files Missing,Update Running,Preallocating,
[2014-04-22 23:03:10] AppID 34330 state changed : 0x00000126 = Update
Required,Fully Installed,Files Missing,Update Running,
[2014-04-22 23:03:10] AppID 34330 state changed : 0x00000526 = Update
Required,Fully Installed,Files Missing,Update Running,Update Started,
[2014-04-22 23:03:10] AppID 34330 state changed : 0x00300526 = Update
Required,Fully Installed,Files Missing,Update Running,Update
Started,Downloading,Staging,
[2014-04-22 23:03:10] Starting update AppID 34330: download 0/11939808, store
0/0, reuse 0/0, stage 0/26974720
...
--- snip ---

An alternate method: run 'ProtectionID' tool on the binary to show the CEG
metadata

--- snip ---
-=[ ProtectionID v0.6.5.5 OCTOBER]=-
(c) 2003-2013 CDKiLLER & TippeX
Build 31/10/13-21:09:09
Ready...
Scanning -> c:\Program Files\Steam\SteamApps\common\Total War SHOGUN
2\Shogun2.dll
File Type : 32-Bit Dll (Subsystem : Win GUI / 2), Size : 26974720 (019B9A00h)
Byte(s)
[File Heuristics] -> Flag : 00000100000001001100000000000000 (0x0404C000)
[Entrypoint Section Entropy] : 6.35
[Debug Info]
Characteristics : 0x0 | TimeDateStamp : 0x515EB206 | MajorVer : 0 / MinorVer :
0 -> (0.0)
Type : 2 -> CodeView | Size : 0x69 (105)
AddressOfRawData : 0x17FD74C | PointerToRawData : 0x17FBF4C
CvSig : 0x53445352 | SigGuid FEC6E4EE-D7B9-4DC0-9AF4896A1C34300D
Age : 0x1E | Pdb :
t:\branches\shogun2\otomo\shogun2\binaries\Symbols\Empire.zIntelUnityRelease.pdb

[!] Steam api usage detected
[i] additional feature ; Valve CEG - Custom Executable Generation
[.] CEG Version : 1, 1, 0, 2100
[.] CEG Build GUID : B99556D5-E248-4031-8827-46FA4C0921FC
[.] CEG Build Machine : neilk2
[!] Possible CD/DVD-Key or Serial Check -> Serial Number
[CompilerDetect] -> Visual C++ 8.0 (Visual Studio 2005)
- Scan Took : 1.18 Second(s) [0000007BEh tick(s)] [229 scan(s) done]
--- snip ---

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list