Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deobfuscation Error #724

Closed
ArdaKurucim opened this issue Mar 22, 2021 · 2 comments
Closed

Deobfuscation Error #724

ArdaKurucim opened this issue Mar 22, 2021 · 2 comments

Comments

@ArdaKurucim
Copy link

java.lang.IndexOutOfBoundsException: Trying to set an inexistant local variable 0
        at org.objectweb.asm.tree.analysis.Frame.setLocal(Frame.java:178)
        at org.objectweb.asm.tree.analysis.Analyzer.computeInitialFrame(Analyzer.java:397)
        at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:162)
        at com.javadeobfuscator.deobfuscator.rules.allatori.RuleStringDecryptor.test(RuleStringDecryptor.java:48)
        at com.javadeobfuscator.deobfuscator.Deobfuscator.start(Deobfuscator.java:336)
        at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.run(DeobfuscatorMain.java:120)
        at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.run(DeobfuscatorMain.java:92)
        at com.javadeobfuscator.deobfuscator.DeobfuscatorMain.main(DeobfuscatorMain.java:50)

My config file has:

input: launcher.jar
detect: true
@ArdaKurucim
Copy link
Author

I have no idea which transformers should i use. I never coded java lol.

@ItzSomebody
Copy link
Member

ItzSomebody commented Mar 23, 2021

Reference:

Frame<SourceValue>[] frames;
try
{
frames = new Analyzer<>(new SourceInterpreter()).analyze(classNode.name, methodNode);
}catch(AnalyzerException e)
{
continue;
}

I have found asm's analyzers (which is what the rule uses to try to detect Allatori's string encryption) to not work well sometimes with certain flow obfuscation edge cases. This is an issue where I would shift the blame more on asm, but perhaps this also motivates the idea of removing reliance on asm's analyzers.

Regarding what to use, check #653 before uploading whatever it is you are trying to work with. If it's something that cannot be posted publicly, then you can try emailing me at [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants