[Bug 41634] TERA Launcher fails on startup with ' unable to load copycub.dll file: Interop load failed' ( Certificate not trusted by trust provider)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 23 10:11:42 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=41634

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |download
          Component|-unknown                    |crypt32
                URL|                            |http://patch.tera.enmasse-g
                   |                            |ame.com/temp/TERA-Minimal-S
                   |                            |etup.exe
            Summary|Tera Launcher Fails         |TERA Launcher fails on
                   |                            |startup with 'unable to
                   |                            |load copycub.dll file:
                   |                            |Interop load failed'
                   |                            |(Certificate not trusted by
                   |                            |trust provider)
         Resolution|---                         |DUPLICATE

--- Comment #7 from Anastasius Focht <focht at gmx.net> ---
Hello Eli,

the log file from the launcher tells a bit.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/users/Public/Games/En Masse Entertainment/TERA

$ file *
002a.txt:               ASCII text, with very long lines
chrome.pak:             data
Client:                 directory
CopyCub.dll:            PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
downloader.dll:         PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
EMEDiag.exe:            PE32 executable (GUI) Intel 80386, for MS Windows
EMEVersionCheck.exe:    PE32 executable (GUI) Intel 80386 Mono/.Net assembly,
for MS Windows
GDF:                    directory
icudt.dll:              PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
launcher.log:           ASCII text, with CRLF line terminators
libcef.dll:             PE32 executable (DLL) (console) Intel 80386, for MS
Windows
Live2-Launcher.version: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
locales:                directory
log.txt:                ASCII text, with very long lines
patcher.dll:            PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
steam_api.dll:          PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
SteamSupport.dll:       PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
StmOCX.dll:             PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
TERA-Launcher.exe:      PE32 executable (GUI) Intel 80386, for MS Windows
--- snip ---

'launcher.log':

--- snip ---
09/23/2018 12:27:29 Launcher Version: v2.2.1
09/23/2018 12:27:29 Extracting skin file (locale/en-us.json)
09/23/2018 12:27:29 Extracting skin file (locale/en-us.json)
09/23/2018 12:27:29 Unable to extract skin file (locale/en.json)
09/23/2018 12:27:29 Extracting skin file (workflow.json)
09/23/2018 12:27:29 Unable to extract skin file (locale/us.json)
09/23/2018 12:27:29 Accept queue size of (4)
09/23/2018 12:27:29 Response code set [/exit_screen/_js/jquery.index.js:200:0]
09/23/2018 12:27:29 Response code set [/exit_screen/_js/jquery-1.11.0.js:200:0]
09/23/2018 12:27:29 Response code set [/exit_screen/_css/default.css:200:0]
09/23/2018 12:27:29 Response code set
[/mainwindow/images/News_patch_table.png:200:0]
09/23/2018 12:27:29 http://127.0.0.1:33441/mainwindow/index.js (1244): onfocus
09/23/2018 12:27:29 http://127.0.0.1:33441/mainwindow/index.js (1244): onfocus
09/23/2018 12:27:29 Accept queue size of (3)
09/23/2018 12:27:29 Response code set [/info_screen/_js/jquery-1.11.0.js:200:0]
09/23/2018 12:27:29 Response code set [/info_screen/_css/default.css:200:0]
09/23/2018 12:27:29 Response code set
[/exit_screen/_js/jquery.zrssfeed.min.js:200:0]
09/23/2018 12:27:29 Loading interop library (C:\users\Public\Games\En Masse
Entertainment\TERA\downloader.dll) (3.5.3.2)
09/23/2018 12:27:29 Accept queue size of (3)
09/23/2018 12:27:29 Loading interop library (C:\users\Public\Games\En Masse
Entertainment\TERA\patcher.dll) (3.5.3.2)
09/23/2018 12:27:29 Extracting skin file (analytics.json)
09/23/2018 12:27:29 Response code set [/info_screen/_js/jquery.index.js:200:0]
09/23/2018 12:27:29 Response code set
[/error_screen/_js/jquery-1.11.0.js:200:0]
09/23/2018 12:27:29 Response code set [/error_screen/_css/default.css:200:0]
09/23/2018 12:27:31 Downloader Version: 3.5.3.2
09/23/2018 12:27:31 Solid Core v0.82 () in use (S11)
09/23/2018 12:27:31 Cwd [C:\users\Public\Games\En Masse Entertainment\TERA\]
[40:16:7E:14:B3:5D]
09/23/2018 12:27:31 Torrent Agent: -SC0082-
09/23/2018 12:27:31 Torrent Agent: -SD3532-
09/23/2018 12:27:31 Manager state changing from (Idle) to (Start)
09/23/2018 12:27:31 Manager state changing from (Start) to (Process)
09/23/2018 12:27:32 Patcher Version: 3.5.3.2
09/23/2018 12:27:32 Accept queue size of (2)
09/23/2018 12:27:32 Response code set [/error_screen/_js/jquery.index.js:200:0]
09/23/2018 12:27:32 Response code set
[/mainwindow/images/bgButtonRetryLogin.png:200:0]
09/23/2018 12:27:32 Response code set
[/mainwindow/images/Login_Frame_BG.png:200:0]
09/23/2018 12:27:32 Response code set
[/mainwindow/images/ajax-loader.gif:200:0]
09/23/2018 12:27:32 Accept queue size of (3)
09/23/2018 12:27:32 Response code set [/exit_screen/images/chkbox.png:200:0]
09/23/2018 12:27:32 Response code set
[/exit_screen/images/windowControls.png:200:0]
09/23/2018 12:27:32 Response code set
[/info_screen/images/windowControls.png:200:0]
09/23/2018 12:27:32 Response code set
[/error_screen/images/windowControls.png:200:0]
09/23/2018 12:27:32 Loading interop library (C:\users\Public\Games\En Masse
Entertainment\TERA\CopyCub.dll)
09/23/2018 12:27:32 Certificate not trusted by trust provider
09/23/2018 12:27:32 Library validation (C:\users\Public\Games\En Masse
Entertainment\TERA\CopyCub.dll) failed
09/23/2018 12:27:32 ErrorMessage: Interop load failed
--- snip ---

