Beispiel #1
0
 public static int smethod_2(int int_2)
 {
     checked
     {
         int num3 = 0;
         if (int_2 > 0)
         {
             int num      = Class5.OpenProcess(2035711, 0, int_2);
             int arg_1F_0 = num;
             int arg_1F_1 = (int)Class5.long_1;
             int arg_1F_3 = 4;
             int num2     = 0;
             Class5.ReadProcessMemory_1(arg_1F_0, arg_1F_1, ref num3, arg_1F_3, ref num2);
             int arg_3A_0 = num;
             int arg_3A_1 = (int)(unchecked ((long)num3) + 4837L);
             int arg_3A_3 = 4;
             num2 = 0;
             Class5.ReadProcessMemory_1(arg_3A_0, arg_3A_1, ref num3, arg_3A_3, ref num2);
             if (num > 0)
             {
                 Class5.CloseHandle(num);
             }
         }
         return(num3);
     }
 }
 // Token: 0x0600003C RID: 60 RVA: 0x000038D0 File Offset: 0x00001AD0
 public void method_2(IntPtr intptr_3, IntPtr intptr_4, int int_1, string string_1, bool bool_2, uint uint_0, string string_2)
 {
     this.method_1("Connecting...", 0);
     this.string_0 = string_1;
     if (this.intptr_2 != IntPtr.Zero)
     {
         Class5.CloseHandle(this.intptr_2);
         this.intptr_2 = IntPtr.Zero;
     }
     this.bool_0 = true;
     this.queue_0.Clear();
     this.gclass3_0 = new GClass3(intptr_4);
     this.intptr_2  = intptr_4;
     this.int_0     = int_1;
     try
     {
         Console.WriteLine("addrt: " + intptr_3.ToString());
         this.intptr_0 = this.gclass3_0.method_0 <IntPtr>(intptr_3 + 16);
         this.intptr_1 = this.gclass3_0.method_0 <IntPtr>(intptr_3 + 16 + 8);
         Console.WriteLine("horionToInjectorPtr: " + this.intptr_0.ToString());
         Console.WriteLine("injectorToHorionPtr: " + this.intptr_1.ToString());
         this.bool_1 = true;
         Class5.Struct4 @struct = default(Class5.Struct4);
         @struct.mem_CMD_0 = Class5.MEM_CMD.CMD_INIT;
         @struct.int_1    |= 1;
         if (this.string_0.Length > 10)
         {
             @struct.int_1 |= 2;
         }
         if (bool_2)
         {
             @struct.int_1 |= 4;
         }
         JObject jobject = new JObject();
         if (this.string_0.Length <= 10)
         {
             jobject["discordAuth"] = "none";
         }
         else
         {
             jobject["discordAuth"] = this.string_0;
         }
         jobject["invite"] = string_2;
         jobject["serial"] = uint_0;
         string s     = jobject.ToString();
         byte[] bytes = Encoding.ASCII.GetBytes(s);
         @struct.byte_0 = new byte[3000];
         Array.Copy(bytes, 0, @struct.byte_0, 0, bytes.Length);
         @struct.int_6 = bytes.Length;
         this.method_3(@struct);
         this.method_1("Connected", 1);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         this.bool_1 = false;
         this.method_1("Disconnected", -1);
     }
 }
 // Token: 0x0600003E RID: 62 RVA: 0x00003B0C File Offset: 0x00001D0C
 public void method_4()
 {
     this.bool_0 = false;
     this.bool_1 = false;
     this.thread_0.Abort();
     if (this.intptr_2 != IntPtr.Zero)
     {
         Class5.CloseHandle(this.intptr_2);
         this.intptr_2 = IntPtr.Zero;
     }
 }