KILL type is only worth 10 points

This commit is contained in:
de4dot 2012-02-05 19:01:49 +01:00
parent 9e4b29034f
commit 1903cf8607

View File

@ -82,11 +82,12 @@ namespace de4dot.code.deobfuscators.CodeVeil {
protected override int detectInternal() {
int val = 0;
int sum = toInt32(foundKillType) +
toInt32(methodsDecrypter.Detected) +
int sum = toInt32(methodsDecrypter.Detected) +
toInt32(stringDecrypter.Detected);
if (sum > 0)
val += 100 + 10 * (sum - 1);
if (foundKillType)
val += 10;
return val;
}
@ -132,7 +133,6 @@ namespace de4dot.code.deobfuscators.CodeVeil {
public override void deobfuscateBegin() {
base.deobfuscateBegin();
if (Operations.DecryptStrings != OpDecryptString.None) {
stringDecrypter.initialize();
staticStringInliner.add(stringDecrypter.DecryptMethod, (method, args) => {