Only check Version property if methods decrypter was found

This commit is contained in:
de4dot 2012-02-08 08:50:36 +01:00
parent 776fd7f69f
commit 0e89c0fc35

View File

@ -109,6 +109,7 @@ namespace de4dot.code.deobfuscators.CodeVeil {
}
string detectVersion() {
if (methodsDecrypter.Detected) {
switch (methodsDecrypter.Version) {
case MethodsDecrypter.TypeVersion.Unknown:
return null;
@ -123,13 +124,16 @@ namespace de4dot.code.deobfuscators.CodeVeil {
return "4.1";
case MethodsDecrypter.TypeVersion.V5:
return "5.x";
return "5.0";
default:
throw new ApplicationException("Unknown version");
}
}
return null;
}
void findKillType() {
foreach (var type in module.Types) {
if (type.FullName == "____KILL") {