gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

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

Reply
 
Thread Tools Display Modes
  #1  
Old 2010-09-06, 20:29
wolfman
Guest
 
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
  #2  
Old 2010-09-06, 20:47
dsp2003
Guest
 
Posts: n/a
Default

Use this:
Reply With Quote
  #3  
Old 2010-09-07, 16:45
wolfman
Guest
 
Posts: n/a
Default

Kikiriki?
What's a program?
I'll challenge again.
Thank you very much.
Reply With Quote
  #4  
Old 2010-09-07, 19:24
wolfman
Guest
 
Posts: n/a
Default

Excuse me, I ask one more question.
How to use crass for encrypted files?
For example, reverse to .xp3 archive form.
I think this problem is between my program and kirikiri engine version compatibility problem.
So, I tried to make CUI Program from Visual Studio 2008. but, it is failed.
If everyone are have a time, please give me a hint or solution.
It will become really a big assistance.

Last edited by wolfman; 2010-09-07 at 19:58.
Reply With Quote
  #5  
Old 2010-09-07, 22:50
dsp2003
Guest
 
Posts: n/a
Default

The tool posted above is a console repacker, which hooks original game's application and it's modules in order to correctly process the encrypted data. Works for the most of encrypted .xp3 archives, except for those without "proper" cxdec module ("Okiba ga Nai!", for example). Plus, you can use the following console application written in ASM for the several encrypted .xp3 archive variations: http://4otaku.ru/post/712

It seems the CRASS is no longer in development, so it won't support newer games at all. It's also impossible to repack anything with CRASS, since it has no repacker modules.
Reply With Quote
  #6  
Old 2010-09-07, 23:41
d_fallen_god's Avatar
d_fallen_god d_fallen_god is offline
Regular
 
Join Date: Jun 2010
Location: In Galgame World
Posts: 63
Send a message via AIM to d_fallen_god Send a message via MSN to d_fallen_god Send a message via Yahoo to d_fallen_god
Default

Kirikiri...^_^

I can help you with that....
I may have what your looking for...
do you have an email?
or
email me:d.fallen.god@gmail.com
Crass is not fully functional in some kirikiri games...
I already hack a lot kirikiri games lately, so I can help with your problem...
Reply With Quote
  #7  
Old 2010-09-08, 17:48
wolfman
Guest
 
Posts: n/a
Default

To. dsp2003

I'm sorry for the late reply.
I used to Kikiriki tool. but, it was not key of solution.

And then, very thank you. So far, I didn't know Something amazing site.
However, I have a problem. This site language is russian language.
So, I'm through translate help from google chrome Web browser.
But, it's not perfect. I can't understand instruction to arc_conv tool and etc.
(--xp3, --swan for example) namely, I don't know consol option input position.

I'm really sorry that I ask you again.
If you know consol control instruction, please help me.
Have a nice day.

p.s) I read a crass explanation reply, I know it very well. thank you.
p.s2) If you need, add to image file.

Last edited by wolfman; 2010-09-08 at 20:15.
Reply With Quote
  #8  
Old 2010-09-08, 23:32
dsp2003
Guest
 
Posts: n/a
Default

Regarding the arc_conv, use the following command line:

Quote:
arc_conv.exe --pack xp3 directory archive.xp3 swan
Reply With Quote
  #9  
Old 2010-09-09, 06:01
wolfman
Guest
 
Posts: n/a
Default

To. dsp2003

I can understand that How to creation pack file from arc_conv.
Since, I'm trying to find Decompile way but, I can't found.
So, I have a other choice.

First, use to Crass from complete decompile.(unpack)
And, use to arc_conv from complete compile. (repack)
of course, compile code is reference from previous reply.

Resultingly, the following. (run exe)


Maybe, this cause is between dec=xror code of Crass and arc_conv compatibility.
If I want to get a Success from .xp3 decompile/compile, before I know arc_conv.
And why appear popup image(data.xp3 error) I don't know the reason why.
This is equate to something Executable is Fail when SWANSONG.(The body text)


Please how to use archive decompile of arc_conv.
in case, arc_conv is only compile tool?
I tried to Normal decompile but, RAR archive conversion.


And, the compression file is protect. also, I don't open Shift-jis 932 code option.
If you are have a time, please give me a hint or solution.

have a nice day.

Last edited by wolfman; 2010-09-09 at 13:24.
Reply With Quote
Reply

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 06:26.


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