5,596,235 Members 36,387 Now Online
XDA Developers Android and Mobile Development Forum

(Unsupported) [KS20] Tool. DZDecrypt v1.0b *alpha release* [10-03-29].

Tip us?
 
copsfrance
Old
(Last edited by copsfrance; 17th September 2012 at 03:33 PM.) Reason: Update infos / Mise à jour infos
#1  
copsfrance's Avatar
Member - OP
Thanks Meter 54
Posts: 68
Join Date: Mar 2008
Cool (Unsupported) [KS20] Tool. DZDecrypt v1.0b *alpha release* [10-03-29].

Hello guys...

Here is my DZ file decryptor and extractor.
I found DZExtract v0.2 (from jp) too long to extract and needing too many things (NetFramework, zlib dynamic library, ...).
This one is coded in asm with a custom zlib static lib integrated and MD5 hash (from Roy/Fleur).
Hope it will be usefull for any (source code is available if someone is interested).

CUL8R...

Voici mon décrypteur-extracteur de fichier DZ.
Je trouvais DZExtract v0.2 (de jp) trop long à extraire et nécessitant trop d'éléments (NetFramework, zlib dll, ...).
Celui-ci est codé en assembleur avec une dll statique zLib personnalisée intégrée et la fonction de hash MD5 (basée sur celle de Roy/Fleur).
J'espère qu'il sera utile à quelqu'un (le code source en masm est mis à disposition si cela intéresse quelqu'un).

Laurent aka BIGBOSS from COPS...


History
-------
  • 17 Sep 2012 - No more support
    - I'm sorry to inform you that my good OLD KS20 died, so i'm now unable to continue these projects (DzDecrypter and DzCreator).

  • 29 Mar 2010 - Version 1.0b *Alpha*
    - Now memory handled in ini file. / Maintenant, la mémoire est gérée dans un fichier ini.
    - Display some informations for DzCreator. / Affiche quelques informations pour DzCreator.
    - Version alpha seems stable, so sources are provided. / Les sources sont de nouveau fournis car la version semble stable.

  • 18 Mar 2010 - Version 1.0 *Alpha*
    - Sorry for this "late" update. / Désolé pour cette mise à jour tardive.
    - No source this time, want to be sure it works correctly. / Pas de source cette fois, j'attend d'être sur que cela fonctionne correctement.
    - Temporary memory buffer changed to 250Mo / Mémoire du buffer temporaire passée à 250Mo
    - Splitted file joiner (may be buggy!) / Jonction des fichiers splittés (peut bugger!)
    - If splitted file joiner is bugging, let me know./ S'il y a un probleme sur la jonction des fichiers splittés, faites le moi savoir.
    - Working on updating DzCreate for splitting / Je travaille sur DzCreate pour le splitting.

  • 22 Dec 2009 - Version 0.5
    - Temporary memory buffer changed to 160Mo / Mémoire du buffer temporaire passée à 160Mo
    - Thanx to Homero2 to send me BL40 and GM750 DZs / Merci à Homero2 pour les DZ de BL40 et GM750
    - Extraction is correct on these DZs / L'extraction se fait correctement sur ces fichiers
    - I will soon release a DzCreate upgrade, because is seems that unpacked subfiles having a size greater than 160Mo are splitted in files of 160 Mo. I'm explaining: In BL40 Dz, i've got 2 files "cefs_Modem.bin_0" and "cefs_Modem.bin_1" which , I think once merged, are just one file named "cefs_Modem.bin". -> To be checked because it's the first file i have a such case, so i haven't include a merger in the decryptor this time.
    - Je vais bientot réaliser une mise à jour du DzCreate, car il semble que les sous-fichiers ayant une taille décompressée supérieure à 160Mo soient séparés en fichiers de 160 Mo. Je m'explique: Dans le DZ du BL40, j'ai 2 fichiers nommés "cefs_Modem.bin_0" et "cefs_Modem.bin_1" qui, je pense, une fois concatenés, font un seul et même fichier nommé "cefs_Modem.bin". -> A vérifier car c'est la première fois que j'ai ce cas, donc, je n'ai pas inclu de code pour concaténer les fichiers.

  • 26 Jan 2009 - Version 0.4
    - Corrected a bug in MD5 hash prototype (forgot "popad") / Bug sur la fonction de hash MD5 (oubli du "popad")
    - Small MemCmp prototype update / Petite modification sur la fonction MemCmp
    - May be the final release ?/ Peut-être la version finale ?

  • 22 Jan 2009 - Version 0.3
    - Completed more DZ header structure. / - Structure de l'entete DZ complétée
    - Corrected a bug if Main header was invalid / Bug sur entete invalide corrigé
    - Completed header informations / Informations sur l'entête complétée
    - Custom wsprintf prototype / Fonction wsprinf personnalisée

  • 09 Dec 2008 - Version 0.2
    - Command line driven / - Mode ligne de commande
    - Switches added / Paramètres ajoutés
    - MD5 hash check on subheader and mainheader / Vérification hash MD5 sur entête principale et sous-fichiers

  • 02 Dec 2008 - Version 0.1
    - GUI Interface only / Interface graphique seulement
    - Initial release / Version initiale
