-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame_info.ksy
55 lines (47 loc) · 959 Bytes
/
game_info.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
meta:
id: game_info
endian: le
types:
len_str:
seq:
- id: len
type: u4
- id: str
size: len
seq:
- id: magic
contents: [0, 'W', 0, 0, 'O', 'L', 0, 'F', 'M', 0]
- id: setting1_len
type: u4
- id: setting1
type: u1
repeat: expr
repeat-expr: setting1_len
- id: setting2_len
type: u4
- id: setting2
type: len_str
repeat: expr
repeat-expr: setting2_len
- id: filesize
type: u4
- id: keysize
type: u4
- id: setting3_len
type: u4
- id: setting3
type: u2
repeat: expr
repeat-expr: setting3_len
- id: keydata
size: filesize - _io.pos
doc: |
encrypted_keydata
ptr1 = readU4()
ptr2 = readU4()
arr1 = all_file_bytes[ptr1] as u2[keysize]
arr2 = all_file_bytes[ptr2] as u2[keysize]
key = all_file_bytes[...sum(arr1, arr2) & 0xffff]
- id: footer
type: u1
valid: 0xC2