![]() |
|
Technical Issues For bug reports, problem solving, and help running Japanese software. |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
hello. I'm korean and I can't speak english well.
please understand even if you can't understand me clearly. I have got a question. A few days ago, I had got crass source, this file name is cui-1.0.4-src. I tried to source interpretation, but the problem is here. This is dec=xror parameter decode source of crass tool. --------------------------------------------------------------------------------------- // xror static void xp3filter_decode_xor_ror(BYTE *buf, DWORD len, DWORD offset, DWORD hash) { BYTE shift, xor; shift = (BYTE)hash; xor = (BYTE)((hash >> 8) & 0xff); if (!shift) shift = 15; if (!xor) xor = 0xf0; shift &= 7; for (DWORD i = offset; i < offset + len; i++) { buf[i] ^= xor; buf[i] = (buf[i] >> shift) | (buf[i] << (8 - shift)); } } --------------------------------------------------------------------------------------- I needed to repacker, source is changed. (exclusive or=xor) (before) for (DWORD i = offset; i < offset + len; i++) { buf[i] ^= xor; buf[i] = (buf[i] >> shift) | (buf[i] << (8 - shift));} (after) for (DWORD i = offset; i < offset + len; i++) { buf[i] = (buf[i] << shift) | (buf[i] >> (8 - shift)); buf[i] ^= xor;} and then, I'm got CUI file from solution build to Visual Studio 2008. I can package it back to .xp3 form but Executable is Fail when SWANSONG. I'm certain to .xp3 file problem but not ANSI or Unicode problem. I don't know what solution. How can I do? please give me the soultion of dec=xror encryption. (xp3 repack) thank you and have a nice day. Last edited by wolfman; 2010-09-06 at 21:15. |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacker Have Crass? | Minimoto | Production & Help | 6 | 2010-05-03 17:08 |
Where to get crass? | Unregistered | Production & Help | 0 | 2010-03-16 16:01 |
repacking encrypted .xp3 | Lacan | Technical Issues | 0 | 2009-03-18 18:36 |
encrypted japanese text | papillon | Technical Issues | 8 | 2007-11-21 14:48 |
Translating RealLive Option Windows | FallingStar | Technical Issues | 6 | 2006-11-30 21:41 |