If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.

#52 CP with a wrong action length
Author:
pepka

Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed 

<b>What steps will reproduce the problem?</b>
Decompile a file which is obfuscated with "Wrong action length trick" (e. g. SWF
Protector). Some constants are still unresolved. I didn't dig for it but may be it is
because all the data is hidden inside of a fake (and empty) CP and it is taken at some
point instead of the right one?
<b>What is the expected output? What do you see instead?</b>
if(CONSTANT2.CONSTANT3.CONSTANT4.CONSTANT42)
{
info("onLoad: External Interface available, exposing callbacks to enclosing
JavaScript");
flash.external.ExternalInterface.addCallback("audioplay",null,externalPlay);
flash.external.ExternalInterface.addCallback("audiopause",null,externalPause);
flash.external.ExternalInterface.addCallback("audiostop",null,externalStop);
flash.external.ExternalInterface.addCallback("audioVol",null,changeVol);
flash.external.ExternalInterface.addCallback("js_incVol",null,incVol);
flash.external.ExternalInterface.addCallback("js_decVol",null,decVol);
flash.external.ExternalInterface.addCallback("js_changeMute",null,changeMute);
flash.external.ExternalInterface.addCallback("js_return",null,externalReturn);
flash.external.ExternalInterface.addCallback("js_getMute",null,getMute);
}
else
{
CONSTANT60("CONSTANT59");
}
<b>What version of the product are you using? On what operating system?</b>
1.4.2u1
Windows 7 64-bit
<b>Could you provide the SWF file you have problem with?</b>
<b>If the answer is yes, then please attach it here or send me it via email.</b>
<b>Could you at least attach PCode source?</b>
<b>Do you have the original source code which produced the wrong</b>
<b>decompilation? If yes, then please attach it.</b>
<b>Please provide any additional information below.</b>
What steps will reproduce the problem?
Decompile a file which is obfuscated with "Wrong action length trick" (e. g. SWF
Protector). Some constants are still unresolved. I didn't dig for it but may be it is
because all the data is hidden inside of a fake (and empty) CP and it is taken at some
point instead of the right one?
What is the expected output? What do you see instead?
if(CONSTANT2.CONSTANT3.CONSTANT4.CONSTANT42)
{
info("onLoad: External Interface available, exposing callbacks to enclosing
JavaScript");
flash.external.ExternalInterface.addCallback("audioplay",null,externalPlay);
flash.external.ExternalInterface.addCallback("audiopause",null,externalPause);
flash.external.ExternalInterface.addCallback("audiostop",null,externalStop);
flash.external.ExternalInterface.addCallback("audioVol",null,changeVol);
flash.external.ExternalInterface.addCallback("js_incVol",null,incVol);
flash.external.ExternalInterface.addCallback("js_decVol",null,decVol);
flash.external.ExternalInterface.addCallback("js_changeMute",null,changeMute);
flash.external.ExternalInterface.addCallback("js_return",null,externalReturn);
flash.external.ExternalInterface.addCallback("js_getMute",null,getMute);
}
else
{
CONSTANT60("CONSTANT59");
}
What version of the product are you using? On what operating system?
1.4.2u1
Windows 7 64-bit

State: →new
Title: CP with a wrong action length→CP with a wrong action length
Type: →bug
Visibility: →Everybody
Title: CP with a wrong action length→CP with a wrong action length
Type: →bug
Visibility: →Everybody
State: new→opened
Hi, I have moved this issue to new Issue Tracker.
You should have received email info about registering there(with specific link) and
gaining access to this issue. If you have not received any email, please check your SPAM
inbox or write to my email.
Hi, try new version 1.4.3, it should work. Let me know.
State: opened→upgraded
Thanks! And this is ok as well.
State: upgraded→closed