private void MutateRuntime() { var settings = rt.Descriptor.Settings; RuntimePatcher.Patch(RTModule, settings.ExportDbgInfo, settings.DoStackWalk); constants.InjectConstants(RTModule, rt.Descriptor, helpers); new Renamer(rt.Descriptor.Random.Next()).Process(RTModule); }
public RuntimeMutator(ModuleDef module, DarksVMRuntime rt) { RTModule = module; this.rt = rt; methodPatcher = new MethodPatcher(module); constants = new RTConstants(); helpers = new RuntimeHelpers(constants, rt, module); constants.InjectConstants(module, rt.Descriptor, helpers); helpers.AddHelpers(); }