Decrypt method is not always present
This commit is contained in:
parent
52bf3d43ec
commit
a5da42093a
|
@ -186,7 +186,7 @@ namespace de4dot.code.deobfuscators.Eazfuscator_NET {
|
||||||
return method;
|
return method;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new ApplicationException("Could not find decrypt method");
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateDecrypterType() {
|
void UpdateDecrypterType() {
|
||||||
|
@ -228,11 +228,13 @@ namespace de4dot.code.deobfuscators.Eazfuscator_NET {
|
||||||
if (!CreateAssemblyInfos())
|
if (!CreateAssemblyInfos())
|
||||||
throw new ApplicationException("Could not initialize assembly infos");
|
throw new ApplicationException("Could not initialize assembly infos");
|
||||||
|
|
||||||
|
if (decryptMethod != null) {
|
||||||
simpleDeobfuscator.Deobfuscate(decryptMethod);
|
simpleDeobfuscator.Deobfuscate(decryptMethod);
|
||||||
simpleDeobfuscator.DecryptStrings(decryptMethod, deob);
|
simpleDeobfuscator.DecryptStrings(decryptMethod, deob);
|
||||||
if (!CreateDecryptKey())
|
if (!CreateDecryptKey())
|
||||||
throw new ApplicationException("Could not initialize decryption key");
|
throw new ApplicationException("Could not initialize decryption key");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void FindOtherType() {
|
void FindOtherType() {
|
||||||
foreach (var type in module.Types) {
|
foreach (var type in module.Types) {
|
||||||
|
@ -274,6 +276,7 @@ namespace de4dot.code.deobfuscators.Eazfuscator_NET {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
decryptKey = null;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user