*.cd suffix file [Encrypted] , Seeking can work bms

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

Re: *.cd suffix file [Encrypted] , Seeking can work bms

Post by x_hiro11 »

@ aluigi
This is an encrypted .sz file, seeking bms.

http://www.filedropper.com/szfiles
x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

*.cd suffix file, Seeking can work bms

Post by x_hiro11 »

The file is encrypted and I want to extract the video.

https://drive.google.com/file/d/1cq7KtB ... IZ-ko/view


The file extracted by the following code is a .dat file and cannot be played. Its real format is flv

Please help me modify the code so that it can work on the dat file and extract the video file.

Code: Select all

# the first bytes are 0xa1bd or 0xbda1
goto 2
get KEY byte
math KEY ^ 0x01
filexor KEY
savepos OFFSET
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME + "."
log NAME OFFSET SIZE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: *.cd suffix file [Encrypted] , Seeking can work bms

Post by aluigi »

@ x_hiro11
Please don't open new topics for the same software and format.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: *.cd suffix file [Encrypted] , Seeking can work bms

Post by aluigi »

Code: Select all

goto 3
get KEY byte
math KEY ^ 'F'
goto 3
filexor KEY
savepos OFFSET
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME + "."
log NAME OFFSET SIZE
x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

Re: *.cd suffix file [Encrypted] , Seeking can work bms

Post by x_hiro11 »

aluigi wrote:@ x_hiro11
Please don't open new topics for the same software and format.


Ok, I got it.
Thank you very much.