forked from quarkslab/legu_unpacker_2019
-
Notifications
You must be signed in to change notification settings - Fork 3
/
legu_packed_file.ksy
56 lines (56 loc) · 1.19 KB
/
legu_packed_file.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
56
meta:
id: legu_packed_file
endian: le
seq:
- id: nb_dex_files
type: u4
doc: |
Number of orginal DEX files
- id: packed_dex
type: packed_dex_t
repeat: expr
repeat-expr: nb_dex_files
doc: |
Compressed DEX files (with NRV)
doc-ref: http://www.oberhumer.com/products/nrv/
- id: hashmaps
type: hashmap_t
repeat: expr
repeat-expr: nb_dex_files
doc: |
Legu's hashmap associated with the packed DEX files (XTEA over NRV)
- id: packed_bytecode
type: packed_bytecode_t
repeat: expr
repeat-expr: nb_dex_files
doc: |
Packed Dalvik bytecode (XTEA over NRV)
types:
packed_dex_t:
seq:
- id: unknown1
type: u8
- id: uncompressed_size
type: u4
- id: compressed_size
type: u4
- id: unknown2
type: u4
- id: data
size: compressed_size
hashmap_t:
seq:
- id: uncompressed_size
type: u4
- id: compressed_size
type: u4
- id: data
size: compressed_size
packed_bytecode_t:
seq:
- id: uncompressed_size
type: u4
- id: compressed_size
type: u4
- id: data
size: compressed_size