public static void HeuristicScan(string filename) { Disassembler dis; try { dis = new Disassembler(filename, VDB.SDB); bool result = false; dis.LoadAssembly(); dis.DisassembleAndRate(Application.StartupPath + @"\Temp\DIS_" + Security.GetMD5HashFromFile(filename) + ".asil", out result); if (result == true) { Virus inf = new Virus("Kavprot.GHE.Virus", filename, filename, AVEngine.PETypeScanner); Alert.Infected(inf); } } catch { dis = null; } finally { } }