WinRABCDAsm – Flash ABC (ActionScript Bytecode) disassembly and reassembly made easy

RABCDAsm is an excellent collection of utilities for assembling and disassembling actionscript 3 flash (SWF) files. Since using it requires a bit of work in the command line, and I’m very lazy, I’ve created a GUI front-end for it: WinRABCDasm. Once you enter your RABCDasm path in the settings window, the workflow is very easy:

  1. Drag the SWF file to WinRABCDasm to disassemble it.
  2. Navigate the disassembly tree and find the file you wish to modify.
  3. Double click to open it in your favorite editor, and make your changes (for syntax highlighting use asasm.hrc in Eclipse)
  4. Repeat steps 2-3 for all the files you wish to modify.
  5. Hit Reassemble (alt+R) to rebuild the SWF file. Backup your original SWF file before this step as it will overwrite it!

WinRABCDAsm

21 thoughts on “WinRABCDAsm – Flash ABC (ActionScript Bytecode) disassembly and reassembly made easy”

  1. Hello,
    I need to implement something like this in my application. what are the exact things I do in cmd.exe to get the final output ( I think after re-assemble ). I do abexport and rabdcasm, what next to get it like you ? Or can you skype me ? ( skype : hoocrax ) Thank you in advance

    1. Well, WinRABCDAsm is open source so you can see exactly what I do there! The code is very simple and self explanatory, but let me know if there’s anything specific you don’t understand.

    1. You need to hover the mouse over the status bar to get the details. My guess is that you didn’t specify the RABCDAsm folder in the settings window (the one containing abcexport.exe etc.)

    1. You need to enter the path of the *folder* containing abcexport.exe, not the path to the file itself. If the folder is in your PATH environment variable, you can leave it empty.

    1. I don’t need a link to the software, I wrote it !
      Try running the program as administrator, maybe it’s a permission thing. Other than that, I can’t help you without you telling me exactly what doesn’t work and provide a screenshot and/or logfile.

  2. After decompiling a swf file i found some part of the code is not decompiled properly.

    Msg displaying under the class is as follows
    ; Error while disassembling method: Don’t know how to decode OP_finddef
    ; body
    ; maxstack 6
    ; localcount 5
    ; initscopedepth 0
    ; maxscopedepth 1
    ; code
    ; 0xD0 0x30 0xD0 0x66 0xD5 0x22 0x66 0xDC 0x03 0x24 0x00 0x13 0x1A 0x00 0x00 0xD0
    ; 0x66 0xD5 0x22 0x24 0x00 0x66 0x8F 0x24 0x80 0xD4 0x22 0x63 0x04 0xD0 0x66 0xD5
    ; 0x22 0x4F 0xDD 0x03 0x00 0x10 0x10 0x00 0x00 0x5F 0xD4 0x22 0xD0 0x66 0xA3 0x23
    ; 0x4A 0xD4 0x22 0x01 0x80 0xD4 0x22 0x63 0x04 0x62 0x04 0x80 0xD4 0x22 0xD7 0xD3
    ; 0xD1 0xD2 0x24 0x00 0x24 0x00 0x2C 0xB6 0x30 0x4F 0x80 0x02 0x05 0xD3 0x4F 0x9F
    ; 0x04 0x00 0x60 0xC0 0x22 0xD3 0x4F 0xCD 0x03 0x01 0x47

    error screen shot: http://i44.tinypic.com/4hfu5w.jpg

    swf File location : http://farm.maxgames.com/LostOutpostMTk5Mw==.swf

Leave a Reply

Your email address will not be published. Required fields are marked *