2011-10-25 01:44:49 +08:00
|
|
|
|
/*
|
2012-01-10 06:02:47 +08:00
|
|
|
|
Copyright (C) 2011-2012 de4dot@gmail.com
|
2011-10-25 01:44:49 +08:00
|
|
|
|
|
|
|
|
|
This file is part of de4dot.
|
|
|
|
|
|
|
|
|
|
de4dot is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
de4dot is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with de4dot. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2011-11-09 19:08:48 +08:00
|
|
|
|
using System;
|
2011-10-25 01:44:49 +08:00
|
|
|
|
using System.Collections.Generic;
|
2011-11-25 22:16:50 +08:00
|
|
|
|
using System.IO;
|
2011-11-10 07:47:22 +08:00
|
|
|
|
using System.Text.RegularExpressions;
|
2012-11-18 01:57:36 +08:00
|
|
|
|
using dot10.PE;
|
2012-11-02 22:57:11 +08:00
|
|
|
|
using dot10.DotNet;
|
|
|
|
|
using dot10.DotNet.Emit;
|
2012-11-05 02:40:36 +08:00
|
|
|
|
using dot10.DotNet.Writer;
|
2011-10-25 01:44:49 +08:00
|
|
|
|
using de4dot.blocks;
|
|
|
|
|
|
2011-12-22 01:55:36 +08:00
|
|
|
|
namespace de4dot.code.deobfuscators.dotNET_Reactor.v4 {
|
2011-12-09 16:02:06 +08:00
|
|
|
|
public class DeobfuscatorInfo : DeobfuscatorInfoBase {
|
2011-11-04 03:03:32 +08:00
|
|
|
|
public const string THE_NAME = ".NET Reactor";
|
2011-12-21 04:47:45 +08:00
|
|
|
|
public const string THE_TYPE = "dr4";
|
2011-11-10 07:47:22 +08:00
|
|
|
|
const string DEFAULT_REGEX = DeobfuscatorBase.DEFAULT_VALID_NAME_REGEX;
|
2011-10-27 04:24:31 +08:00
|
|
|
|
BoolOption decryptMethods;
|
|
|
|
|
BoolOption decryptBools;
|
2011-11-01 02:41:38 +08:00
|
|
|
|
BoolOption restoreTypes;
|
2011-11-01 21:23:30 +08:00
|
|
|
|
BoolOption inlineMethods;
|
|
|
|
|
BoolOption removeInlinedMethods;
|
2011-11-08 17:27:18 +08:00
|
|
|
|
BoolOption dumpEmbeddedAssemblies;
|
2011-11-09 02:32:10 +08:00
|
|
|
|
BoolOption decryptResources;
|
2011-11-09 19:08:48 +08:00
|
|
|
|
BoolOption removeNamespaces;
|
2011-11-12 22:15:47 +08:00
|
|
|
|
BoolOption removeAntiStrongName;
|
2011-10-27 04:24:31 +08:00
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
public DeobfuscatorInfo()
|
2011-11-04 07:35:07 +08:00
|
|
|
|
: base(DEFAULT_REGEX) {
|
2011-10-27 04:24:31 +08:00
|
|
|
|
decryptMethods = new BoolOption(null, makeArgName("methods"), "Decrypt methods", true);
|
|
|
|
|
decryptBools = new BoolOption(null, makeArgName("bools"), "Decrypt booleans", true);
|
2011-11-01 02:41:38 +08:00
|
|
|
|
restoreTypes = new BoolOption(null, makeArgName("types"), "Restore types (object -> real type)", true);
|
2011-11-01 21:23:30 +08:00
|
|
|
|
inlineMethods = new BoolOption(null, makeArgName("inline"), "Inline short methods", true);
|
|
|
|
|
removeInlinedMethods = new BoolOption(null, makeArgName("remove-inlined"), "Remove inlined methods", true);
|
2011-11-09 04:43:57 +08:00
|
|
|
|
dumpEmbeddedAssemblies = new BoolOption(null, makeArgName("embedded"), "Dump embedded assemblies", true);
|
2011-11-09 02:32:10 +08:00
|
|
|
|
decryptResources = new BoolOption(null, makeArgName("rsrc"), "Decrypt resources", true);
|
2011-11-09 19:08:48 +08:00
|
|
|
|
removeNamespaces = new BoolOption(null, makeArgName("ns1"), "Clear namespace if there's only one class in it", true);
|
2011-11-12 22:15:47 +08:00
|
|
|
|
removeAntiStrongName = new BoolOption(null, makeArgName("sn"), "Remove anti strong name code", true);
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
2011-11-04 03:03:32 +08:00
|
|
|
|
public override string Name {
|
|
|
|
|
get { return THE_NAME; }
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Type {
|
2011-11-12 18:31:07 +08:00
|
|
|
|
get { return THE_TYPE; }
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override IDeobfuscator createDeobfuscator() {
|
|
|
|
|
return new Deobfuscator(new Deobfuscator.Options {
|
|
|
|
|
ValidNameRegex = validNameRegex.get(),
|
2011-10-27 04:24:31 +08:00
|
|
|
|
DecryptMethods = decryptMethods.get(),
|
|
|
|
|
DecryptBools = decryptBools.get(),
|
2011-11-01 02:41:38 +08:00
|
|
|
|
RestoreTypes = restoreTypes.get(),
|
2011-11-01 21:23:30 +08:00
|
|
|
|
InlineMethods = inlineMethods.get(),
|
|
|
|
|
RemoveInlinedMethods = removeInlinedMethods.get(),
|
2011-11-08 17:27:18 +08:00
|
|
|
|
DumpEmbeddedAssemblies = dumpEmbeddedAssemblies.get(),
|
2011-11-09 02:32:10 +08:00
|
|
|
|
DecryptResources = decryptResources.get(),
|
2011-11-09 19:08:48 +08:00
|
|
|
|
RemoveNamespaces = removeNamespaces.get(),
|
2011-11-12 22:15:47 +08:00
|
|
|
|
RemoveAntiStrongName = removeAntiStrongName.get(),
|
2011-10-25 01:44:49 +08:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override IEnumerable<Option> getOptionsInternal() {
|
|
|
|
|
return new List<Option>() {
|
2011-10-27 04:24:31 +08:00
|
|
|
|
decryptMethods,
|
|
|
|
|
decryptBools,
|
2011-11-01 02:41:38 +08:00
|
|
|
|
restoreTypes,
|
2011-11-01 21:23:30 +08:00
|
|
|
|
inlineMethods,
|
|
|
|
|
removeInlinedMethods,
|
2011-11-08 17:27:18 +08:00
|
|
|
|
dumpEmbeddedAssemblies,
|
2011-11-09 02:32:10 +08:00
|
|
|
|
decryptResources,
|
2011-11-09 19:08:48 +08:00
|
|
|
|
removeNamespaces,
|
2011-11-12 22:15:47 +08:00
|
|
|
|
removeAntiStrongName,
|
2011-10-25 01:44:49 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Deobfuscator : DeobfuscatorBase {
|
|
|
|
|
Options options;
|
2011-12-21 04:47:45 +08:00
|
|
|
|
string obfuscatorName = DeobfuscatorInfo.THE_NAME;
|
2011-10-25 01:44:49 +08:00
|
|
|
|
|
2012-11-21 18:14:20 +08:00
|
|
|
|
MyPEImage peImage;
|
2011-10-27 01:49:25 +08:00
|
|
|
|
byte[] fileData;
|
2011-10-25 14:27:36 +08:00
|
|
|
|
MethodsDecrypter methodsDecrypter;
|
2011-10-27 01:49:25 +08:00
|
|
|
|
StringDecrypter stringDecrypter;
|
2011-10-27 02:23:45 +08:00
|
|
|
|
BooleanDecrypter booleanDecrypter;
|
2012-01-03 17:38:09 +08:00
|
|
|
|
BooleanValueInliner booleanValueInliner;
|
2011-11-01 22:17:26 +08:00
|
|
|
|
MetadataTokenObfuscator metadataTokenObfuscator;
|
2011-11-08 17:27:18 +08:00
|
|
|
|
AssemblyResolver assemblyResolver;
|
2011-11-09 02:32:10 +08:00
|
|
|
|
ResourceResolver resourceResolver;
|
2011-11-12 22:15:47 +08:00
|
|
|
|
AntiStrongName antiStrongname;
|
2011-11-24 17:44:01 +08:00
|
|
|
|
EmptyClass emptyClass;
|
2012-07-07 06:58:50 +08:00
|
|
|
|
ProxyCallFixer proxyCallFixer;
|
2011-10-25 14:27:36 +08:00
|
|
|
|
|
2011-12-01 01:28:48 +08:00
|
|
|
|
bool unpackedNativeFile = false;
|
2011-11-01 21:23:30 +08:00
|
|
|
|
bool canRemoveDecrypterType = true;
|
|
|
|
|
bool startedDeobfuscating = false;
|
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
internal class Options : OptionsBase {
|
2011-10-27 04:24:31 +08:00
|
|
|
|
public bool DecryptMethods { get; set; }
|
|
|
|
|
public bool DecryptBools { get; set; }
|
2011-11-01 02:41:38 +08:00
|
|
|
|
public bool RestoreTypes { get; set; }
|
2011-11-01 21:23:30 +08:00
|
|
|
|
public bool InlineMethods { get; set; }
|
|
|
|
|
public bool RemoveInlinedMethods { get; set; }
|
2011-11-08 17:27:18 +08:00
|
|
|
|
public bool DumpEmbeddedAssemblies { get; set; }
|
2011-11-09 02:32:10 +08:00
|
|
|
|
public bool DecryptResources { get; set; }
|
2011-11-09 19:08:48 +08:00
|
|
|
|
public bool RemoveNamespaces { get; set; }
|
2011-11-12 22:15:47 +08:00
|
|
|
|
public bool RemoveAntiStrongName { get; set; }
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Type {
|
2011-11-12 18:31:07 +08:00
|
|
|
|
get { return DeobfuscatorInfo.THE_TYPE; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string TypeLong {
|
2011-12-21 04:47:45 +08:00
|
|
|
|
get { return DeobfuscatorInfo.THE_NAME + " 4.x"; }
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Name {
|
2011-10-30 02:28:29 +08:00
|
|
|
|
get { return obfuscatorName; }
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-01-11 11:38:02 +08:00
|
|
|
|
protected override bool CanInlineMethods {
|
2011-11-01 21:23:30 +08:00
|
|
|
|
get { return startedDeobfuscating ? options.InlineMethods : true; }
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
public Deobfuscator(Options options)
|
|
|
|
|
: base(options) {
|
|
|
|
|
this.options = options;
|
2011-11-09 19:08:48 +08:00
|
|
|
|
|
|
|
|
|
if (options.RemoveNamespaces)
|
|
|
|
|
this.RenamingOptions |= RenamingOptions.RemoveNamespaceIfOneType;
|
|
|
|
|
else
|
|
|
|
|
this.RenamingOptions &= ~RenamingOptions.RemoveNamespaceIfOneType;
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-18 01:57:36 +08:00
|
|
|
|
public override byte[] unpackNativeFile(IPEImage peImage) {
|
2011-12-21 04:47:45 +08:00
|
|
|
|
var data = new NativeImageUnpacker(peImage).unpack();
|
2011-12-01 03:19:50 +08:00
|
|
|
|
if (data == null)
|
|
|
|
|
return null;
|
|
|
|
|
|
2011-12-01 01:28:48 +08:00
|
|
|
|
unpackedNativeFile = true;
|
2011-12-01 03:19:50 +08:00
|
|
|
|
ModuleBytes = data;
|
|
|
|
|
return data;
|
2011-12-01 01:28:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-18 01:57:36 +08:00
|
|
|
|
public override void init(ModuleDefMD module) {
|
2011-10-25 01:44:49 +08:00
|
|
|
|
base.init(module);
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-24 14:57:31 +08:00
|
|
|
|
static Regex isRandomName = new Regex(@"^[A-Z]{30,40}$");
|
2011-11-23 12:28:57 +08:00
|
|
|
|
static Regex isRandomNameMembers = new Regex(@"^[a-zA-Z0-9]{9,11}$"); // methods, fields, props, events
|
|
|
|
|
static Regex isRandomNameTypes = new Regex(@"^[a-zA-Z0-9]{18,19}(?:`\d+)?$"); // types, namespaces
|
|
|
|
|
|
|
|
|
|
bool checkValidName(string name, Regex regex) {
|
2011-11-24 14:57:31 +08:00
|
|
|
|
if (isRandomName.IsMatch(name))
|
|
|
|
|
return false;
|
2011-11-23 12:28:57 +08:00
|
|
|
|
if (regex.IsMatch(name)) {
|
2011-11-10 07:47:22 +08:00
|
|
|
|
if (RandomNameChecker.isRandom(name))
|
|
|
|
|
return false;
|
|
|
|
|
if (!RandomNameChecker.isNonRandom(name))
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2011-11-23 12:28:57 +08:00
|
|
|
|
return checkValidName(name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidNamespaceName(string ns) {
|
2011-11-23 18:50:34 +08:00
|
|
|
|
if (ns == null)
|
|
|
|
|
return false;
|
|
|
|
|
if (ns.Contains("."))
|
|
|
|
|
return base.isValidNamespaceName(ns);
|
|
|
|
|
return checkValidName(ns, isRandomNameTypes);
|
2011-11-23 12:28:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidTypeName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameTypes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidMethodName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidPropertyName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidEventName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidFieldName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidGenericParamName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool isValidMethodArgName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
2011-11-10 07:47:22 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-04 18:45:04 +08:00
|
|
|
|
public override bool isValidMethodReturnArgName(string name) {
|
|
|
|
|
return string.IsNullOrEmpty(name) || checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
2012-05-03 20:53:01 +08:00
|
|
|
|
public override bool isValidResourceKeyName(string name) {
|
|
|
|
|
return name != null && checkValidName(name, isRandomNameMembers);
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-26 20:29:12 +08:00
|
|
|
|
protected override int detectInternal() {
|
2011-10-25 01:44:49 +08:00
|
|
|
|
int val = 0;
|
|
|
|
|
|
2012-01-08 02:14:15 +08:00
|
|
|
|
int sum = toInt32(methodsDecrypter.Detected) +
|
|
|
|
|
toInt32(stringDecrypter.Detected) +
|
|
|
|
|
toInt32(booleanDecrypter.Detected) +
|
|
|
|
|
toInt32(assemblyResolver.Detected) +
|
|
|
|
|
toInt32(resourceResolver.Detected);
|
2011-11-08 17:27:18 +08:00
|
|
|
|
if (sum > 0)
|
|
|
|
|
val += 100 + 10 * (sum - 1);
|
2011-10-25 14:27:36 +08:00
|
|
|
|
|
2011-11-24 14:49:50 +08:00
|
|
|
|
if (sum == 0) {
|
|
|
|
|
if (hasMetadataStream("#GUlD") && hasMetadataStream("#Blop"))
|
|
|
|
|
val += 10;
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-26 20:29:12 +08:00
|
|
|
|
protected override void scanForObfuscator() {
|
2011-10-25 14:27:36 +08:00
|
|
|
|
methodsDecrypter = new MethodsDecrypter(module);
|
|
|
|
|
methodsDecrypter.find();
|
2011-10-27 01:49:25 +08:00
|
|
|
|
stringDecrypter = new StringDecrypter(module);
|
2011-10-30 02:28:29 +08:00
|
|
|
|
stringDecrypter.find(DeobfuscatedFile);
|
2011-10-27 02:23:45 +08:00
|
|
|
|
booleanDecrypter = new BooleanDecrypter(module);
|
|
|
|
|
booleanDecrypter.find();
|
2011-11-08 17:27:18 +08:00
|
|
|
|
assemblyResolver = new AssemblyResolver(module);
|
|
|
|
|
assemblyResolver.find(DeobfuscatedFile);
|
2011-10-30 02:28:29 +08:00
|
|
|
|
obfuscatorName = detectVersion();
|
2011-12-01 01:28:48 +08:00
|
|
|
|
if (unpackedNativeFile)
|
|
|
|
|
obfuscatorName += " (native)";
|
2011-11-09 02:32:10 +08:00
|
|
|
|
resourceResolver = new ResourceResolver(module);
|
|
|
|
|
resourceResolver.find(DeobfuscatedFile);
|
2011-10-30 02:28:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string detectVersion() {
|
|
|
|
|
/*
|
|
|
|
|
Methods decrypter locals (not showing its own types):
|
|
|
|
|
3.7.0.3:
|
|
|
|
|
"System.Byte[]"
|
|
|
|
|
"System.Int32"
|
|
|
|
|
"System.Int32[]"
|
|
|
|
|
"System.IntPtr"
|
|
|
|
|
"System.IO.BinaryReader"
|
|
|
|
|
"System.IO.MemoryStream"
|
|
|
|
|
"System.Object"
|
|
|
|
|
"System.Reflection.Assembly"
|
|
|
|
|
"System.Security.Cryptography.CryptoStream"
|
|
|
|
|
"System.Security.Cryptography.ICryptoTransform"
|
|
|
|
|
"System.Security.Cryptography.RijndaelManaged"
|
|
|
|
|
"System.String"
|
|
|
|
|
|
|
|
|
|
3.9.8.0:
|
|
|
|
|
- "System.Int32[]"
|
|
|
|
|
+ "System.Diagnostics.StackFrame"
|
|
|
|
|
|
2011-10-30 13:15:52 +08:00
|
|
|
|
4.0.0.0: (jitter)
|
2011-10-30 02:28:29 +08:00
|
|
|
|
- "System.Diagnostics.StackFrame"
|
|
|
|
|
- "System.Object"
|
|
|
|
|
+ "System.Boolean"
|
|
|
|
|
+ "System.Collections.IEnumerator"
|
|
|
|
|
+ "System.Delegate"
|
|
|
|
|
+ "System.Diagnostics.Process"
|
|
|
|
|
+ "System.Diagnostics.ProcessModule"
|
|
|
|
|
+ "System.Diagnostics.ProcessModuleCollection"
|
|
|
|
|
+ "System.IDisposable"
|
|
|
|
|
+ "System.Int64"
|
|
|
|
|
+ "System.UInt32"
|
|
|
|
|
+ "System.UInt64"
|
2011-10-30 13:15:52 +08:00
|
|
|
|
|
|
|
|
|
4.1.0.0: (jitter)
|
|
|
|
|
+ "System.Reflection.Assembly"
|
|
|
|
|
|
|
|
|
|
4.3.1.0: (jitter)
|
|
|
|
|
+ "System.Byte&"
|
2011-10-30 02:28:29 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
LocalTypes localTypes;
|
|
|
|
|
int minVer = -1;
|
|
|
|
|
foreach (var info in stringDecrypter.DecrypterInfos) {
|
|
|
|
|
if (info.key == null)
|
|
|
|
|
continue;
|
|
|
|
|
localTypes = new LocalTypes(info.method);
|
|
|
|
|
if (!localTypes.exists("System.IntPtr"))
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " <= 3.7";
|
2011-10-30 02:28:29 +08:00
|
|
|
|
minVer = 3800;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-06 22:24:30 +08:00
|
|
|
|
if (methodsDecrypter.Method == null) {
|
2011-10-30 02:28:29 +08:00
|
|
|
|
if (minVer >= 3800)
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " >= 3.8";
|
|
|
|
|
return DeobfuscatorInfo.THE_NAME;
|
2011-10-30 02:28:29 +08:00
|
|
|
|
}
|
2011-11-06 22:24:30 +08:00
|
|
|
|
localTypes = new LocalTypes(methodsDecrypter.Method);
|
2011-10-30 02:28:29 +08:00
|
|
|
|
|
|
|
|
|
if (localTypes.exists("System.Int32[]")) {
|
|
|
|
|
if (minVer >= 3800)
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 3.8.4.1 - 3.9.0.1";
|
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " <= 3.9.0.1";
|
2011-10-30 02:28:29 +08:00
|
|
|
|
}
|
2011-10-30 13:15:52 +08:00
|
|
|
|
if (!localTypes.exists("System.Diagnostics.Process")) { // If < 4.0
|
|
|
|
|
if (localTypes.exists("System.Diagnostics.StackFrame"))
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 3.9.8.0";
|
2011-10-30 13:15:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
2011-11-06 22:24:30 +08:00
|
|
|
|
var compileMethod = MethodsDecrypter.findDnrCompileMethod(methodsDecrypter.Method.DeclaringType);
|
2011-10-30 13:15:52 +08:00
|
|
|
|
if (compileMethod == null)
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " < 4.0";
|
2011-10-30 13:15:52 +08:00
|
|
|
|
DeobfuscatedFile.deobfuscate(compileMethod);
|
2012-03-15 09:19:35 +08:00
|
|
|
|
bool compileMethodHasConstant_0x70000000 = DeobUtils.hasInteger(compileMethod, 0x70000000); // 4.0-4.1
|
2011-11-06 22:24:30 +08:00
|
|
|
|
DeobfuscatedFile.deobfuscate(methodsDecrypter.Method);
|
|
|
|
|
bool hasCorEnableProfilingString = findString(methodsDecrypter.Method, "Cor_Enable_Profiling"); // 4.1-4.4
|
2011-10-30 13:15:52 +08:00
|
|
|
|
|
|
|
|
|
if (compileMethodHasConstant_0x70000000) {
|
|
|
|
|
if (hasCorEnableProfilingString)
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 4.1";
|
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 4.0";
|
2011-10-30 13:15:52 +08:00
|
|
|
|
}
|
|
|
|
|
if (!hasCorEnableProfilingString)
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME;
|
2011-10-30 13:15:52 +08:00
|
|
|
|
// 4.2-4.4
|
2011-10-30 02:28:29 +08:00
|
|
|
|
|
|
|
|
|
if (!localTypes.exists("System.Byte&"))
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 4.2";
|
2011-10-30 13:15:52 +08:00
|
|
|
|
|
|
|
|
|
localTypes = new LocalTypes(compileMethod);
|
|
|
|
|
if (localTypes.exists("System.Object"))
|
2011-12-21 04:47:45 +08:00
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 4.4";
|
|
|
|
|
return DeobfuscatorInfo.THE_NAME + " 4.3";
|
2011-10-30 13:15:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-02 22:57:11 +08:00
|
|
|
|
static bool findString(MethodDef method, string s) {
|
2011-10-31 07:09:38 +08:00
|
|
|
|
foreach (var cs in DotNetUtils.getCodeStrings(method)) {
|
|
|
|
|
if (cs == s)
|
2011-10-30 13:15:52 +08:00
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2012-07-24 23:02:27 +08:00
|
|
|
|
public override bool getDecryptedModule(int count, ref byte[] newFileData, ref DumpedMethods dumpedMethods) {
|
|
|
|
|
if (count != 0)
|
|
|
|
|
return false;
|
2011-12-01 03:19:50 +08:00
|
|
|
|
fileData = ModuleBytes ?? DeobUtils.readModule(module);
|
2012-11-21 18:14:20 +08:00
|
|
|
|
peImage = new MyPEImage(fileData);
|
2011-10-27 01:49:25 +08:00
|
|
|
|
|
2011-10-27 04:24:31 +08:00
|
|
|
|
if (!options.DecryptMethods)
|
2011-10-29 08:27:34 +08:00
|
|
|
|
return false;
|
2011-10-27 04:24:31 +08:00
|
|
|
|
|
2011-11-25 22:16:50 +08:00
|
|
|
|
var tokenToNativeCode = new Dictionary<uint,byte[]>();
|
|
|
|
|
if (!methodsDecrypter.decrypt(peImage, DeobfuscatedFile, ref dumpedMethods, tokenToNativeCode))
|
2011-10-29 08:27:34 +08:00
|
|
|
|
return false;
|
2011-10-27 01:49:25 +08:00
|
|
|
|
|
2011-10-29 08:27:34 +08:00
|
|
|
|
newFileData = fileData;
|
|
|
|
|
return true;
|
2011-10-26 20:40:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-18 01:57:36 +08:00
|
|
|
|
public override IDeobfuscator moduleReloaded(ModuleDefMD module) {
|
2012-11-21 18:14:20 +08:00
|
|
|
|
freePEImage();
|
2011-10-26 20:40:55 +08:00
|
|
|
|
var newOne = new Deobfuscator(options);
|
|
|
|
|
newOne.setModule(module);
|
2011-10-27 02:23:45 +08:00
|
|
|
|
newOne.fileData = fileData;
|
2012-11-21 18:14:20 +08:00
|
|
|
|
newOne.peImage = new MyPEImage(fileData);
|
2011-10-26 20:40:55 +08:00
|
|
|
|
newOne.methodsDecrypter = new MethodsDecrypter(module, methodsDecrypter);
|
2011-10-27 01:49:25 +08:00
|
|
|
|
newOne.stringDecrypter = new StringDecrypter(module, stringDecrypter);
|
2011-10-27 02:23:45 +08:00
|
|
|
|
newOne.booleanDecrypter = new BooleanDecrypter(module, booleanDecrypter);
|
2011-11-08 17:27:18 +08:00
|
|
|
|
newOne.assemblyResolver = new AssemblyResolver(module, assemblyResolver);
|
2011-11-09 02:32:10 +08:00
|
|
|
|
newOne.resourceResolver = new ResourceResolver(module, resourceResolver);
|
2011-11-25 22:24:12 +08:00
|
|
|
|
newOne.methodsDecrypter.reloaded();
|
2011-10-26 20:40:55 +08:00
|
|
|
|
return newOne;
|
|
|
|
|
}
|
|
|
|
|
|
2012-11-21 18:14:20 +08:00
|
|
|
|
void freePEImage() {
|
|
|
|
|
if (peImage != null)
|
|
|
|
|
peImage.Dispose();
|
|
|
|
|
peImage = null;
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
public override void deobfuscateBegin() {
|
|
|
|
|
base.deobfuscateBegin();
|
2011-10-27 01:49:25 +08:00
|
|
|
|
|
2012-07-07 06:58:50 +08:00
|
|
|
|
proxyCallFixer = new ProxyCallFixer(module, DeobfuscatedFile);
|
|
|
|
|
proxyCallFixer.findDelegateCreator();
|
|
|
|
|
proxyCallFixer.find();
|
|
|
|
|
|
2011-10-28 07:33:05 +08:00
|
|
|
|
stringDecrypter.init(peImage, fileData, DeobfuscatedFile);
|
2012-11-21 18:14:20 +08:00
|
|
|
|
if (!stringDecrypter.Detected)
|
|
|
|
|
freePEImage();
|
2011-10-27 02:23:45 +08:00
|
|
|
|
booleanDecrypter.init(fileData, DeobfuscatedFile);
|
2012-01-03 17:38:09 +08:00
|
|
|
|
booleanValueInliner = new BooleanValueInliner();
|
2011-11-24 17:44:01 +08:00
|
|
|
|
emptyClass = new EmptyClass(module);
|
2011-10-27 03:05:35 +08:00
|
|
|
|
|
2011-10-27 04:24:31 +08:00
|
|
|
|
if (options.DecryptBools) {
|
2012-07-28 10:22:17 +08:00
|
|
|
|
booleanValueInliner.add(booleanDecrypter.Method, (method, gim, args) => {
|
2011-10-27 04:24:31 +08:00
|
|
|
|
return booleanDecrypter.decrypt((int)args[0]);
|
|
|
|
|
});
|
|
|
|
|
}
|
2011-10-27 01:49:25 +08:00
|
|
|
|
|
|
|
|
|
foreach (var info in stringDecrypter.DecrypterInfos) {
|
2012-07-28 10:22:17 +08:00
|
|
|
|
staticStringInliner.add(info.method, (method2, gim, args) => {
|
2011-10-27 01:49:25 +08:00
|
|
|
|
return stringDecrypter.decrypt(method2, (int)args[0]);
|
|
|
|
|
});
|
|
|
|
|
}
|
2011-10-28 04:25:44 +08:00
|
|
|
|
if (stringDecrypter.OtherStringDecrypter != null) {
|
2012-07-28 10:22:17 +08:00
|
|
|
|
staticStringInliner.add(stringDecrypter.OtherStringDecrypter, (method2, gim, args) => {
|
2011-10-28 04:25:44 +08:00
|
|
|
|
return stringDecrypter.decrypt((string)args[0]);
|
|
|
|
|
});
|
|
|
|
|
}
|
2011-10-27 01:49:25 +08:00
|
|
|
|
DeobfuscatedFile.stringDecryptersAdded();
|
2011-10-27 05:00:01 +08:00
|
|
|
|
|
2011-11-01 22:17:26 +08:00
|
|
|
|
metadataTokenObfuscator = new MetadataTokenObfuscator(module);
|
2011-11-12 22:15:47 +08:00
|
|
|
|
antiStrongname = new AntiStrongName(getDecrypterType());
|
2011-11-01 22:17:26 +08:00
|
|
|
|
|
2011-11-09 04:27:03 +08:00
|
|
|
|
bool removeResourceResolver = false;
|
2011-11-09 02:32:10 +08:00
|
|
|
|
if (options.DecryptResources) {
|
2011-11-09 04:27:03 +08:00
|
|
|
|
resourceResolver.init(DeobfuscatedFile, this);
|
2011-11-09 02:32:10 +08:00
|
|
|
|
decryptResources();
|
2011-11-09 04:27:03 +08:00
|
|
|
|
if (options.InlineMethods) {
|
2011-11-09 02:32:10 +08:00
|
|
|
|
addTypeToBeRemoved(resourceResolver.Type, "Resource decrypter type");
|
2011-11-09 04:27:03 +08:00
|
|
|
|
removeResourceResolver = true;
|
|
|
|
|
}
|
2011-12-11 18:08:32 +08:00
|
|
|
|
addEntryPointCallToBeRemoved(resourceResolver.InitMethod);
|
2011-11-09 02:32:10 +08:00
|
|
|
|
addCctorInitCallToBeRemoved(resourceResolver.InitMethod);
|
|
|
|
|
}
|
2011-11-09 04:27:03 +08:00
|
|
|
|
if (resourceResolver.Detected && !removeResourceResolver && !resourceResolver.FoundResource)
|
|
|
|
|
canRemoveDecrypterType = false; // There may be calls to its .ctor
|
2011-11-09 02:32:10 +08:00
|
|
|
|
|
2011-10-27 05:00:01 +08:00
|
|
|
|
if (Operations.DecryptStrings != OpDecryptString.None)
|
2011-11-06 22:24:30 +08:00
|
|
|
|
addResourceToBeRemoved(stringDecrypter.Resource, "Encrypted strings");
|
2011-11-04 14:21:12 +08:00
|
|
|
|
else
|
|
|
|
|
canRemoveDecrypterType = false;
|
|
|
|
|
|
2011-11-25 22:24:12 +08:00
|
|
|
|
if (options.DecryptMethods && !methodsDecrypter.HasNativeMethods) {
|
2011-11-06 22:24:30 +08:00
|
|
|
|
addResourceToBeRemoved(methodsDecrypter.Resource, "Encrypted methods");
|
|
|
|
|
addCctorInitCallToBeRemoved(methodsDecrypter.Method);
|
2011-10-27 05:00:01 +08:00
|
|
|
|
}
|
2011-11-04 14:21:12 +08:00
|
|
|
|
else
|
|
|
|
|
canRemoveDecrypterType = false;
|
|
|
|
|
|
2011-10-27 05:00:01 +08:00
|
|
|
|
if (options.DecryptBools)
|
2011-11-06 22:24:30 +08:00
|
|
|
|
addResourceToBeRemoved(booleanDecrypter.Resource, "Encrypted booleans");
|
2011-11-04 14:21:12 +08:00
|
|
|
|
else
|
|
|
|
|
canRemoveDecrypterType = false;
|
|
|
|
|
|
2011-11-12 22:15:47 +08:00
|
|
|
|
if (!options.RemoveAntiStrongName)
|
2011-11-12 20:31:08 +08:00
|
|
|
|
canRemoveDecrypterType = false;
|
|
|
|
|
|
2011-11-04 14:21:12 +08:00
|
|
|
|
// The inlined methods may contain calls to the decrypter class
|
|
|
|
|
if (!options.InlineMethods)
|
2011-11-01 21:23:30 +08:00
|
|
|
|
canRemoveDecrypterType = false;
|
|
|
|
|
|
2011-11-08 17:27:18 +08:00
|
|
|
|
if (options.DumpEmbeddedAssemblies) {
|
2011-11-08 17:37:39 +08:00
|
|
|
|
if (options.InlineMethods)
|
|
|
|
|
addTypeToBeRemoved(assemblyResolver.Type, "Assembly resolver");
|
2011-12-11 18:08:32 +08:00
|
|
|
|
addEntryPointCallToBeRemoved(assemblyResolver.InitMethod);
|
2011-11-08 17:27:18 +08:00
|
|
|
|
addCctorInitCallToBeRemoved(assemblyResolver.InitMethod);
|
|
|
|
|
dumpEmbeddedAssemblies();
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-08 17:39:35 +08:00
|
|
|
|
if (options.InlineMethods)
|
|
|
|
|
addTypeToBeRemoved(metadataTokenObfuscator.Type, "Metadata token obfuscator");
|
|
|
|
|
|
2011-11-24 17:44:01 +08:00
|
|
|
|
addCctorInitCallToBeRemoved(emptyClass.Method);
|
|
|
|
|
addCtorInitCallToBeRemoved(emptyClass.Method);
|
2011-12-11 18:08:32 +08:00
|
|
|
|
addEntryPointCallToBeRemoved(emptyClass.Method);
|
2011-11-25 06:58:42 +08:00
|
|
|
|
if (options.InlineMethods)
|
|
|
|
|
addTypeToBeRemoved(emptyClass.Type, "Empty class");
|
2011-11-24 17:44:01 +08:00
|
|
|
|
|
2011-11-01 21:23:30 +08:00
|
|
|
|
startedDeobfuscating = true;
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-02 22:57:11 +08:00
|
|
|
|
void addEntryPointCallToBeRemoved(MethodDef methodToBeRemoved) {
|
2011-12-11 18:08:32 +08:00
|
|
|
|
var entryPoint = module.EntryPoint;
|
|
|
|
|
addCallToBeRemoved(entryPoint, methodToBeRemoved);
|
2012-03-18 03:36:41 +08:00
|
|
|
|
foreach (var calledMethod in DotNetUtils.getCalledMethods(module, entryPoint))
|
|
|
|
|
addCallToBeRemoved(calledMethod, methodToBeRemoved);
|
2011-12-11 18:08:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
2011-11-09 02:32:10 +08:00
|
|
|
|
void decryptResources() {
|
|
|
|
|
var rsrc = resourceResolver.mergeResources();
|
|
|
|
|
if (rsrc == null)
|
|
|
|
|
return;
|
2011-11-10 21:48:33 +08:00
|
|
|
|
addResourceToBeRemoved(rsrc, "Encrypted resources");
|
2011-11-09 02:32:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
2011-11-08 17:27:18 +08:00
|
|
|
|
void dumpEmbeddedAssemblies() {
|
|
|
|
|
if (!options.DumpEmbeddedAssemblies)
|
|
|
|
|
return;
|
|
|
|
|
foreach (var info in assemblyResolver.getEmbeddedAssemblies(DeobfuscatedFile, this)) {
|
|
|
|
|
var simpleName = Utils.getAssemblySimpleName(info.name);
|
2012-07-07 13:11:32 +08:00
|
|
|
|
DeobfuscatedFile.createAssemblyFile(info.resource.GetResourceData(), simpleName, null);
|
2011-11-08 17:27:18 +08:00
|
|
|
|
addResourceToBeRemoved(info.resource, string.Format("Embedded assembly: {0}", info.name));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-27 04:16:51 +08:00
|
|
|
|
public override bool deobfuscateOther(Blocks blocks) {
|
2012-01-14 19:34:42 +08:00
|
|
|
|
return booleanValueInliner.decrypt(blocks) > 0;
|
2011-10-27 04:16:51 +08:00
|
|
|
|
}
|
2011-10-27 03:05:35 +08:00
|
|
|
|
|
2011-10-27 04:16:51 +08:00
|
|
|
|
public override void deobfuscateMethodEnd(Blocks blocks) {
|
2012-07-07 06:58:50 +08:00
|
|
|
|
proxyCallFixer.deobfuscate(blocks);
|
2011-11-01 22:17:26 +08:00
|
|
|
|
metadataTokenObfuscator.deobfuscate(blocks);
|
2011-11-09 04:27:03 +08:00
|
|
|
|
fixTypeofDecrypterInstructions(blocks);
|
2011-11-12 22:15:47 +08:00
|
|
|
|
removeAntiStrongNameCode(blocks);
|
2011-10-25 01:44:49 +08:00
|
|
|
|
base.deobfuscateMethodEnd(blocks);
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-12 22:15:47 +08:00
|
|
|
|
void removeAntiStrongNameCode(Blocks blocks) {
|
|
|
|
|
if (!options.RemoveAntiStrongName)
|
2011-11-12 20:31:08 +08:00
|
|
|
|
return;
|
2011-11-12 22:15:47 +08:00
|
|
|
|
if (antiStrongname.remove(blocks))
|
2012-11-11 12:31:11 +08:00
|
|
|
|
Logger.v("Removed anti strong name code");
|
2011-11-12 20:31:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-02 22:57:11 +08:00
|
|
|
|
TypeDef getDecrypterType() {
|
2011-11-12 20:31:08 +08:00
|
|
|
|
return methodsDecrypter.DecrypterType ?? stringDecrypter.DecrypterType ?? booleanDecrypter.DecrypterType;
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-09 04:27:03 +08:00
|
|
|
|
void fixTypeofDecrypterInstructions(Blocks blocks) {
|
2011-11-12 20:31:08 +08:00
|
|
|
|
var type = getDecrypterType();
|
2011-11-09 04:27:03 +08:00
|
|
|
|
if (type == null)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
foreach (var block in blocks.MethodBlocks.getAllBlocks()) {
|
|
|
|
|
var instructions = block.Instructions;
|
|
|
|
|
for (int i = 0; i < instructions.Count; i++) {
|
|
|
|
|
var instr = instructions[i];
|
|
|
|
|
if (instr.OpCode.Code != Code.Ldtoken)
|
|
|
|
|
continue;
|
2012-11-18 01:57:36 +08:00
|
|
|
|
if (!new SigComparer().Equals(type, instr.Operand as ITypeDefOrRef))
|
2011-11-09 04:27:03 +08:00
|
|
|
|
continue;
|
|
|
|
|
instructions[i] = new Instr(Instruction.Create(OpCodes.Ldtoken, blocks.Method.DeclaringType));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
public override void deobfuscateEnd() {
|
2012-11-21 18:14:20 +08:00
|
|
|
|
freePEImage();
|
2012-07-07 06:58:50 +08:00
|
|
|
|
removeProxyDelegates(proxyCallFixer);
|
2011-11-01 21:23:30 +08:00
|
|
|
|
removeInlinedMethods();
|
2011-11-01 02:41:38 +08:00
|
|
|
|
if (options.RestoreTypes)
|
|
|
|
|
new TypesRestorer(module).deobfuscate();
|
2011-11-26 19:21:18 +08:00
|
|
|
|
|
|
|
|
|
var decrypterType = getDecrypterType();
|
2011-12-21 07:30:17 +08:00
|
|
|
|
if (canRemoveDecrypterType && isTypeCalled(decrypterType))
|
2011-11-26 19:21:18 +08:00
|
|
|
|
canRemoveDecrypterType = false;
|
|
|
|
|
|
2011-11-24 17:10:39 +08:00
|
|
|
|
if (canRemoveDecrypterType)
|
2011-11-26 19:21:18 +08:00
|
|
|
|
addTypeToBeRemoved(decrypterType, "Decrypter type");
|
2011-11-12 20:31:08 +08:00
|
|
|
|
else
|
2012-11-11 12:31:11 +08:00
|
|
|
|
Logger.v("Could not remove decrypter type");
|
2011-11-26 19:21:18 +08:00
|
|
|
|
|
2011-10-25 01:44:49 +08:00
|
|
|
|
base.deobfuscateEnd();
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-01 21:23:30 +08:00
|
|
|
|
void removeInlinedMethods() {
|
|
|
|
|
if (!options.InlineMethods || !options.RemoveInlinedMethods)
|
|
|
|
|
return;
|
2011-12-21 04:47:45 +08:00
|
|
|
|
findAndRemoveInlinedMethods();
|
2011-11-01 21:23:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-02-25 13:25:40 +08:00
|
|
|
|
public override IEnumerable<int> getStringDecrypterMethods() {
|
|
|
|
|
var list = new List<int>();
|
2011-10-27 01:49:25 +08:00
|
|
|
|
foreach (var info in stringDecrypter.DecrypterInfos)
|
2012-11-02 22:57:11 +08:00
|
|
|
|
list.Add(info.method.MDToken.ToInt32());
|
2011-10-31 02:28:13 +08:00
|
|
|
|
if (stringDecrypter.OtherStringDecrypter != null)
|
2012-11-02 22:57:11 +08:00
|
|
|
|
list.Add(stringDecrypter.OtherStringDecrypter.MDToken.ToInt32());
|
2011-10-25 01:44:49 +08:00
|
|
|
|
return list;
|
|
|
|
|
}
|
2011-11-25 22:24:12 +08:00
|
|
|
|
|
2012-11-18 01:57:36 +08:00
|
|
|
|
public override void OnWriterEvent(ModuleWriterBase writer, ModuleWriterEvent evt) {
|
2012-11-21 18:14:20 +08:00
|
|
|
|
if (!options.DecryptMethods || !methodsDecrypter.HasNativeMethods)
|
2011-11-25 22:24:12 +08:00
|
|
|
|
return;
|
2012-11-18 06:49:19 +08:00
|
|
|
|
switch (evt) {
|
|
|
|
|
case ModuleWriterEvent.Begin:
|
|
|
|
|
// The decrypter assumes RVAs are unique so don't share any method bodies
|
|
|
|
|
writer.TheOptions.ShareMethodBodies = false;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ModuleWriterEvent.MDBeginAddResources:
|
|
|
|
|
methodsDecrypter.prepareEncryptNativeMethods(writer);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ModuleWriterEvent.BeginWriteChunks:
|
|
|
|
|
methodsDecrypter.encryptNativeMethods(writer);
|
|
|
|
|
break;
|
|
|
|
|
}
|
2011-11-25 22:24:12 +08:00
|
|
|
|
}
|
2011-10-25 01:44:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|