[Bug 24157] New: Tera Copy Not Being Initiated
http://bugs.winehq.org/show_bug.cgi?id=24157 Summary: Tera Copy Not Being Initiated Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: krishnab91(a)gmail.com I just installed a software Tera Copy, a windows software, using Wine.. The installation was successful, but the Software is not being initiated when I try to open it.. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 krishna <krishnab91(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.1.42 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 leighman <leighmanthegreat(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |leighmanthegreat(a)hotmail.co | |m --- Comment #1 from leighman <leighmanthegreat(a)hotmail.com> 2010-08-26 06:19:02 --- https://bugs.launchpad.net/bugs/624386 Confirmed in 1.3.1 Terminal just outputs an error of err:seh:setup_exception_record stack overflow 2260 bytes in thread 0009 eip 7bc3f08e esp 00230a5c stack 0x230000-0x231000-0x330000 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW URL| |http://www.codesector.com/f | |iles/teracopy.exe Ever Confirmed|0 |1 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2010-08-26 09:09:36 --- With wine-1.3.1-182-g56b8d5d, I get: austin(a)midna:~/.wine/drive_c/Program Files/TeraCopy$ wine TeraCopy.exe fixme:psapi:EnumDeviceDrivers ((nil), 0, 0x6fea70): stub fixme:psapi:EnumDeviceDrivers (0x580000, 64, 0x6fea70): stub and it hangs. Though based on the program's description, it may be installing device drivers, which won't work in wine. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000(a)yahoo.co.uk --- Comment #3 from Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> 2010-08-26 15:23:54 --- 0009:Call KERNEL32.CreateFileA(00525527 "\\\\.\\SICE",80000000,00000003,00000000,00000003,00000080,00000000) ret=0051ecd1 0009:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0051ecd1 0009:Call KERNEL32.CreateFileA(00525530 "\\\\.\\NTICE",80000000,00000003,00000000,00000003,00000080,00000000) ret=0051ecd1 0009:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0051ecd1 0009:Call KERNEL32.CreateFileA(0052553a "\\\\.\\NTFIRE",80000000,00000003,00000000,00000003,00000080,00000000) ret=0051ecd1 0009:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0051ecd1 Looks like copyprotection? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 --- Comment #4 from Andrew Nguyen <arethusa26(a)gmail.com> 2010-08-26 15:38:54 --- (In reply to comment #3)
0009:Call KERNEL32.CreateFileA(00525527 "\\\\.\\SICE",80000000,00000003,00000000,00000003,00000080,00000000) ret=0051ecd1 0009:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0051ecd1 0009:Call KERNEL32.CreateFileA(00525530 "\\\\.\\NTICE",80000000,00000003,00000000,00000003,00000080,00000000) ret=0051ecd1 0009:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0051ecd1 0009:Call KERNEL32.CreateFileA(0052553a "\\\\.\\NTFIRE",80000000,00000003,00000000,00000003,00000080,00000000) ret=0051ecd1 0009:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0051ecd1
Looks like copyprotection?
Those lines are probably harmless, presumably the application is checking for the presence of a kernel debugger like SoftICE. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 GyB <gyebro69(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69(a)gmail.com --- Comment #5 from GyB <gyebro69(a)gmail.com> 2011-02-09 12:09:11 CST --- Still not starting with Wine-1.3.13. Protection ID says: Scanning -> C:\Program Files\TeraCopy\TeraCopy.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 957952 (0E9E00h) Byte(s) -> File has 698880 (0AAA00h) bytes of appended data starting at offset 03F400h [File Heuristics] -> Flag : 00000000000001011100001000110111 (0x0005C237) [!] Obsidium [unknown version - higher than 1.3.6.1] detected ! Looks like a software protection method. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |obfuscation CC| |focht(a)gmx.net Summary|Tera Copy Not Being |Tera Copy fails to start |Initiated |(Obsidium v1.x Software | |Protection System) --- Comment #6 from Anastasius Focht <focht(a)gmx.net> 2011-06-14 08:25:09 CDT --- Hello, the newer (beta) 2.2x versions work out of the box because the main exe has the protection removed (though the most important ui feature -> drap and drop of files doesn't work). http://www.codesector.com/files/teracopy22beta3.exe $ sha1sum teracopy22beta3.exe 3a572d728f0a63c4e9bb72e244efe658018369bf teracopy22beta3.exe Version 2.12 from: http://www.codesector.com/files/teracopy.exe dies very early. $ sha1sum teracopy.exe 257b6305cc636ee09df92caffda3048a0c727f37 teracopy.exe $ wine --version wine-1.3.22-31-g98394f2 Lots of anti-debugging trickery ... marking for later analysis. Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |kernel32 Summary|Tera Copy fails to start |Tera Copy fails to start - |(Obsidium v1.x Software |kernel32.DebugBreak() |Protection System) |taints frame pointer | |(Obsidium v1.x Software | |Protection System) --- Comment #7 from Anastasius Focht <focht(a)gmx.net> 2011-06-15 10:44:17 CDT --- Hello again, well that sucked ... debugging this braindamage is nasty. I'm starting to dream opcodes :| That Obsidum code is full of short branching in between opcodes to fool disassemblers and debuggers ... very annoying. Various anti debugging tricks and hooking/emulating/stealing of API entry code. Fortunately this stuff can be bypassed, you need to pass all exceptions (single step, div by zero, access violations, invalid opcode ...) to app installed SEHs. Also don't use soft breakpoints on API entries (int 3) it detects this. Hardware breakpoints are also reset in every SEH. CheckRemoteDebuggerPresent() needs to be "adjusted" to prevent detection. Wine doesn't lie about this ;-) +relay actually harms the protector and yields strange results (grrr lost some hours due to this problem) Without +relay we're left with little diagnostics. Most anti-debugging tricks work out of the box, until this place: --- snip --- 0021:trace:seh:raise_exception code=80000003 flags=0 addr=0x7b835a2b ip=7b835a2c tid=0021 0021:trace:seh:raise_exception eax=7b8366e5 ebx=0053015c ecx=7b810000 edx=7b8942dc esi=0032fce8 edi=00341e94 0021:trace:seh:raise_exception ebp=0032fcd8 esp=0032fcd8 cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00000202 0021:trace:seh:call_vectored_handlers calling handler at 0x686a7de9 code=80000003 flags=0 0021:trace:seh:call_vectored_handlers handler at 0x686a7de9 returned 0 0021:trace:seh:call_stack_handlers calling handler at 0x531597 code=80000003 flags=0 0021:trace:seh:call_stack_handlers handler at 0x531597 returned 0 0021:trace:seh:raise_exception code=c0000005 flags=0 addr=0x51fd1a ip=0051fd1a tid=0021 0021:trace:seh:raise_exception info[0]=00000001 0021:trace:seh:raise_exception info[1]=3ed59644 0021:trace:seh:raise_exception eax=b2850111 ebx=a4aac3f0 ecx=00008500 edx=00000028 esi=0000db31 edi=0051fd26 0021:trace:seh:raise_exception ebp=0032fce4 esp=0032fcd8 cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00010286 0021:trace:seh:call_vectored_handlers calling handler at 0x686a7de9 code=c0000005 flags=0 0021:trace:seh:call_vectored_handlers handler at 0x686a7de9 returned 0 0021:err:seh:raise_exception Exception frame is not in stack limits => unable to dispatch exception. --- snip --- The protector calls DebugBreak() on purpose to force exception handler invocation and change execution flow by modifying its own context, so called "continuations". context->eip, context->esp are set to new targets. There is also reset of Dr0-Dr3,Dr7 to harm debuggers. Upon return from exception handler, the new context is made active and execution proceeds. After some hours I came across this snippet (some junk opcodes removed): --- snip --- 0051AB65 396D EC CMP DWORD PTR SS:[EBP-14],EBP 0051AB68 EB 04 JMP SHORT 0051AB6E ... <explodes somewhere> ... --- snip --- There is a check in continuation code for frame pointer validity and this is where Wine gets it wrong ... kernel32.DebugBreak Source: http://source.winehq.org/git/wine.git/blob/0fd822f46526df49f5fa29627afbace7c... kernel32.DebugBreak Disassembly: --- snip --- 7B8366E5 55 PUSH EBP 7B8366E6 89E5 MOV EBP,ESP 7B8366E8 E8 3BF3FFFF CALL 7B835A28 7B8366ED 5D POP EBP 7B8366EE C3 RETN --- snip --- (DbgBreakPoint inlined) --- snip --- 7B835A28 55 PUSH EBP 7B835A29 89E5 MOV EBP,ESP 7B835A2B CC INT3 7B835A2C 5D POP EBP 7B835A2D C3 RETN --- snip --- When the protector calls DebugBreak(), Wine taints the frame pointer. This value is then propagated to continuation code through the context passed to exception handler. As fix either use inline without frame pointer or forward this to ntdll (which is probably better for Windows compatibility). This keeps the protection happy (runs much further) only to end up in endless loop, which seems to be another bug... :| Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Summary|Tera Copy fails to start - |Tera Copy crashes on |kernel32.DebugBreak() |startup - |taints frame pointer |kernel32.DebugBreak() |(Obsidium v1.x Software |taints frame pointer |Protection System) |(Obsidium v1.x Software | |Protection System) --- Comment #8 from Anastasius Focht <focht(a)gmx.net> 2011-06-16 15:42:10 CDT --- Hello, the kernel32.DebugBreak problem is fixed by commit: http://source.winehq.org/git/wine.git/commitdiff/5f06809ab3339e2001de57f18be... Thanks. The app spins in endless loop now - but that's a different problem... Regaeds -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Alexandre Julliard <julliard(a)winehq.org> 2011-06-24 17:44:40 CDT --- Closing bugs fixed in 1.3.23. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=24157 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5f06809ab3339e2001de57f18be | |988146915bb7b -- 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.
participants (1)
-
wine-bugs@winehq.org