Attached Files
File Type: zip DZDecrypter_v0.2.zip - [Click for QR Code] (71.8 KB, 1902 views)
File Type: zip DZDecrypter_v0.3.zip - [Click for QR Code] (74.2 KB, 328 views)
File Type: zip DZDecrypter_v0.4.zip - [Click for QR Code] (74.2 KB, 541 views)
File Type: zip DZDecrypter_v0.5.zip - [Click for QR Code] (74.3 KB, 1608 views)
File Type: zip DZDecrypter_v1.0alpha.zip - [Click for QR Code] (21.7 KB, 632 views)
File Type: zip DZDecryptor_v1.0b.zip - [Click for QR Code] (77.2 KB, 11771 views)
Art of mastering the LG's DZ Structure...

DZ-Creator - The first DZ Creator available.

DZ-Decrypter - The fastest and most complete DZ Extractor.

The Following 16 Users Say Thank You to copsfrance For This Useful Post: [ Click to Expand ]
 
rickou26
Old
#2  
rickou26's Avatar
Senior Member
Thanks Meter 49
Posts: 723
Join Date: Dec 2007
Thank you for this new tool which comes to complete the range of the KS20 cookers.

Merci pour ce nouvel outil, qui semble bien fonctionner et qu'il est vrai est très rapide ;)

@+
 
kancrutt
Old
#3  
kancrutt's Avatar
Senior Member
Thanks Meter 33
Posts: 1,035
Join Date: Nov 2007
Location: JakARTa
can u explain how to use it?
 
copsfrance
Old
(Last edited by copsfrance; 7th December 2008 at 07:46 PM.)
#4  
copsfrance's Avatar
Member - OP
Thanks Meter 54
Posts: 68
Join Date: Mar 2008
Quote:
Originally Posted by rickou26 View Post
Thank you for this new tool which comes to complete the range of the KS20 cookers.

Merci pour ce nouvel outil, qui semble bien fonctionner et qu'il est vrai est très rapide ;)

@+
Thank for greetings... I'm working on a next release with use of partition table (last DZ subfile section) and MD5 subfile header check.
Perhaps a DZ file creator...

Merci pour le remerciement. Je travaille sur une nouvelle version avec utilisation de la table de partition (dernière section du fichier DZ) et une vérification du MD5 du header dl l'entête du sous-fichier dans le DZ.
Peut être également un créateur de fichier DZ...
(un peu de français; car je suis français avant tout, héhé)

Quote:
Originally Posted by kancrutt View Post
can u explain how to use it?
This one is working like DZExtract (extract a DZ file content), but with a graphical interface. It is faster because it is full asm coded.

