Example #1
0
    internal EncrytionType method_0(Interface61 A_0)
    {
        int           num  = 13;
        EncrytionType none = EncrytionType.None;

        if (!A_0.imethod_3(BookmarkStart.b("瘲嬴吶䬸䈺䴼䬾⡀ⱂ⭄ๆ❈ⵊ≌", 13)) || !A_0.imethod_7(BookmarkStart.b("㔲焴嘶䴸娺渼伾⁀⁂⁄㑆", num)))
        {
            return(none);
        }
        using (Stream stream = A_0.imethod_0(BookmarkStart.b("瘲嬴吶䬸䈺䴼䬾⡀ⱂ⭄ๆ❈ⵊ≌", num)))
        {
            byte[] buffer = new byte[4];
            int    num2   = this.method_1(stream, buffer);
            stream.Position = 0L;
            switch (num2)
            {
            case 0x20003:
            case 0x20004:
                return(EncrytionType.Standard);
            }
            if (num2 == 0x40004)
            {
                none = EncrytionType.Agile;
            }
            return(none);
        }
    }
Example #2
0
    private byte[] method_14(MemoryStream A_0, DocOleObject A_1, string A_2)
    {
        Class1004   class2     = new Class1004(A_0);
        Interface61 interface2 = class2.Interface51.imethod_0().imethod_5(BookmarkStart.b("愭刯報儳唵䰷樹医儽ⰿ", 8));
        Class1004   class3     = new Class1004();

        class3.Interface51.imethod_0().imethod_12(interface2);
        Interface61 interface3 = class3.Interface51.imethod_0().imethod_5(BookmarkStart.b("愭刯報儳唵䰷樹医儽ⰿ", 8));

        if (interface2.imethod_7(A_2))
        {
            interface3 = interface3.imethod_5(A_2);
        }
        else
        {
            interface3 = interface3.imethod_4(A_2);
        }
        class2.System.IDisposable.Dispose();
        foreach (Class297 class5 in class3.Interface51.imethod_1().method_0())
        {
            if (A_1.dictionary_0.ContainsKey(class5.method_0()))
            {
                class5.method_13(A_1.dictionary_0[class5.method_0()]);
            }
        }
        A_1.dictionary_0.Clear();
        Class1004 class4 = new Class1004(A_1.stream_1);

        A_1.stream_1.Position = 0L;
        for (int i = 0; i < class4.Interface51.imethod_0().imethod_9().Length; i++)
        {
            Stream1 stream  = class4.Interface51.imethod_0().imethod_0(class4.Interface51.imethod_0().imethod_9()[i]);
            Stream1 stream2 = interface3.imethod_2(class4.Interface51.imethod_0().imethod_9()[i]);
            stream.vmethod_0(stream2);
            stream2.Flush();
            stream2.Close();
            stream.Close();
        }
        class4.System.IDisposable.Dispose();
        class3.Interface51.imethod_2();
        byte[] buffer = (class3.method_4() as MemoryStream).ToArray();
        class3.System.IDisposable.Dispose();
        return(buffer);
    }
Example #3
0
    internal Class1116(byte[] A_0, string A_1)
    {
        int num = 15;

        this.string_21 = string.Empty;
        this.string_22 = string.Empty;
        if ((A_0 != null) && (A_0.Length != 0))
        {
            if (((A_0.Length > 2) && (A_0[0] == 2)) && (A_0[1] == 0))
            {
                this.byte_0          = this.method_7(A_0);
                this.oleObjectType_0 = OleObjectType.Package;
            }
            else
            {
                MemoryStream stream = new MemoryStream(A_0);
                Class1004    class2 = new Class1004(stream);
                if (class2.Interface51.imethod_0().imethod_7(BookmarkStart.b("稴唶匸帺帼䬾ᅀⱂ⩄⭆", num)))
                {
                    Interface61 interface2 = class2.Interface51.imethod_0().imethod_5(BookmarkStart.b("稴唶匸帺帼䬾ᅀⱂ⩄⭆", num));
                    if (interface2.imethod_7(A_1))
                    {
                        interface2 = interface2.imethod_5(A_1);
                        this.method_4(interface2);
                    }
                }
                else if (class2.Interface51.imethod_0().imethod_7(A_1))
                {
                    Interface61 interface3 = class2.Interface51.imethod_0().imethod_5(A_1);
                    this.method_4(interface3);
                }
                else if (class2.Interface51.imethod_0().imethod_7(BookmarkStart.b("㘴砶嬸儺琼儾❀ⱂ", num)) || class2.Interface51.imethod_0().imethod_7(BookmarkStart.b("㐴砶唸帺", num)))
                {
                    this.method_4(class2.Interface51.imethod_0());
                }
            }
        }
    }