-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsample.hermes_dec_header
243 lines (227 loc) · 14.8 KB
/
sample.hermes_dec_header
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
+-------------------------------------------------------------------------+
| Magic | 0x1f1903c103bc1fc6 |
+-------------------------------------------------------------------------+
| Version | 94 |
+-------------------------------------------------------------------------+
| SourceHash | a692192bdc8ee6f7b2b9918faf18a64db39587c8 |
+-------------------------------------------------------------------------+
| FileLength | 2256 |
+-------------------------------------------------------------------------+
| GlobalCodeIndex | 0 |
+-------------------------------------------------------------------------+
| FunctionCount | 8 |
+-------------------------------------------------------------------------+
| StringKindCount | 2 |
+-------------------------------------------------------------------------+
| IdentifierCount | 17 |
+-------------------------------------------------------------------------+
| StringCount | 34 |
+-------------------------------------------------------------------------+
| OverflowStringCount | 0 |
+-------------------------------------------------------------------------+
| StringStorageSize | 238 |
+-------------------------------------------------------------------------+
| BigIntCount | 0 |
+-------------------------------------------------------------------------+
| BigIntStorageSize | 0 |
+-------------------------------------------------------------------------+
| RegExpCount | 1 |
+-------------------------------------------------------------------------+
| RegExpStorageSize | 66 |
+-------------------------------------------------------------------------+
| ArrayBufferSize | 0 |
+-------------------------------------------------------------------------+
| ObjKeyBufferSize | 0 |
+-------------------------------------------------------------------------+
| ObjValueBufferSize | 0 |
+-------------------------------------------------------------------------+
| SegmentID | 0 |
+-------------------------------------------------------------------------+
| CjsModuleCount | 0 |
+-------------------------------------------------------------------------+
| FunctionSourceCount | 2 |
+-------------------------------------------------------------------------+
| DebugInfoOffset | 1592 |
+-------------------------------------------------------------------------+
| StaticBuiltins | 0 |
+-------------------------------------------------------------------------+
| CjsModulesStaticallyResolved | 0 |
+-------------------------------------------------------------------------+
| HasAsync | 1 |
+-------------------------------------------------------------------------+
=> StringKind.String: ''
=> StringKind.String: '?anon_0_?anon_0_testx'
=> StringKind.String: '?anon_0_testx'
=> StringKind.String: '?anon_0_gen'
=> StringKind.String: 'AAAAAAAA'
=> StringKind.String: 'Bon-jour : '
=> StringKind.String: 'Hello! Exception handling'
=> StringKind.String: 'global'
=> StringKind.String: 'a'
=> StringKind.String: 'zb'
=> StringKind.String: 'b'
=> StringKind.String: 'bonjour'
=> StringKind.String: 'dkooDD JPOD D09D\\n\\\\ @ .\\r\\n\\t@ \\x00 D+D '
=> StringKind.String: 'gmi'
=> StringKind.String: 'le'
=> StringKind.String: 'dçdàçD°D+D'
=> StringKind.String: 'D+D +D\u202f+D +\nD+ÉD '
=> StringKind.Identifier: 'testx'
=> StringKind.Identifier: 'xy'
=> StringKind.Identifier: 'gen'
=> StringKind.Identifier: 'next'
=> StringKind.Identifier: 'alert'
=> StringKind.Identifier: 'random'
=> StringKind.Identifier: 'onload'
=> StringKind.Identifier: 'log'
=> StringKind.Identifier: 'ze'
=> StringKind.Identifier: 'exec'
=> StringKind.Identifier: 'console'
=> StringKind.Identifier: 'Date'
=> StringKind.Identifier: 'test2'
=> StringKind.Identifier: 'Math'
=> StringKind.Identifier: 'now'
=> StringKind.Identifier: 'window'
=> StringKind.Identifier: 'print'
=> [Function #0 global of 235 bytes]: 1 params @ offset 0x00000320
=> [Function #1 testx of 30 bytes]: 2 params @ offset 0x0000040b
=> [Function #2 ?anon_0_testx of 9 bytes]: 2 params @ offset 0x00000429
=> [Function #3 ?anon_0_?anon_0_testx of 124 bytes]: 2 params @ offset 0x00000432
=> [Function #4 gen of 9 bytes]: 1 params @ offset 0x000004ae
=> [Function #5 ?anon_0_gen of 179 bytes]: 1 params @ offset 0x000004b7
=> [Function #6 ze of 54 bytes]: 1 params @ offset 0x0000056a
=> [Function #7 zb of 37 bytes]: 1 params @ offset 0x000005a0
=> BigInts:
=> Regexp #0: 0000010007040b16444b4f4f4444204a504f4420443039440a5c20204020050b070d0a09402000201c0000000001000000ffffffff01360000000c440b0344202000
=> Decompiled: /DKOODD JPOD D09D\n\\ @ .\r\n\t@ \x00 D+D /igm
=> Function source #0: functionId 3 = string @ 00000000
=> Function source #1: functionId 5 = string @ 00000000
=> Debug data:
+------------------------------+
| Filename count | 1 |
+------------------------------+
| Filename storage size | 9 |
+------------------------------+
| File region count | 1 |
+------------------------------+
| Scope desc data offset | 583 |
+------------------------------+
| Textified data offset | 586 |
+------------------------------+
| String table offset | 587 |
+------------------------------+
| Debug data size | 587 |
+------------------------------+
+------------+
| Offset | 0 |
+------------+
| Length | 9 |
+------------+
b'sample.js'
+-----------------------+
| From address | 0 |
+-----------------------+
| Filename id | 0 |
+-----------------------+
| Source mapping id | 0 |
+-----------------------+
Function index: 0
Start line: 7
Start column: 1
Address 24: Line 7 - Column 1 - Statement 0 - Scope address 0 - Env register 2
Address 35: Line 7 - Column 1 - Statement 0 - Scope address 0 - Env register 2
Address 46: Line 7 - Column 1 - Statement 0 - Scope address 0 - Env register 1
Address 52: Line 52 - Column 1 - Statement 0 - Scope address 0 - Env register 2
Address 58: Line 52 - Column 17 - Statement 0 - Scope address 0 - Env register 1
Address 63: Line 52 - Column 15 - Statement 0 - Scope address 0 - Env register 1
Address 69: Line 53 - Column 1 - Statement 0 - Scope address 0 - Env register 1
Address 76: Line 53 - Column 3 - Statement 0 - Scope address 0 - Env register 1
Address 94: Line 55 - Column 7 - Statement 0 - Scope address 0 - Env register 1
Address 100: Line 56 - Column 1 - Statement 0 - Scope address 0 - Env register 3
Address 106: Line 56 - Column 12 - Statement 0 - Scope address 0 - Env register 2
Address 111: Line 56 - Column 13 - Statement 0 - Scope address 0 - Env register 6
Address 117: Line 56 - Column 23 - Statement 0 - Scope address 0 - Env register 5
Address 126: Line 56 - Column 23 - Statement 0 - Scope address 0 - Env register 1
Address 131: Line 56 - Column 12 - Statement 0 - Scope address 0 - Env register 1
Address 136: Line 58 - Column 1 - Statement 0 - Scope address 0 - Env register 5
Address 142: Line 58 - Column 12 - Statement 0 - Scope address 0 - Env register 3
Address 147: Line 58 - Column 18 - Statement 0 - Scope address 0 - Env register 1
Address 152: Line 58 - Column 21 - Statement 0 - Scope address 0 - Env register 2
Address 156: Line 58 - Column 28 - Statement 0 - Scope address 0 - Env register 1
Address 161: Line 58 - Column 28 - Statement 0 - Scope address 0 - Env register 2
Address 169: Line 58 - Column 12 - Statement 0 - Scope address 0 - Env register 1
Address 175: Line 59 - Column 1 - Statement 0 - Scope address 0 - Env register 3
Address 181: Line 59 - Column 12 - Statement 0 - Scope address 0 - Env register 2
Address 186: Line 59 - Column 18 - Statement 0 - Scope address 0 - Env register 1
Address 209: Line 59 - Column 23 - Statement 0 - Scope address 0 - Env register 1
Address 214: Line 59 - Column 40 - Statement 0 - Scope address 0 - Env register 0
Address 219: Line 59 - Column 40 - Statement 0 - Scope address 0 - Env register 1
Address 227: Line 59 - Column 12 - Statement 0 - Scope address 0 - Env register 0
Function index: 1
Start line: 7
Start column: 1
Address 21: Line 7 - Column 1 - Statement 0 - Scope address 0 - Env register 0
Function index: 3
Start line: 7
Start column: 1
Address 9: Line 8 - Column 11 - Statement 0 - Scope address 0 - Env register 4294967295
Address 14: Line 8 - Column 51 - Statement 0 - Scope address 0 - Env register 4294967295
Address 31: Line 8 - Column 17 - Statement 0 - Scope address 0 - Env register 4294967295
Address 37: Line 8 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Address 42: Line 8 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 46: Line 8 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 52: Line 10 - Column 11 - Statement 0 - Scope address 0 - Env register 4294967295
Address 57: Line 10 - Column 14 - Statement 0 - Scope address 0 - Env register 4294967295
Address 61: Line 10 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 65: Line 10 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 71: Line 12 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 77: Line 12 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Address 85: Line 12 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Address 90: Line 13 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 96: Line 13 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Address 101: Line 13 - Column 17 - Statement 0 - Scope address 0 - Env register 4294967295
Address 107: Line 13 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Function index: 5
Start line: 16
Start column: 1
Address 17: Line 17 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 21: Line 17 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 32: Line 20 - Column 13 - Statement 0 - Scope address 0 - Env register 4294967295
Address 37: Line 20 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Address 41: Line 20 - Column 23 - Statement 0 - Scope address 0 - Env register 4294967295
Address 46: Line 20 - Column 23 - Statement 0 - Scope address 0 - Env register 4294967295
Address 50: Line 21 - Column 9 - Statement 0 - Scope address 0 - Env register 4294967295
Address 52: Line 22 - Column 9 - Statement 0 - Scope address 0 - Env register 4294967295
Address 56: Line 23 - Column 13 - Statement 0 - Scope address 0 - Env register 4294967295
Address 66: Line 23 - Column 18 - Statement 0 - Scope address 0 - Env register 4294967295
Address 71: Line 25 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 73: Line 26 - Column 5 - Statement 0 - Scope address 0 - Env register 4294967295
Address 104: Line 29 - Column 17 - Statement 0 - Scope address 0 - Env register 4294967295
Address 110: Line 29 - Column 28 - Statement 0 - Scope address 0 - Env register 4294967295
Address 122: Line 29 - Column 29 - Statement 0 - Scope address 0 - Env register 4294967295
Address 132: Line 29 - Column 48 - Statement 0 - Scope address 0 - Env register 4294967295
Address 143: Line 29 - Column 28 - Statement 0 - Scope address 0 - Env register 4294967295
Address 149: Line 31 - Column 9 - Statement 0 - Scope address 0 - Env register 4294967295
Address 151: Line 32 - Column 9 - Statement 0 - Scope address 0 - Env register 4294967295
Address 155: Line 33 - Column 13 - Statement 0 - Scope address 0 - Env register 4294967295
Address 165: Line 33 - Column 18 - Statement 0 - Scope address 0 - Env register 4294967295
Function index: 6
Start line: 39
Start column: 1
Address 6: Line 41 - Column 8 - Statement 0 - Scope address 0 - Env register 4
Address 12: Line 41 - Column 19 - Statement 0 - Scope address 0 - Env register 2
Address 17: Line 41 - Column 19 - Statement 0 - Scope address 0 - Env register 2
Address 39: Line 48 - Column 11 - Statement 0 - Scope address 0 - Env register 2
Address 43: Line 48 - Column 17 - Statement 0 - Scope address 0 - Env register 1
Address 48: Line 48 - Column 19 - Statement 0 - Scope address 0 - Env register 1
Function index: 7
Start line: 42
Start column: 18
Address 2: Line 43 - Column 16 - Statement 0 - Scope address 0 - Env register 4294967295
Address 8: Line 43 - Column 24 - Statement 0 - Scope address 0 - Env register 4294967295
Address 13: Line 43 - Column 24 - Statement 0 - Scope address 0 - Env register 4294967295
Address 29: Line 44 - Column 19 - Statement 0 - Scope address 0 - Env register 4294967295
=> Sources data: 00070118000000020b000000020b0000000106da00000002060010000105007e000106027200010700020001120404000106027a000306000b0002050001000606000a000509000000010500750001050475000506000b000305000600010500030002040007000105000000020800700001060275000306000b0002050006000117000500010500110000050000000108006400007f01070115000000007f03070109020a00ffffffff0f05002800ffffffff0f11005e00ffffffff0f06007f00ffffffff0f05007500ffffffff0f04000000ffffffff0f06040600ffffffff0f05000300ffffffff0f04007700ffffffff0f04000000ffffffff0f06040000ffffffff0f06000b00ffffffff0f08000000ffffffff0f05027500ffffffff0f06000b00ffffffff0f05000100ffffffff0f06007f00ffffffff0f7f05100111020400ffffffff0f04000000ffffffff0f0b060800ffffffff0f05000300ffffffff0f04000700ffffffff0f05000000ffffffff0f04027200ffffffff0f02020000ffffffff0f04020400ffffffff0f0a000500ffffffff0f05047300ffffffff0f02020000ffffffff0f1f060c00ffffffff0f06000b00ffffffff0f0c000100ffffffff0f0a001300ffffffff0f0b006c00ffffffff0f06046d00ffffffff0f02020000ffffffff0f04020400ffffffff0f0a000500ffffffff0f7f062701060407000406000b00020500000002160e780002040006000105000200017f072a1202027e00ffffffff0f06000800ffffffff0f05000000ffffffff0f10027b00ffffffff0f7f
=> Scope descriptor raw data: 7f0000
=> Textified data: 00
=> Raw variables and callees data: