Ejemplo n.º 1
0
 public ImageReader(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module, byte[] data)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
     this.reader = MemoryImageStream.Create(data);
     this.memberRefConverter = new MemberRefConverter(module);
 }
Ejemplo n.º 2
0
 public ImageReader(IDeobfuscatorContext deobfuscatorContext, ModuleDefinition module, byte[] data)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
     this.reader = new BinaryReader(new MemoryStream(data));
     this.memberReferenceConverter = new MemberReferenceConverter(module);
 }
Ejemplo n.º 3
0
		public Csvm(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module, Csvm oldOne) {
			this.deobfuscatorContext = deobfuscatorContext;
			this.module = module;
			if (oldOne.resource != null)
				this.resource = (EmbeddedResource)module.Resources[oldOne.module.Resources.IndexOf(oldOne.resource)];
			if (oldOne.vmAssemblyRef != null)
				this.vmAssemblyRef = module.ResolveAssemblyRef(oldOne.vmAssemblyRef.Rid);
		}
Ejemplo n.º 4
0
 public Csvm(IDeobfuscatorContext deobfuscatorContext, ModuleDefinition module, Csvm oldOne)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
     if (oldOne.resource != null)
         this.resource = (EmbeddedResource)module.Resources[oldOne.module.Resources.IndexOf(oldOne.resource)];
     if (oldOne.vmAssemblyReference != null)
         this.vmAssemblyReference = module.AssemblyReferences[oldOne.module.AssemblyReferences.IndexOf(oldOne.vmAssemblyReference)];
 }
Ejemplo n.º 5
0
        public Renamer(IDeobfuscatorContext deobfuscatorContext, IEnumerable<IObfuscatedFile> files, RenamerFlags flags)
        {
            RenamerFlags = flags;

            modules = new Modules(deobfuscatorContext);
            isDelegateClass = new DerivedFrom(delegateClasses);
            mergeStateHelper = new MergeStateHelper(memberInfos);

            foreach (var file in files)
                modules.add(new Module(file));
        }
Ejemplo n.º 6
0
        public Renamer(IDeobfuscatorContext deobfuscatorContext, IEnumerable<IObfuscatedFile> files)
        {
            RenameNamespaces = true;
            RenameTypes = true;
            RenameProperties = true;
            RenameEvents = true;
            RenameFields = true;
            RenameMethods = true;
            RenameMethodArgs = true;
            RenameGenericParams = true;
            RestoreProperties = true;
            RestorePropertiesFromNames = true;
            RestoreEvents = true;
            RestoreEventsFromNames = true;

            modules = new Modules(deobfuscatorContext);
            isDelegateClass = new DerivedFrom(delegateClasses);
            mergeStateHelper = new MergeStateHelper(memberInfos);

            foreach (var file in files)
                modules.add(new Module(file));
        }
 public CsvmToCilMethodConverterBase(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
 }
 public CsvmToCilMethodConverter(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module, VmOpCodeHandlerDetector opCodeDetector)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
     this.opCodeDetector = opCodeDetector;
 }
Ejemplo n.º 9
0
		public Csvm(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module) {
			this.deobfuscatorContext = deobfuscatorContext;
			this.module = module;
		}
Ejemplo n.º 10
0
 public Modules(IDeobfuscatorContext deobfuscatorContext)
 {
     this.deobfuscatorContext = deobfuscatorContext;
 }
Ejemplo n.º 11
0
 public MethodsDecrypter(ModuleDefinition module, IDeobfuscatorContext deobfuscatorContext)
 {
     this.module = module;
     this.deobfuscatorContext = deobfuscatorContext;
 }
Ejemplo n.º 12
0
 public Csvm(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
 }
 public CsvmToCilMethodConverter(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module, VmOpCodeHandlerDetector opCodeDetector)
     : base(deobfuscatorContext, module)
 {
     this.opCodeDetector = opCodeDetector;
 }
Ejemplo n.º 14
0
 public MethodsDecrypter(ModuleDefMD module, ResourceDecrypter resourceDecrypter, IDeobfuscatorContext deobfuscatorContext)
 {
     this.module              = module;
     this.resourceDecrypter   = resourceDecrypter;
     this.deobfuscatorContext = deobfuscatorContext;
 }
Ejemplo n.º 15
0
 public MethodsDecrypter(ModuleDefinition module, IDeobfuscatorContext deobfuscatorContext)
 {
     this.module = module;
     this.deobfuscatorContext = deobfuscatorContext;
 }
Ejemplo n.º 16
0
		public MethodsDecrypter(ModuleDefMD module, ResourceDecrypter resourceDecrypter, IDeobfuscatorContext deobfuscatorContext) {
			this.module = module;
			this.resourceDecrypter = resourceDecrypter;
			this.deobfuscatorContext = deobfuscatorContext;
		}
		public CsvmToCilMethodConverter(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module, VmOpCodeHandlerDetector opCodeDetector)
			: base(deobfuscatorContext, module) {
			this.opCodeDetector = opCodeDetector;
		}
 public CsvmToCilMethodConverterBase(IDeobfuscatorContext deobfuscatorContext, ModuleDefMD module)
 {
     this.deobfuscatorContext = deobfuscatorContext;
     this.module = module;
 }