Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 12:33

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: Need help identifying fsb key from file I assume to be fsb
PostPosted: 10 Jan 2010 01:28 

Joined: 10 Jan 2010 01:14
Posts: 5
From what I have read it is possible to identify the fsb key from the text that appears when you examine the file in a hex editor. When I try this on a file such as this http://www.sendspace.com/file/t9y0lx I cannot immediately see anything which would resemble the 31-byte key that fsbext.exe is asking for. I was wondering if somebody would be able to offer some hints as to what I am looking for with respect to the key.

I will try the guessfsb application after I am certain that the file I am examining is in fact an encrypted fsb file.

P.S The files came from the silent hill wii game, just in case that helps


Top
 Profile  
 
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 10 Jan 2010 02:32 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the file is not encrypted, it's simply a custom archive containing various files included a FSB one at offset 0x1124.
the FSB archive can be extracted correctly, I see only a problem in replying the extracted files (with -a option obviously) because looks like the coefficient (they are gc dsp files) is wrong... mistery


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 10 Jan 2010 03:08 

Joined: 10 Jan 2010 01:14
Posts: 5
Are you able to help me create a quickbms script for this? I am stuck because I do not know what address get FILES long should use


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 10 Jan 2010 15:45 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
Code:
get DUMMY long
get FULLSIZE long
math BASE_OFF = 0x14
goto BASE_OFF
getdstring FULLNAME 0x40

set MIN_OFF long FULLSIZE
for # I don't know if the other archives have ever 2 files
    get SIZE long
    get OFFSET long
    getdstring NAME 0x40
    math OFFSET += BASE_OFF
    log NAME OFFSET SIZE

    if OFFSET < MIN_OFF
        math MIN_OFF = OFFSET
    endif
    savepos MYOFF
    if MYOFF >= MIN_OFF
        cleanexit
    endif
next
as written in the comment I don't know if all these archives have ever 2 files (a fev and fsb one) so I have adopted a particular method to extract all the files in any case


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 11 Jan 2010 03:54 

Joined: 10 Jan 2010 01:14
Posts: 5
Thankyou very much aluigi, that is amazing!!

I cannot use the fsb files yet but I do not care, I will find a way later.

I will have to study the code to learn how to use it on the rest of the archives. I hope you do not mind me asking you questions about the code.


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 11 Jan 2010 13:19 

Joined: 10 Jan 2010 01:14
Posts: 5
I am trying to modify your code to work on this file here http://www.sendspace.com/file/nya36d and many other archives which are similar

This is what I have completed so far, unfortunately it doesn't work yet.

Code:
get DUMMY long
get FULLSIZE long
math BASE_OFF = 0x40
goto BASE_OFF
getdstring FULLNAME 0x15

set MIN_OFF long FULLSIZE
for # I don't know if the other archives have ever 2 files
    get SIZE long
    get OFFSET long
    getdstring NAME 0x15
    math OFFSET += BASE_OFF
    log NAME OFFSET SIZE

    if OFFSET < MIN_OFF
        math MIN_OFF = OFFSET
    endif
    savepos MYOFF
    if MYOFF >= MIN_OFF
        cleanexit
    endif
next


I wasn't sure what to put as the 'getdstring FULLNAME 0x??' because the sizes seem to vary. Can you please guide me to make it work for other files? I can give you many more samples if you need.


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 11 Jan 2010 17:00 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
mah, chaotic format


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 11 Jan 2010 23:26 

Joined: 10 Jan 2010 01:14
Posts: 5
aluigi wrote:
the file is not encrypted, it's simply a custom archive containing various files included a FSB one at offset 0x1124.
the FSB archive can be extracted correctly, I see only a problem in replying the extracted files (with -a option obviously) because looks like the coefficient (they are gc dsp files) is wrong... mistery


I think they are trying to trick us.

When I use fsbext -l it will list something like 'mono, hw3d,GC_adpcm 32000 1 16' which is nice but the files are not playable with these settings. They become closer to being playable when 8-bit resolution 22050 sample rate is used but still not good enough.

This is very interesting because there are some crazy methods being used here.


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 26 Mar 2010 16:18 

Joined: 26 Mar 2010 16:12
Posts: 4
So I've extracted all these archives from Silent Hill: Shattered Memories game (Wii version) arc -> fev -> fsb and got these wavs (stereo,hw2d,GC_adpcm 22050 2 16) from fsbs which are unplayable. I wonder if there is a way to convert them/make playable or perhaps extract properly?


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 26 Mar 2010 17:39 

Joined: 27 Nov 2009 20:34
Posts: 17
Try searching on Xentax first next time, I've already reversed the format: http://forum.xentax.com/viewtopic.php?f=10&t=4245 - works with every known platform version of the game (Wii, PS2 and PSP). :)
All FSB-files are decodable with vgmstream.


Top
 Profile  
 
 Post subject: Re: Need help identifying fsb key from file I assume to be fsb
PostPosted: 26 Mar 2010 18:33 

Joined: 26 Mar 2010 16:12
Posts: 4
Yeah, I've already been there and I used your scripts to extract arcs and fevs (thanks a lot for that btw. Great job, man). And then I used fsbext to extract fsbs from fevs and I got wavs. But these wavs cannot be played, so could you please be more specific about steps to make them playable?
BTW for some reason vgstream fails to open fsb.

Edit: Okay. Figured out myself after trials and errors ). Used fsbii 0.6 to makes single streamed fsb and converted them using vgstream.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron