forked from quarkslab/legu_unpacker_2019
-
Notifications
You must be signed in to change notification settings - Fork 3
/
legu_hashmap.ksy
67 lines (67 loc) · 1.61 KB
/
legu_hashmap.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
57
58
59
60
61
62
63
64
65
66
67
meta:
id: legu_hashmap
title: Structure of the hashmap used by Tencent Legu packer
endian: le
seq:
- id: header
type: header_t
- id: classes_info
type: classes_info_t
repeat: expr
repeat-expr: header.table_size
- id: nb_methods_info
type: u4
- id: methods_info
type: methods_info_t
repeat: expr
repeat-expr: nb_methods_info
types:
header_t:
seq:
- id: unknown
type: u4
- id: table_size
type: u4
doc: |
Number of element in the hashmap
classes_info_t:
seq:
- id: utf8_hash
type: u4
doc: |
Class's name hash value
doc-ref: http://androidxref.com/4.4.4_r1/xref/dalvik/vm/UtfString.cpp#88
- id: string_off
type: u4
doc: |
Offset in the original DEX file of the class's name associated with this index
- id: methods_info_idx
type: u4
doc: |
Index of packed methods information in the 'methods_info' field
methods_info_t:
seq:
- id: nb_methods
type: u4
doc: |
Number of methods associated with this entry
- id: packed_info
type: packed_method_t
repeat: expr
repeat-expr: nb_methods
doc: |
Information about the packed methods
packed_method_t:
seq:
- id: packed_code_off
type: u4
doc: |
Offset into the Legu packed data
- id: code_size
type: u4
doc: |
Code size of the method
- id: code_off
type: u4
doc: |
Offset of the Davik bytecode in the original DEX file