예제 #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);
        }
예제 #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);
            }
        }