Only check Version property if methods decrypter was found
This commit is contained in:
parent
776fd7f69f
commit
0e89c0fc35
|
@ -109,25 +109,29 @@ namespace de4dot.code.deobfuscators.CodeVeil {
|
||||||
}
|
}
|
||||||
|
|
||||||
string detectVersion() {
|
string detectVersion() {
|
||||||
switch (methodsDecrypter.Version) {
|
if (methodsDecrypter.Detected) {
|
||||||
case MethodsDecrypter.TypeVersion.Unknown:
|
switch (methodsDecrypter.Version) {
|
||||||
return null;
|
case MethodsDecrypter.TypeVersion.Unknown:
|
||||||
|
return null;
|
||||||
|
|
||||||
case MethodsDecrypter.TypeVersion.V3:
|
case MethodsDecrypter.TypeVersion.V3:
|
||||||
return "3.x";
|
return "3.x";
|
||||||
|
|
||||||
case MethodsDecrypter.TypeVersion.V4_0:
|
case MethodsDecrypter.TypeVersion.V4_0:
|
||||||
return "4.0";
|
return "4.0";
|
||||||
|
|
||||||
case MethodsDecrypter.TypeVersion.V4_1:
|
case MethodsDecrypter.TypeVersion.V4_1:
|
||||||
return "4.1";
|
return "4.1";
|
||||||
|
|
||||||
case MethodsDecrypter.TypeVersion.V5:
|
case MethodsDecrypter.TypeVersion.V5:
|
||||||
return "5.x";
|
return "5.0";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new ApplicationException("Unknown version");
|
throw new ApplicationException("Unknown version");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
void findKillType() {
|
void findKillType() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user