http://bugs.winehq.org/show_bug.cgi?id=28863
Bug #: 28863 Summary: SecuROM 8.xx: games require activation on each start Product: Wine Version: 1.3.31 Platform: x86 OS/Version: Linux Status: NEW Keywords: obfuscation Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com Classification: Unclassified
Created attachment 37073 --> http://bugs.winehq.org/attachment.cgi?id=37073 7zipped +relay,+tid,+file,+reg log (uncompressed 118 MB)
Two of my games obtained via Gamersgate digital distribution service are damned with Securom 8.03.xxxx protection (online activation). The games are Tomb Raider: Legend GTA San Andreas
After installation the Securom activation dialog kicked in, requesting the serial number. Activation was successful and the games started fine. Much to my surprise, next time I launched these games, Securom required a new activation. This happens on each game start (I didn't alter the wineprefix where the games are installed in any way).
I installed one of the games in Win XP SP3 (running under Vbox): Securom works there, requiring activation only on the first launch.
Here I'm attaching a +relay,+tid,+file,+reg debug log, hopefully someone will find some clues in it. The log was created by getting through the activation process (the game wasn't started at the end of activation).
I'm totally dumb at reading such logs but here's what I found: 1. Securom tries to open certain files under 'C:\users<username>\Application Data\DSS\Product Activation\ User Data<very long sequence' The files named dss_v8_01.dat and dss_v8_01.bak. These files as well as the whole directory structure are missing in both Wine and Windows so this can't be the problem.
2. The corresponding Securom registry entry is located under HKCU/Software/DSS. This contains several subkeys, most of them contain binary data, but one of them (Meta Data\Information) contains strange things. Although this subkey can be exported via Wine regedit, it cannot be re-imported correctly. Here is an excerpt what this sub key contains (obtained via Process Monitor under Windows):
Type: REG_SZ, Length: 2,600, Data: <?xml version="1.0"?> <UserData> <ExeResource> <Path>C:\Program Files\Rockstar Games\GTA San Andreas\gta_sa.exe</Path> </ExeResource> <CPA>e358d8ee7c711c17f463b620e750df01e896d4e1bdfc0e37d2357859698229f6e896d4e1bdfc0e37cdb6c31028aa1089</CPA> <OfflineInformation> <LASTACCESSDATE>000fb756</LASTACCESSDATE> <INSTALLDATE>000fb756</INSTALLDATE> <COUNTER>00000000</COUNTER> <FIRSTTIME>00000001</FIRSTTIME> <PERIODIC>00000000</PERIODIC> <PERIODICDAYS>00000000</PERIODICDAYS> </OfflineInformation> <ProductActivation> ...
Maybe something goes wrong when creating/reading this key under Wine thus Securom considers it invalid?
Fedora 15 x86 gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC)
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #1 from GyB gyebro69@gmail.com 2011-10-23 02:01:01 CDT --- Here is what Protection Id 6.4.0 tells us about the protection scheme in these games.
Tomb Raider: Legend
Scanning -> C:\Program Files\Tomb Raider - Legend\paul.dll File Type : 32-Bit Dll (Subsystem : Win GUI / 2), Size : 253952 (03E000h) Byte(s) [File Heuristics] -> Flag : 00000000000000000000000000000000 (0x00000000) [!] SecuROM PA Detected - Version 1.0.1.7 [!] Possible CD/DVD-Key or Serial Check -> unlock code [CompilerDetect] -> Visual C++ 7.1 (Visual Studio 2003) - Scan Took : 0.260 Second(s)
Scanning -> C:\Program Files\Tomb Raider - Legend\trl.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 23232512 (01628000h) Byte(s) [File Heuristics] -> Flag : 00000000000000000000000000000001 (0x00000001) [!] SecuROM Detected - Version 08.03.0012 [!] Possible CD/DVD-Key or Serial Check -> SerialNumber [CompilerDetect] -> Visual C++ 7.1 (Visual Studio 2003) - Scan Took : 2.193 Second(s)
GTA San Andreas
Scanning -> C:\Program Files\Rockstar Games\GTA San Andreas\gta_sa.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 15368192 (0EA8000h) Byte(s) [File Heuristics] -> Flag : 00000000000000000000000000000001 (0x00000001) [!] SecuROM Detected - Version 08.03.0009 [!] DONGLE - HASP Hardware Lock references detected ! [!] Possible CD/DVD-Key or Serial Check -> SerialNumber [CompilerDetect] -> Visual C++ 8.0 (Visual Studio 2005) - Scan Took : 1.776 Second(s)
Scanning -> C:\Program Files\Rockstar Games\GTA San Andreas\paul.dll File Type : 32-Bit Dll (Subsystem : Win GUI / 2), Size : 253952 (03E000h) Byte(s) [File Heuristics] -> Flag : 00000000000000000000000000000000 (0x00000000) [!] SecuROM PA Detected - Version 1.0.1.7 [!] Possible CD/DVD-Key or Serial Check -> unlock code [CompilerDetect] -> Visual C++ 7.1 (Visual Studio 2003) - Scan Took : 0.536 Second(s)
http://bugs.winehq.org/show_bug.cgi?id=28863
jhgf bernhardloos@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardloos@googlemail.com
--- Comment #2 from jhgf bernhardloos@googlemail.com 2011-11-09 04:16:19 CST --- Could you attach the user.reg file from ~/.wine (or whatever your prefix is)?
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #3 from GyB gyebro69@gmail.com 2011-11-09 12:38:28 CST --- Created attachment 37404 --> http://bugs.winehq.org/attachment.cgi?id=37404 user.reg
This is the user.reg file after a successful activation.
http://bugs.winehq.org/show_bug.cgi?id=28863
Bo Xiao mail.xiaobo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mail.xiaobo@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #4 from Dmitry Timoshkov dmitry@baikal.ru 2012-02-19 00:07:32 CST --- *** Bug 29935 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=28863
Paul The Tall paulthetall@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paulthetall@gmail.com
--- Comment #5 from Paul The Tall paulthetall@gmail.com 2012-03-28 05:02:56 CDT --- Glad this bug is created i confirm this bug with some more games of Gamersgate:
- Jolly Rover - Bully Scholarship - Teasure Hunters - Way of the Cossack - The Dead Mountaineer's Hotel
If a game is need i can sent you guys a serial with the zipped game of Treasure Hunter. It has i think 1 or two activate posibilities left.
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #6 from Paul The Tall paulthetall@gmail.com 2012-03-28 05:12:15 CDT --- Good thing was, first the game crashes at startup, but from 1.3.2x somewhere the game starts to show the activation screen. Thats a good thing, but unfortunatly the activation screen returns everytime on restart...
http://bugs.winehq.org/show_bug.cgi?id=28863
Maurizio Oliveri 6tsukiyami9@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |6tsukiyami9@gmail.com
--- Comment #7 from Maurizio Oliveri 6tsukiyami9@gmail.com 2012-07-25 11:24:30 CDT --- I'm glad to see this is actually happening to other people... I confirm this is happening on Batman: Arkham Asylum/ City as well ( I'm not sure which version of SecuROM is in use though ). I've actually tried to get my activations limit increased, and they replied writing "Please note that SecuROM does not work correctly under Linux. The problem is that the created activation files won´t be saved as foreseen." I've asked them if they could provide the path of these files ( or the registry key names ), but still no answer...
http://bugs.winehq.org/show_bug.cgi?id=28863
Jiang Yike futureway@asia.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |futureway@asia.com
--- Comment #8 from Jiang Yike futureway@asia.com 2012-08-15 04:15:29 CDT --- The SecuROM of "Sudden Strike 2 and Total Victory" and "Sudden Strike The Last Stand" from GamersGate also have the problem.
http://bugs.winehq.org/show_bug.cgi?id=28863
alan@apt-net.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alan@apt-net.co.uk
--- Comment #9 from alan@apt-net.co.uk 2012-08-15 18:10:34 CDT --- this also happens on the latest release of final fantasy 7
http://bugs.winehq.org/show_bug.cgi?id=28863
Grzegorz Krzystek grzegorz.krzystek@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |grzegorz.krzystek@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28863
Per Johansson per@morth.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |per@morth.org
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #10 from Grzegorz Krzystek grzegorz.krzystek@gmail.com 2012-08-18 08:08:12 CDT --- (In reply to comment #9)
this also happens on the latest release of final fantasy 7
Found workaround to prevent activation limit reach.
1)launch final fantasy 2) activate game 3) start playing game 4) on second terminal exec:
WINEPREFIX="/your/wineprefix/" wine /yourprefix/drive_c/Program\ Files\ (x86)/Square\ Enix/FINAL\ FANTASY\ VII/FF7_Launcher.exe /revoke
proceed online license revoke.
this procedure will not fix that you need activate each time you need to run your game, but it prevents activation limit reach. :) FF VII have limit 3 activations from same hardware :S
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #11 from Per Johansson per@morth.org 2012-09-17 06:41:01 CDT --- I actually asked SecuROM for help, but as expected they just replied with "Wine is not supported". Still, doesn't hurt to let them know that perhaps it should be supported...
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #12 from Per Johansson per@morth.org 2012-10-11 15:52:05 CDT --- Created attachment 42076 --> http://bugs.winehq.org/attachment.cgi?id=42076 GetProcAddress return value 0
Not sure if it is related, but attached is a grep of GetProcAddress returning 0 while launching FF7_Launcher.exe. I'm a bit curious about FT_Thunk in there, I thought it was added specifically for SecuROM?
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #13 from Per Johansson per@morth.org 2012-10-11 16:00:16 CDT --- Created attachment 42077 --> http://bugs.winehq.org/attachment.cgi?id=42077 Version with wgl stripped out
http://bugs.winehq.org/show_bug.cgi?id=28863
Piotr Pawlow pp@siedziba.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pp@siedziba.pl
http://bugs.winehq.org/show_bug.cgi?id=28863
swda289346+winehq.org@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |swda289346+winehq.org@gmail | |.com
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #14 from Per Johansson per@morth.org 2013-01-02 14:34:40 CST --- As far as files go, in the attached log I can't see it trying to create any files... the "creation 3" to CreateFileW is OPEN_EXISTING, which means it won't actually try to create a file. Might of course be other ways to create files, but I don't know windows very well so can't tell.
http://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #15 from Per Johansson per@morth.org 2013-01-02 15:51:47 CST --- The most strange thing I've found is that they consistently seem to use 0xE as value for TitleIndex in the NTSetValueKey call. TitleIndex is reserved and supposed to be 0, and wine ignores it... Also, in the attached log it's called with data length 1881 but in user.reg it's 1977 bytes long, but that might just be due to different calls. It's actually 1977 bytes long in my ff7 user.reg as well though (don't have a log to compare)
http://bugs.winehq.org/show_bug.cgi?id=28863
Mr Nobody limited_choice@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |limited_choice@hotmail.com
--- Comment #16 from Mr Nobody limited_choice@hotmail.com 2013-08-23 19:54:07 CDT --- Also affected by this, is DiRT2 (application_id=11277) ; having a sniff with protect_id returns pretty much same results as per comment #1 ; I have the version available on gamefly (nee direct2drive), and the PA portion appears to work, but the DSS stanza fails, typically popping a 'DSS Launcher' failure window.
(oh the irony to see the dss registry key comment extended to comply with required notification of the fact they're using openssl ... ;-)
http://bugs.winehq.org/show_bug.cgi?id=28863
cnfourt@gmail.com cnfourt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cnfourt@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28863
Christopher Larson kergoth@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kergoth@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #17 from Mr Nobody limited_choice@hotmail.com --- ..just an update ; problem still apparent wrt wine-1.7.32 -- now the whole direct2drive to gamefly back to direct2drive shuffle seems over, many direct2drive titles are hit by this (not just dirt2)..I found another game, 'Flock!' [appid 9485] is borked by this bug ; looking at the game exe with protectid yields - [!] SecuROM Detected - Version 08.03.0012 ; so it's the same issue...(and I know of at least 5 other direct2drive titles so affected)..
...'Flock!' has an unlimited license, so I can activate it as many times as I like, so if anyone wants specific logs of the "successful" online activation sequence (that leaves the installation in a non-activated state), just let me know what debugflags you wish to see..
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #18 from Béla Gyebrószki gyebro69@gmail.com --- Still present in 1.7.43 (tested with Fable III on Steam).
https://bugs.winehq.org/show_bug.cgi?id=28863
Erich E. Hoover erich.e.hoover@wine-staging.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erich.e.hoover@wine-staging | |.com
https://bugs.winehq.org/show_bug.cgi?id=28863
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |michael@fds-team.de
--- Comment #19 from Michael Müller michael@fds-team.de --- Is this still a bug in current wine? I was unable to reproduce the issue with Flock. The activation stayed active no matter whether I killed the wineserver or enforced an update using wineboot -u.
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #20 from Mr Nobody limited_choice@hotmail.com --- (In reply to Michael Müller from comment #19)
Is this still a bug in current wine? I was unable to reproduce the issue with Flock. The activation stayed active no matter whether I killed the wineserver or enforced an update using wineboot -u.
...hmm..okay, I'll get a clean build of wine-1.6.2 into the picture and recheck... will post result...
https://bugs.winehq.org/show_bug.cgi?id=28863
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #21 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Mr Nobody from comment #20)
...hmm..okay, I'll get a clean build of wine-1.6.2 into the picture and recheck... will post result...
Wine 1.6.2 is over a year old, and there were tons of improvements in the meantime. I fear test reports with such an old version are no longer useful. Please try to install 1.7.46 instead.
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #22 from Per Johansson per@morth.org --- I was unable to test 1.7.46 on FF7 due to not having any activations left. Sorry.
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #23 from Per Johansson per@morth.org --- Ok, got my activations reset by Square Enix. 1.7.46 is still affected. As far as I can tell it stays activated as long as wine server is running, then deactivates.
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #24 from Per Johansson per@morth.org --- Extract from SecuROM FAQ (https://support.securom.com/faq_pa.html):
" 2.4 What happens if I change my hardware (e.g. I bought a new graphics card)?
...
There is flexibility (set by the publisher, but defaults to 60%) of allowed hardware changes before a new activation is required.
A re-activation is necessary, after re-formatting a HDD and new Windows setup, as well as after creating a new Windows User account. For software changes, the SecuROM™ User Data are stored on two positions (Windows registry and the user APPDATA folder).
Note: The Product Activation servers differentiate between activations on same and different PCs. "
I'm a bit unsure if I get the "same PC" case or not, because Square told be I got one (1) more activation, but I've managed to activate twice now... Anyway I'll probably be revoking before shutdown from now on, don't want to risk another lock-out right now.
https://bugs.winehq.org/show_bug.cgi?id=28863
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=28863
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #25 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-7.0-rc5?
https://bugs.winehq.org/show_bug.cgi?id=28863
Thomas Kowaliczek-Schmer t.kowaliczekschmer@icloud.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |t.kowaliczekschmer@icloud.c | |om
https://bugs.winehq.org/show_bug.cgi?id=28863
--- Comment #26 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur wine wine-9.0?