Ce programme fonctionne comme DZExtract (extrait le contenu d'un fichier DZ), mais il est en interface graphique. Il est plus rapide car il est codé complètement en assembleur.
 
copsfrance
Old
#5  
copsfrance's Avatar
Member - OP
Thanks Meter 54
Posts: 68
Join Date: Mar 2008
Default Soon coming v0.2 / Arrivée imminente de la v0.2

Yohoo...
A few day after the first release, DZDecryptor v0.2 will be available in a few days.

Code:
Main improvements:
------------------
 * Command line driven (no more GUI, mainly for ROM Kitchen)
 * Check all : - Section "flags" (magic bytes)
               - Section checksum (MD5 hashed)
 * Process is starting from the offset table of DZ file.
Quelques jours seulement après la première version, DZDecryptor v0.2 sera disponible sous peu.

Code:
Principales améliorations:
------------------
 * Gestion en ligne de commande (plus d'interface graphique pour la cuisine)
 * Vérifie tout : - "flags" des différentes sections (bytes magiques)
                   - Checksum des sections (hash MD5)
 * Tout le processus commence à partir de la table des offsets du fichier DZ.
 
rickou26
Old
#6  
rickou26's Avatar
Senior Member
Thanks Meter 49
Posts: 723
Join Date: Dec 2007
Parfait !

Je suis tout cela de près...
 
copsfrance
Old
(Last edited by copsfrance; 9th December 2008 at 05:34 PM.)
#7  
copsfrance's Avatar
Member - OP
Thanks Meter 54
Posts: 68
Join Date: Mar 2008
Default Version 0.2 command-line

Here it is...

DZDecrypt v0.2 (command-line driven) is here, and available to download in the first post...
As promised, the full asm source is provided in the archive.
All *bug reports* or *ideas* are welcome...

Code:
What's New:
-----------
- Command line driven.
- Some switches added. (just type DZDecrypt to see all available options)
La voila...
DZDecrypt v0.2 (dirigé en ligne de commande) est arrivé, et est disponible en téléchargement dans le premier message.
Comme promis, les sources en masm32 sont inclus dans l'archive.
Tous les *rapports de bugs" et les *idées* pour l'amélioration sont les bienvenus.
Code:
What's New:
-----------
- Mode ligne de commande.
- Quelques paramètres ajoutés. (Taper DZDecrypt pour la liste des paramètres disponibles)
Si tu peux me donner ton avis Spocky et Rickou26...
 
ceckin
Old
#8  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Nov 2008
Can you really decrypt the DZ file (cause amss.mbn is kind of encrypted in all DZ files), anyway it works fine on Vista x64, a bit slower for me than DZExtract, but i guess the problem its not in the code.
 
copsfrance
Old
#9  
copsfrance's Avatar
Member - OP
Thanks Meter 54
Posts: 68
Join Date: Mar 2008
Quote:
Originally Posted by ceckin View Post
Can you really decrypt the DZ file (cause amss.mbn is kind of encrypted in all DZ files), anyway it works fine on Vista x64, a bit slower for me than DZExtract, but i guess the problem its not in the code.
I'm proud to know that it works on Vista x64 (I always use XP SP3, because I think that it is more stable... Perhaps Windows 7 will be better ?).

I'm susprised that it was a bit slower than DZExtract, because unlike DZExtract, I don't use a small buffer (4Ko if i remember right) for zLib decompression. In my decryptor (perhaps should i say extractor), I allocate memory for full zlib compressed one, a 100 Mo buffer (hope it will be enough...) for decompression, i integrate zlib decompression engine with no need of zlib1.dll. Also, I think that assembler is faster than NetFramework.

May be i can speedup it a little ? (I will check cycles when i will have more time, because i am working on the lghflashmuncher assembly conversion..)
 
ceckin
Old
#10  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Nov 2008
Quote:
Originally Posted by copsfrance View Post
I'm proud to know that it works on Vista x64 (I always use XP SP3, because I think that it is more stable... Perhaps Windows 7 will be better ?).

I'm susprised that it was a bit slower than DZExtract, because unlike DZExtract, I don't use a small buffer (4Ko if i remember right) for zLib decompression. In my decryptor (perhaps should i say extractor), I allocate memory for full zlib compressed one, a 100 Mo buffer (hope it will be enough...) for decompression, i integrate zlib decompression engine with no need of zlib1.dll. Also, I think that assembler is faster than NetFramework.

May be i can speedup it a little ? (I will check cycles when i will have more time, because i am working on the lghflashmuncher assembly conversion..)
Well maybe it problem in Vista itself, cause everything releated to writing to the HDD is slower (don't get me wrong the HDD is fast), hopefully you'll be able to write a DZ creator, good luck.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes