-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I want to decompile some sui/aptos modules and tried to do so using this plugin.
The plugin is installed as the configuration panel shows the diem decompiler. However, when I open a .bin containing my sui code, I don't see an option to select the decompiler.
For reference, the magic bytes my sui modules all start with are 0x1ca10beb00060000, is this different from the original diem magic bytes maybe? Preventing auto-detection? Here's the full module bytecode for eg. some safe math module.
0000000 1ca1 0beb 0006 0000 0106 0200 0203 0505
0000010 0707 0e07 081b 2029 490c 0013 0000 0001
0000020 0001 0303 0303 0301 0900 6173 6566 6d5f
0000030 7461 1068 6173 6566 6d5f 6c75 645f 7669
0000040 755f 3436 eba0 0ba1 3517 c838 ccfe dfa1
0000050 98f2 88e4 2c40 ffc9 4f37 128a 77ca ee58
0000060 83be 660b 0100 0000 0a02 000b 0b35 3501
0000070 0b18 3502 341a 0002
0000078
Hexdump from within jeb:
00000000 A1 1C EB 0B 06 00 00 00 06 01 00 02 03 02 05 05 ................
00000010 07 07 07 0E 1B 08 29 20 0C 49 13 00 00 00 01 00 ......) .I......
00000020 01 00 03 03 03 03 01 03 00 09 73 61 66 65 5F 6D ..........safe_m
00000030 61 74 68 10 73 61 66 65 5F 6D 75 6C 5F 64 69 76 ath.safe_mul_div
00000040 5F 75 36 34 A0 EB A1 0B 17 35 38 C8 FE CC A1 DF _u64.....58.....
00000050 F2 98 E4 88 40 2C C9 FF 37 4F 8A 12 CA 77 58 EE ....@,..7O...wX.
00000060 BE 83 0B 66 00 01 00 00 02 0A 0B 00 35 0B 01 35 ...f........5..5
00000070 18 0B 02 35 1A 34 02 00 ...5.4..
Really would love to get started decompiling viem bytecode, how do I get it to show up as an option on the decompiler?

Metadata
Metadata
Assignees
Labels
No labels