http://bugs.winehq.org/show_bug.cgi?id=16365
--- Comment #16 from Dmitry Timoshkov dmitry@baikal.ru 2013-11-12 20:49:57 CST --- (In reply to comment #15)
attached is a small C application I wrote which resembles the game code for decrypting files. Can be used for testing or other purposes ;-)
There is a small bug in your test app:
if (!CryptDeriveKey(cprov, CALG_RC4, chash, strlen(passwd), &ckey)) return FALSE;
The 4th parameter of CryptDeriveKey is flags, not the length of some kind. Probably it should be CRYPT_CREATE_SALT (0x0004) if strlen("1111") works by a pure luck :)