// Decompiled with JetBrains decompiler // Type: SmartAssembly.Zip.DESCryptoIndirector // Assembly: Java Update, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: 9303C6B7-A9B1-42D1-950C-FCE2C64C3FE0 // Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Trojan-Downloader.Win32.Dapato.lnz-b8c384980c9f22185c34463ff696eecea0ea8f5afe9bfe8909d6e74753ffabcd.exe using System; using System.Reflection; using System.Security.Cryptography; namespace SmartAssembly.Zip { public sealed class DESCryptoIndirector : IDisposable { private readonly Type m_DcspType; private readonly object m_DESCryptoServiceProvider; public DESCryptoIndirector() { this.m_DcspType = Assembly.Load("mscorlib").GetType("System.Security.Cryptography.DESCryptoServiceProvider"); this.m_DESCryptoServiceProvider = Activator.CreateInstance(this.m_DcspType); } public ICryptoTransform GetDESCryptoTransform( byte[] key, byte[] iv, bool decrypt) { this.m_DcspType.GetProperty("Key").GetSetMethod().Invoke(this.m_DESCryptoServiceProvider, new object[1] { (object) key }); this.m_DcspType.GetProperty("IV").GetSetMethod().Invoke(this.m_DESCryptoServiceProvider, new object[1] { (object) iv }); return (ICryptoTransform) this.m_DcspType.GetMethod(decrypt ? "CreateDecryptor" : "CreateEncryptor", new Type[0]).Invoke(this.m_DESCryptoServiceProvider, new object[0]); } public void Clear() => this.m_DcspType.GetMethod(nameof (Clear)).Invoke(this.m_DESCryptoServiceProvider, new object[0]); public void Dispose() => this.Clear(); } }