izb
izb

Reputation: 51850

How do I disassemble ABC bytecode?

If I have an abc file, either compiled through the flex SDK, or stripped from a .SWF file, are there any tools that will disassemble that file purely to see what it contains?

Upvotes: 3

Views: 4410

Answers (5)

jduncanator
jduncanator

Reputation: 2194

I can only vouch for furnace. We have had huge success with it! See: https://github.com/whitequark/furnace-avm2

It works like a charm with raw bytecode (eg. ABC files without any SWF containter)

Josh

Upvotes: 0

Michael Antipin
Michael Antipin

Reputation: 3532

Download free Adobe Flex SDK. Use sdk/bin/swfdump.exe.

Example for windows version:

swfdump -abc -showbytecode test.swf > abcdump.txt

This should get you what you want.

Upvotes: 4

Vladimir Panteleev
Vladimir Panteleev

Reputation: 25197

RABCDAsm can disassemble and assemble back ActionScript 3 bytecode.

Upvotes: 1

fuzzyTew
fuzzyTew

Reputation: 3778

The tamarin source contains a tool called 'abcdump' which will decompile an abc file, but you're generally on your own building and using it. It's not kept up to date and comes with few to no instructions.

For SWF files, there is a tool called 'swfdump' available from SWFTools which will give disassembly of actionscript in the swf.

Upvotes: 1

George Profenza
George Profenza

Reputation: 51847

Haven't played much with abc, but one thing that comes to mind is as3abc. Maybe if you load the abc in binary format using and URLLoader and passing the bytes to the ABC constructor you can see what it contains(actionscript-wise)

Also, there might some tools for that in Apparat, not sure. I've got an abc file using dump, but haven't gone any further.

java -jar dump.jar -input a.swf -abc

You can have a look at the contents with any text editor.

HTH, George

Upvotes: 1

Related Questions