public void Run(string[] args) { Context = new Context(args[0]); Context.Log.Information("Injection phase.."); var names = InjectHelper.InjectNamespaces(new[] { "Hex.VM.Runtime", "Hex.VM.Runtime.Handler", "Hex.VM.Runtime.Handler.Impl", "Hex.VM.Runtime.Handler.Impl.Custom", "Hex.VM.Runtime.Util" }); foreach (var name in names) { Context.Log.Information($"Injected {name}"); } Console.WriteLine(); Context.Log.Information("Virtualization phase.."); try { Context.Protections[0].Execute(Context); } catch (Exception exc) { Context.Log.Error($"Something went wrong while applying virtualization: {exc.Message}"); } Save(Path.GetFileNameWithoutExtension(args[0]) + "-obf.exe"); }