Mac RABCDasm + Shell Scripts
sorry bit late lots off work but i use the ABC_DECOM and get this from terminal
: Already uncompressed
----------------
5 swfdecompress 0x000000010b5a1f7d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
6 swfdecompress 0x000000010b5a1add extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
7 swfdecompress 0x000000010b5a1fc4 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 56
8 swfdecompress 0x000000010b5a1add extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
9 swfdecompress 0x000000010b5a1a94 _d_run_main + 468
10 swfdecompress 0x000000010b5a18b8 main + 20
11 swfdecompress 0x000000010b581474 start + 52
12 ??? 0x0000000000000002 0x0 + 2
----------------
: client-1.abc: No such file or directory
----------------
5 rabcdasm 0x000000010c5cf1da void[] std.file.read(const(char[]), ulong) + 138
6 rabcdasm 0x000000010c54a174 _Dmain + 280
7 rabcdasm 0x000000010c5bc5c1 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
8 rabcdasm 0x000000010c5bc121 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
9 rabcdasm 0x000000010c5bc608 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 56
10 rabcdasm 0x000000010c5bc121 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
11 rabcdasm 0x000000010c5bc0d8 _d_run_main + 468
12 rabcdasm 0x000000010c5bbefc main + 20
13 rabcdasm 0x000000010c54a054 start + 52
14 ??? 0x0000000000000002 0x0 + 2
----------------
logout
[Proces voltooid]
even if i do it myself it's still not coing right hope this will help
cd ~/desktop/rabcasm
./swfdecompress client.swf
./abcexport client.swf
./rabcdasm client-1.abc
: Already uncompressed
----------------
5 swfdecompress 0x000000010b5a1f7d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
6 swfdecompress 0x000000010b5a1add extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
7 swfdecompress 0x000000010b5a1fc4 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 56
8 swfdecompress 0x000000010b5a1add extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
9 swfdecompress 0x000000010b5a1a94 _d_run_main + 468
10 swfdecompress 0x000000010b5a18b8 main + 20
11 swfdecompress 0x000000010b581474 start + 52
12 ??? 0x0000000000000002 0x0 + 2
----------------
: client-1.abc: No such file or directory
----------------
5 rabcdasm 0x000000010c5cf1da void[] std.file.read(const(char[]), ulong) + 138
6 rabcdasm 0x000000010c54a174 _Dmain + 280
7 rabcdasm 0x000000010c5bc5c1 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
8 rabcdasm 0x000000010c5bc121 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
9 rabcdasm 0x000000010c5bc608 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 56
10 rabcdasm 0x000000010c5bc121 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
11 rabcdasm 0x000000010c5bc0d8 _d_run_main + 468
12 rabcdasm 0x000000010c5bbefc main + 20
13 rabcdasm 0x000000010c54a054 start + 52
14 ??? 0x0000000000000002 0x0 + 2
----------------
logout
[Proces voltooid]
even if i do it myself it's still not coing right hope this will help
cd ~/desktop/rabcasm
./swfdecompress client.swf
./abcexport client.swf
./rabcdasm client-1.abc
Hi, I took a look through and tried to recreate what was going wrong for you, one line at a time...
The same thing was happening for me too....? which is weird..
cd *//rabcasm wasn't working for me, so I removed one of the / and it seemed to work again, then placing the extra / back in also seemed to work?
mv *.swf client.swf wasn't working and so tried a different approach using the 2nd code below... again, after this was working, I was able to go back to the original code :/
Open the ABC_Decom.sh in a text editor (I use TextWrangler) select all, and replace with the code below. Save
I know it might seem strange to replace the code with the same thing, but it seemed to work for me O_o?
If that doesn't work, try and replace with the below code and see if that works.
This should, I hope, work correctly...
One thing to remember when doing this manually (Only in case you missed this).
./swfdecompress client.swf will try find and decompress a file named client.swf
.. If you haven't renamed the .swf from AssembleeGameClient******.swf to client.swf, then this will not work = No such file or directory.
Let me know what happens
The same thing was happening for me too....? which is weird..
cd *//rabcasm wasn't working for me, so I removed one of the / and it seemed to work again, then placing the extra / back in also seemed to work?
mv *.swf client.swf wasn't working and so tried a different approach using the 2nd code below... again, after this was working, I was able to go back to the original code :/
Open the ABC_Decom.sh in a text editor (I use TextWrangler) select all, and replace with the code below. Save
Code:
#!/bin/bash cd *//rabcasm mv *.swf client.swf ./swfdecompress client.swf ./abcexport client.swf ./rabcdasm client-1.abc exit 0
If that doesn't work, try and replace with the below code and see if that works.
Code:
#!/bin/bash cd */rabcasm touch *.swf ls -l *.swf mv *.swf client.swf ls -l client.swf ls -l *.swf ./swfdecompress client.swf ./abcexport client.swf ./rabcdasm client-1.abc
One thing to remember when doing this manually (Only in case you missed this).
./swfdecompress client.swf will try find and decompress a file named client.swf
.. If you haven't renamed the .swf from AssembleeGameClient******.swf to client.swf, then this will not work = No such file or directory.
Let me know what happens

had a quick go at it but it is still the same with both code's i will have a better look tommorow thanks
From what I can tell:
What file/client are you trying to decompile? Fresh or an already made client?
Is it one of nilly's old clients? if so, they are obfuscated, making the code un readable, not to mention these clients are very outdated and would cause you more problems, even if you were able to deobfuscate it.
Try downloading a fresh .swf from the game, and try with that.. if this works, then the file you are trying to decompile is the problem, not the script.
I tried with both fresh and a made client.. fresh follows through with no log, and the made client gives "Already Uncompressed" log, but still completes successfully..
Hope this helps
- cd *//rabcasm is working.. no error log
- mv *.swf client.swf is working.. no error log
- ./swfdecompress client.swf = Already Uncompressed log <brings me to believe you are using an already made client, fresh .swf files normally need uncompressed, already made clients do not, not that this will matter, it will simply move onto the next command.
- ./abcexport client.swf is working.. No error log
- ./client-1.abc: No such file or directory <makes me question the file you are trying to decompile.
What file/client are you trying to decompile? Fresh or an already made client?
Is it one of nilly's old clients? if so, they are obfuscated, making the code un readable, not to mention these clients are very outdated and would cause you more problems, even if you were able to deobfuscate it.
Try downloading a fresh .swf from the game, and try with that.. if this works, then the file you are trying to decompile is the problem, not the script.
I tried with both fresh and a made client.. fresh follows through with no log, and the made client gives "Already Uncompressed" log, but still completes successfully..
Hope this helps

