VB is also crazy - crack "Nanxia Exhibition Zhaozi Dragon" image

zhaozj2021-02-16  54

At home, at home, the mood is not good, too lazy to write things, and turn it out of the drawer "Nanxia Zhao Zhaozi Dragon", the game dragon company, absolute garbage. For the time, I spent the five yuan, and I have some use value! Just, I have recently needed some image resources, let's crack it!

First summarize the experience of successful and failure.

In order to facilitate convenience, the image data is not encrypted. I have never crackdown in encrypted data.

Generally in the effect and resource savings, the number of colors used in the game and the number of color numbers of image data are always the same.

The file name and content of the general image resource are related. Even if they are packaged, they will also use the file name or a natively marked pointer to facilitate debugging.

General procedure will not think that we will use delete, modification, replacement and other limits to find their data law.

Then the conclusion of these experiences.

Don't worry too complicated algorithms, the most complicated thing is just RLE.

Just check the number of colors used in the game, we can take a lot of detours.

Use intuition and document word to guess the file is definitely a wise practice.

You can delete, modify, replace the files in the game to find the data law.

Oh, it is nonsense.

Next is the full process of VB crack, successfully crack all AVA files.

The first step is to find the image file. This step is completely nonsense, because this game is unlike the Allied Death Squad and the Blood League, there is no need to unpack (by way of inciting, these two games I will completely unpack, but only put the iron plate alliance Loading interface I broke dozens of coming, and the sound of the three countries seems to be packaged, and it is completely disassembled). And its file name is very friendly, and it is fully concentrated in the Image directory. I just found a soft mortal, even the verification did not verify (suggesting that beginners should not use the delete, modification, replace the Dafa to check the correctness of the judgment). I have chosen image / other / cursor.ava is a cursor, which is a small hand used in the game.

In the second step, cut down the image, it is to grasp, put a small hand image, and select a small hand.

Get the following information: The color number of the color of the game is 16bit small hand size 30 * 31, then it is assumed that the image file uses 16bit, so that we are handled by a double byte, which is convenient. Screenshot software use method will not be described here.

In the third step, analyze the file, open the image file curSor.ava with a 16bit editor., Get the following information. Document length: 8470 ??????? 奇 30 30 * 31 * 2 = 1860, save the small hand as long as 1860 bytes, how can it be so much, Well, must be a number of cursors together (speculation)

(Before the following processing, I used a very variable method that the data of the entire file was 30, each byte as a 16bit color drawing, found that the top color and partial details were like a small hand, below There are other cursors, but if it is wrong, it is concluded that multiple cursors are put together, the small hands are the first, and use compression, this code is simple, that is, read file data, paint points, if you are in int You know the procedure behind, this is completely unnecessary)

This is the front two lines of the file.

06 00 00 00 00 00 00 3A 06 00 00 56 0C 00 00

6A 11 00 00 B6 16 00 00 F8 1A 00 00 1d 00 1e 00

It is found that the value at 1C 1E is just 1D = 30 1e = 31, like the size of the small hand. There are 7 LONG type integers before position 1d, the first is 6, and then 6 increments. One seems to seem Indicates the location 1c, and the maximum 1AF8 = 6904 does not exceed the file length.

We have reason to believe that the first long value of the file indicates a few pictures, followed by the long value indicates the location of each picture information in the file. This is called the file header, if you are the first time If you use this file, you will use this file to dismantle it into six files, I don't do this because I often do this. Fourth step, analyze image data

Our image data is from 1C ---- 639 (16) this range (after 3A 06 file is high, it is 63A, its previous byte is the end of the small hand image 639) Total 61D word Festival, of course, if you open it, you start from scratch.

Look at our screenshots, the first line of the small hand is two transparency, then three the same color A4f, the second line is a transparent point, then five color A4F FDEC FC81 FC81 A4F is sometimes less easy to extract this value, Then write the program yourself. If you use the brush, you can check the RGB and then convert it. 16-bit color = (r / 8) * 64 * 32 (g / 4) * 32 (B / 8) (VB expression, applicable The 16bit 565 mode).

Second line 6A 11 00 00 B6 16 00 00 F8 1A 00 00 1d 00 1e 00

Third line 00 00 00 00 09 03 00 01 00 02 00 02 00 03 00

The fourth line of 4F 0A 4F 0A 4F 0A 01 00 18 00 03 00 01 00 01 00

Fifth line 02 00 05 00 4F 0A EC FD 81 FC 81 FC 4F 0A 01 00

Found the fourth line of the first 2/2/3 double-byte and the first line of the small hand.

The fifth line of the 3/4/5/6/7 Diach Festival and the second line of the small hand match.

Other characters are obviously not the colors in the small hands, belonging to the control character. Rules are as follows

01 00 double word represents the number of continuous transparency points.

02 00 double word means the end of several colors

03 00 indicates a wrap.

(It seems simple, in fact, I also spend some success)

The study found that the third line of the 1/2 2-child and that 09 03:

The first two doubles is a pointer position indicating a small hand (the upper left corner of the small hand is a pointer), and the role in other images is unknown.

09 03 is a double word number starting from the third line of the third line, and the CRC verification and compression ratio can be made.

Compression rate = 309 / (1D * 1e) = 89.3%

The fifth, write procedures, see example

My main purpose is to introduce you to the general method of breaking the game image. Example of the example is a pure example, and if you are, please don't be sure.

Example Please log in http://lights.833200.com

转载请注明原文地址:https://www.9cbs.com/read-20439.html

New Post(0)