gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

Technical Issues For bug reports, problem solving, and help running Japanese software.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 2010-09-06, 20:29
Posts: n/a
Unhappy Crass dec=xror option encrypted problem.

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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

All times are GMT -8. The time now is 21:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2023, vBulletin Solutions, Inc.