Esempio n. 1
0
        public static void Process(ModuleDefMD targetModule, string decryptionKey, bool encodeStrings = true, bool embedStrings = true, bool compressStrings = true)
        {
            decryptionKey = Runtime.ByteGuardHelper.GetMd5(decryptionKey);

            Encryption.EncryptStrings(targetModule, encodeStrings, decryptionKey);
            Embedding.EmbedStrings(targetModule, decryptionKey);
        }
Esempio n. 2
0
        public static void Process(ModuleDef targetModule, string decryptionKey, bool encryptConstants = true, bool embedConstants = true, bool compressConstants = true)
        {
            decryptionKey = Runtime.ByteGuardHelper.GetMd5(decryptionKey);

            if (encryptConstants)
            {
                Encryption.EncryptConstants(targetModule);
            }

            if (embedConstants)
            {
                Embedding.EmbedConstants(targetModule, decryptionKey);
            }
        }