The launcher accepts command line parameters:

http://support.enmasse.com/tera/obtaining-the-developer-logs-and-diag-information-when-contacting-support

$ wine ./TERA-Launcher.exe /<switch1> /<switch2>

/window -> show debug output in console
/debug -> create host.developer.log with more info
...

ProtectionID scan:

--- snip ---
-=[ ProtectionID v0.6.9.0 DECEMBER]=-
(c) 2003-2017 CDKiLLER & TippeX
Build 24/12/17-21:05:42
Ready...
Scanning -> C:\users\Public\Games\En Masse Entertainment\TERA\CopyCub.dll
File Type : 32-Bit Dll (Subsystem : Win GUI / 2), Size : 167944 (029008h)
Byte(s) | Machine: 0x14C (I386)
Compilation TimeStamp : 0x53C44A3A -> Mon 14th Jul 2014 21:23:06 (GMT)
[TimeStamp] 0x53C44A3A -> Mon 14th Jul 2014 21:23:06 (GMT) | PE Header | - |
Offset: 0x000000F0 | VA: 0x100000F0 | -
[TimeStamp] 0x53C44A3A -> Mon 14th Jul 2014 21:23:06 (GMT) | Export | - |
Offset: 0x00023594 | VA: 0x10024B94 | -
[TimeStamp] 0x53C44A3A -> Mon 14th Jul 2014 21:23:06 (GMT) | DebugDirectory | -
| Offset: 0x0001DC34 | VA: 0x1001F234 | -
-> File Appears to be Digitally Signed @ Offset 027A00h, size : 01608h / 05640
byte(s)
[LoadConfig] Struct determined as v8 (Expected size 140 | Actual size 64)
[!] Executable uses SEH Tables (/SAFESEH) (28 calculated 28 recorded... 0
invalid addresses) 
[LoadConfig] CodeIntegrity -> Flags 0x1 | Catalog 0x0 (0) | Catalog Offset
0x775C3A43 | Reserved 0x5C6B726F
[LoadConfig] GuardAddressTakenIatEntryTable 0x61726574 | Count 0x6E73732D
(1853059885)
[LoadConfig] GuardLongJumpTargetTable 0x75616C2D | Count 0x6568636E
(1701340014)
[LoadConfig] HybridMetadataPointer 0x756F5C72 | DynamicValueRelocTable
0x6F435C74
[LoadConfig] FailFastIndirectProc 0x75437970 | FailFastPointer 0x64702E62
[LoadConfig] UnknownZero1 0x62
[File Heuristics] -> Flag #1 : 00000100000001001101000100000100 (0x0404D104)
[Entrypoint Section Entropy] : 6.65 (section #0) ".text   " | Size : 0x1D49F
(119967) byte(s)
[DllCharacteristics] -> Flag : (0x0140) -> ASLR | DEP
[SectionCount] 5 (0x5) | ImageSize 0x2D000 (184320) byte(s)
[Export] 100% of function(s) (4 of 4) are in file | 0 are forwarded | 4 code |
0 data | 0 uninit data | 0 unknown | 
[ModuleReport] [IAT] Modules -> KERNEL32.dll | USER32.dll | SHLWAPI.dll |
VERSION.dll
[Debug Info] (record 1 of 1) (file offset 0x1DC30)
Characteristics : 0x0 | TimeDateStamp : 0x53C44A3A (Mon 14th Jul 2014 21:23:06
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 2 (0x2) -> CodeView | Size : 0x42 (66) 
AddressOfRawData : 0x22A98 | PointerToRawData : 0x21498
CvSig : 0x53445352 | SigGuid 7138648E-3F3E-4853-8BC98BEBE72F85F0
Age : 0x1 (1) | Pdb : C:\work\tera-ssn-launcher\out\CopyCub.pdb
[CompilerDetect] -> Visual C++ 10.0 (Visual Studio 2010)
[!] File appears to have no protection or is using an unknown protection
- Scan Took : 0.266 Second(s) [00000010Ah (266) tick(s)] [246 of 580 scan(s)
done]
--- snip ---

Using Sigcheck v2.60 tool:

https://docs.microsoft.com/en-us/sysinternals/downloads/sigcheck

--- snip ---
$ wine ./sigcheck.exe -a -h -i CopyCub.dll 

Sigcheck v2.60 - File version and signature viewer
Copyright (C) 2004-2017 Mark Russinovich
Sysinternals - www.sysinternals.com

0009:fixme:crypt:CryptSIPRetrieveSubjectGuidForCatalogFile (L"CATADMIN" 0x54
0x33a06c)
0009:fixme:ver:GetFileVersionInfoSizeExW flags 0x2 ignored
C:\users\Public\Games\En Masse Entertainment\TERA\CopyCub.dll:
    Verified:    Signed
    Link date:    11:23 PM 7/14/2014
    Signing date:    11:23 PM 7/14/2014
    Catalog:    C:\users\Public\Games\En Masse Entertainment\TERA\CopyCub.dll
    Signers:
       En Masse Entertainment
        Cert Status:    This certificate or one of the certificates in the
certificate chain is not time valid., Error 65536 (0x10000)
        Valid Usage:    Code Signing, 1.3.6.1.4.1.311.2.1.22
        Cert Issuer:    Thawte Code Signing CA - G2
        Serial Number:    0E 6B FD 22 C3 4E B5 21 9C 4F AF D6 0C F6 18 38
        Thumbprint:    ABD34C23833EED9673C17FD9177B4E7D94342968
        Algorithm:    sha1RSA
        Valid from:    2:00 AM 2/22/2013
        Valid to:    1:59 AM 4/7/2015
       Thawte Code Signing CA - G2
        Cert Status:    Valid
        Valid Usage:    Client Auth, Code Signing
        Cert Issuer:    thawte Primary Root CA
        Serial Number:    47 97 4D 78 73 A5 BC AB 0D 2F B3 70 19 2F CE 5E
        Thumbprint:    808D62642B7D1C4A9A83FD667F7A2A9D243FB1C7
        Algorithm:    sha1RSA
        Valid from:    2:00 AM 2/8/2010
        Valid to:    1:59 AM 2/8/2020
       thawte Primary Root CA
        Cert Status:    Valid
        Valid Usage:    All
        Cert Issuer:    thawte Primary Root CA
        Serial Number:    34 4E D5 57 20 D5 ED EC 49 F4 2F CE 37 DB 2B 6D
        Thumbprint:    91C6D6EE3E8AC86384E548C299295C756C817B81
        Algorithm:    sha1RSA
        Valid from:    2:00 AM 11/17/2006
        Valid to:    1:59 AM 7/17/2036
    Company:    n/a
    Description:    n/a
    Product:    n/a
    Prod version:    n/a
    File version:    n/a
    MachineType:    32-bit
    Binary Version:    n/a
    Original Name:    n/a
    Internal Name:    n/a
    Copyright:    n/a
    Comments:    n/a
    Entropy:    6.575
    MD5:    0EF8357A7DAA673CBD5461B17FE2D7A4
    SHA1:    A8F4314C0D682CC1AA8F7A12B416B70CD41BAC20
    PESHA1:    A8F4314C0D682CC1AA8F7A12B416B70CD41BAC20
    PE256:    n/a
    SHA256:    E2F6276C7DC00A9438E6918DADA1FDC58002B40FB85BCA53C082B605F3BF6892
    IMP:    05BBD99ACC987071EBB7EDAC8489A67C
--- snip ---

It's actually a dupe of bug 34388

Applying Wine-Staging patchset
https://github.com/wine-staging/wine-staging/tree/master/patches/crypt32-CMS_Certificates
fixes it.

https://bugs.winehq.org/show_bug.cgi?id=34388#c18 also confirms it (years ago).

--- snip ---
$ pwd
/home/focht/.wine/drive_c/users/Public/Games/En Masse Entertainment/TERA

$ WINEDEBUG=+seh,+relay,+crypt,+cryptasn wine ./TERA-Launcher.exe >>log.txt
2>&1
...
00f7:trace:cryptasn:CRYPT_AsnDecodeCMSSignedInfo 0x1691f0, 5968, 00008000,
(nil), 0x33dd68, 0x33dd64
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence 0x33dc4c, 6, 0x1691f0, 5968,
00008000, (nil), 0x33dd68, 3399040, (nil)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems 0x33dc4c, 6, 0x1691f4, 5958,
00008000, (nil), (nil), 0x33db94
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0: tag 06 doesn't match
expected 02
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems returning 0
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence returning 0 (8009310b)
00f7:trace:cryptasn:CRYPT_AsnDecodeCMSSignedInfo returning 0 
...
00f7:trace:cryptasn:CRYPT_AsnDecodeCMSSignerInfoInternal 0x16bc96, 1037,
00000000, (nil), 0
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence 0x33d830, 7, 0x16bc96, 1037,
00000000, (nil), (nil), 0, (nil)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems 0x33d830, 7, 0x16bc9a, 1033,
00000000, (nil), (nil), 0x33d784
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 0
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0 size: 4
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0: decoded 3 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 1
00f7:trace:cryptasn:CRYPT_AsnDecodeIssuerSerialNumber 0x16bc9d, 103, 00000000,
(nil), 0, 0x33d694
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence 0x33d5c4, 2, 0x16bc9d, 103,
00000000, (nil), (nil), 0, (nil)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems 0x33d5c4, 2, 0x16bc9f, 101,
00000000, (nil), (nil), 0x33d514
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 0
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0 size: 92
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0: decoded 83 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 1
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 1 size: 24
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 1: decoded 18 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems returning 1
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence returning 1 (00000000)
00f7:trace:cryptasn:CRYPT_AsnDecodeIssuerSerialNumber returning 1
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 1 size: 120
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 1: decoded 103 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 2
00f7:trace:cryptasn:CRYPT_AsnDecodeAlgorithmId 0x16bd04, 11, 00000000, (nil),
0, 0x33d694
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence 0x33d608, 2, 0x16bd04, 11,
00000000, (nil), (nil), 0, (nil)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems 0x33d608, 2, 0x16bd06, 9,
00000000, (nil), (nil), 0x33d554
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 0
00f7:trace:cryptasn:CRYPT_AsnDecodeOidIgnoreTag 0x16bd06, 7, 00000000, (nil), 0
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0 size: 20
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 0: decoded 7 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems sizing item 1
00f7:trace:cryptasn:CRYPT_AsnDecodeCopyBytes 0x16bd0d, 2, 00000000, (nil), 0
00f7:trace:cryptasn:CRYPT_FindEncodedLen (0x16bd0d, 2)
00f7:trace:cryptasn:CRYPT_FindEncodedLen returning 1 (2)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 1 size: 12
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 1: decoded 2 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems returning 1
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence returning 1 (00000000)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 2 size: 32
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 2: decoded 11 bytes
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems skipping optional item 3
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems item 4: tag 31 doesn't match
expected 30
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems returning 0
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence returning 0 (8009310b)
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems skipping optional item 5
00f7:trace:cryptasn:CRYPT_AsnDecodeSequenceItems returning 1
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence expected 5939 decoded, got 4898,
failing
00f7:trace:cryptasn:CRYPT_AsnDecodeSequence returning 0 (80093103)
00f7:trace:cryptasn:CRYPT_AsnDecodeCMSSignedInfo returning 0 
...
00f7:Call user32.MessageBoxW(00040080,0442f6e0 L"The TERA Launcher is unable to
load copycub.dll file.\n\nErrorMessage: Interop load failed\n\nIf this problem
persists please visit support.enmasse.com/tera for additional help",02015340
L"TERA Launcher",00000030) ret=10070a1d 
--- snip ---

$ sha1sum TERA-Minimal-Setup.exe 
8063745ef74aa13f0766b91b52b11ce65866aa47  TERA-Minimal-Setup.exe

$ du -sh TERA-Minimal-Setup.exe 
60M    TERA-Minimal-Setup.exe

$ wine --version
wine-3.16-167-g42929b75fc

Regards

*** This bug has been marked as a duplicate of bug 34388 ***

-- 
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