Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
1,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 20.50 KB | None | 0 0
  1. using Microsoft.VisualBasic.CompilerServices;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.Drawing;
  6. using System.Reflection;
  7. using System.Reflection.Emit;
  8. using System.Runtime.InteropServices;
  9. using System.Threading;
  10. using System.Windows.Forms;
  11.  
  12. namespace x567011811811579891007353119119103521031009048116565748728812210910311966761021127065665182991091071217790665010383791181167797545050861001114911811876118691077211210488768448864811473103858672548269751138288881137868787799685750671057011511111010388671138589120827276687598102547211872741087389106
  13. {
  14.     class x8410897557211010254978886100737179107101791201007873908710599805410087875554538954877798497878781131131041147378891018511011472102685010957117811016911170534948686610911172745210310610811976651108390113777497112109837380819771109819711511881711091207211898691081186768107681037152102701001095165122
  15.     {
  16.         public delegate bool x695110168654998871011031005411554756786801128210653908353745089769011469778186505786659910911311054102981108210951102681151121058769109841015712110652101107747371907611072709711810089111481141157065786712010690114751017370991161128252521141161027068516673889051788050688379115508711855119103511061181108877577553109(uint x115121112116801021157810110080112759810311951109546979907712172778170828051881131137754110508757103105102118971021028811571725210811790784810087658070108791095669815612049121111565774505311071729065498151708874807211776678578817949891011187911480111110781115756100110115821201107677109110891081188478, int x7311910351777468801041071176611312155117103687898848672689010510272104105117697111348879089885585501106550118115888311279725211052109745256981158111268508411311673571075310611611951891021116782691146972725411012211782751021047798118501038611211153117568265112737911587898212212082871205081117100678499, int x12010584117851026712210690104876749555311112275121707810111749101121109103849710197105116116811214850757211779678782557711812054768210555104121691045179117105831187110184558112051528566891076711312267551019890718911710550106501131211091169710110673102888085979810968101115101996868115112114122861208799537048, uint x12011653998150858651668348881181019974537511499569067491211019081661131111055057100711086853807511611374121998055718449879851117757882811221021041051131226850651121167110012212290118828810389108122741178167795711579115981078711975110821211179768544969578610910751811048810097561077684112113831207054, UIntPtr x10684100657210810480100549982871008811985547382891176775120105101122811038097887088801111176911710979901036511371715677120101106105114521068884888985686911570896670117103111491158311910785651086798858080115527483655779798449119118115688652103871221141185252107728174758076538998858154104114559067);
  17.         public static x695110168654998871011031005411554756786801128210653908353745089769011469778186505786659910911311054102981108210951102681151121058769109841015712110652101107747371907611072709711810089111481141157065786712010690114751017370991161128252521141161027068516673889051788050688379115508711855119103511061181108877577553109 x1109910278801137953831226975101728878108748910111071100568190827767821181207352667379118991221026884905710485106100741117676757066110121987055705512071113104727553808889781167111575118112989986787910111854745176115856974908190978910812199103759986981068711289501058097549782120108897155741111011021034897998498;
  18.  
  19.  
  20.         public delegate ushort x11548102751091211071028349699012211573861116910067675568115485068102551141211107299776651806568119991027611255987667675750907673113488210997891165649119785269837982891147257737853721191225168119114110899911098486780975298515576847388481008177861181206789861211127110012287758170691151009954661141227878105110118(int x11465791101139851561118110890991115511410555659910567541168370525711882851136566121541198568117108121111103791099010611465806612112189656554102108501065083844810587501001147211675531147670105120881111191135711883103528188687799105741008490100113865011098109998611576509810011811979120809769114661068612054);
  21.         public static x11548102751091211071028349699012211573861116910067675568115485068102551141211107299776651806568119991027611255987667675750907673113488210997891165649119785269837982891147257737853721191225168119114110899911098486780975298515576847388481008177861181206789861211127110012287758170691151009954661141227878105110118 x5090551167498110113841168350117110865752511101089965110796670701206510965486977106987911374116705090115788511051119851131101209767788579681061095010676118498679111751078454561048011711287971088484103508069687152102727785112491155654558049708052501137875798976118106110122525110666117115103106981091021138467105658748;
  22.  
  23.  
  24.         static void Main(string[] args)
  25.         {
  26.             x1109910278801137953831226975101728878108748910111071100568190827767821181207352667379118991221026884905710485106100741117676757066110121987055705512071113104727553808889781167111575118112989986787910111854745176115856974908190978910812199103759986981068711289501058097549782120108897155741111011021034897998498 = x11986113509911012280687588891197775105671141008711310066117114117561167410166731041091031221188510489105120106865011510811074788385103875411368691091096583891085073106118109104<x695110168654998871011031005411554756786801128210653908353745089769011469778186505786659910911311054102981108210951102681151121058769109841015712110652101107747371907611072709711810089111481141157065786712010690114751017370991161128252521141161027068516673889051788050688379115508711855119103511061181108877577553109>("user32.dll", "mouse_event"); //Cast the Delegate
  27.             x5090551167498110113841168350117110865752511101089965110796670701206510965486977106987911374116705090115788511051119851131101209767788579681061095010676118498679111751078454561048011711287971088484103508069687152102727785112491155654558049708052501137875798976118106110122525110666117115103106981091021138467105658748 =
  28.                 x11986113509911012280687588891197775105671141008711310066117114117561167410166731041091031221188510489105120106865011510811074788385103875411368691091096583891085073106118109104<x11548102751091211071028349699012211573861116910067675568115485068102551141211107299776651806568119991027611255987667675750907673113488210997891165649119785269837982891147257737853721191225168119114110899911098486780975298515576847388481008177861181206789861211127110012287758170691151009954661141227878105110118>("user32.dll", "GetAsyncKeyState"); //Cast the Delegate
  29.  
  30.  
  31.             bool x978911971705679881148151975190891058511351105561048097731165448103114906685889011949701101207686841001178179110103795784867689113122107766611975819055725211312167116121851117075878367111816952116811034811380831037053115541008610849671088171118122657411610510198117121661194810081861135111785898777 = false;
  32.             Point x83112857567671037511111199116536554118561121009910373891011054911876891065711565531006690106725610479546950689010810597888410689729849120115104711128910585841154811172841108910910910211211012012011710711381541204812187114491001037511712012175501211198911576656689888452117117113691121209012056801127650835774 = new Point();
  33.  
  34.             if (x1109910278801137953831226975101728878108748910111071100568190827767821181207352667379118991221026884905710485106100741117676757066110121987055705512071113104727553808889781167111575118112989986787910111854745176115856974908190978910812199103759986981068711289501058097549782120108897155741111011021034897998498 != null
  35.                 && x5090551167498110113841168350117110865752511101089965110796670701206510965486977106987911374116705090115788511051119851131101209767788579681061095010676118498679111751078454561048011711287971088484103508069687152102727785112491155654558049708052501137875798976118106110122525110666117115103106981091021138467105658748 != null )
  36.             {
  37.  
  38.                 int x7249519710051107117795289748466801167672687279117102767110410511188831137711848121847911386112771165710483709711853101844910950731196782847777908983781227368114118117986699568066769787997411450895552506611271978711211311612110056101111651041105410989878183489712151118118116109103117116867972521009797118501025112157 = 1000 / (450 / 60);
  39.  
  40.                 int[] x6665114113497582116551084983120104115508511349571091078471716579876568112997611810110383651121217585977490725710898851098586907067569789727210349558875551151138053699787117547110684112736911498115120106841161056588736848111541071188998116708475501021157110989861175711211878751166511069105529954744882116529775108 = { 40, 48, 48, 48, 33, 33, 28, 24, 16, 13, 18, 22, 24, 29, 33, 33, 33, 29, 22, 20, 17, 17, 17, 17, 20, 27, 27, 27, 26 };
  41.                 int[] x7311887651059810568751007954109831065582711136575751197357571156612185808111390102707411610865654983861195275656873110106116511161031058390755680113551045010556518682108786780685086100112498212273501048382491131148878102105565256112821001048074105677087871161011011101144950828973995411312076737671113774849113106117 = { -36, 5, -59, -49, 3, 20, 25, 45, 43, 32, 82, 8, 43, -32, -25, -40, -35, -32, -43, -42, -42, -55, -25, 15, 20, 35, 50, 62, 40 };
  42.  
  43.                 int x53657573100101108896811610210910178701134890976710611480971015010566805511611810349105671121041141151165656117684871726598119696512154112841074983114100826648120531066883571184812010411012011483759785114561057155898877721101117889118101697611967105505111010771120791068211676821021218210712010068749757898178788184671147650 = 0;
  44.                 int x8151101106735669708848109114677312111312112172518349515167991015111948518172701061068211611067758273104651016510567751111121071051181191091226711111655745582121565683118825354525012176117488011068486811856116113997383567311210310478565452784970825471107721191199075997511012110780115881021188011684661205657561091027180 = 0;
  45.  
  46.                 while (true)
  47.                 {
  48.                     if (x69567568116106725510510979491211188471521145110378121815048996612287119557310211665115871211075388861149089708965877711910376112731177867878583101109103985110153697911578107488211712184546510810511476881211221031119067897556485481991046982718711577529099671171207853120991229811497113806510082102103908848122119989875() && x978911971705679881148151975190891058511351105561048097731165448103114906685889011949701101207686841001178179110103795784867689113122107766611975819055725211312167116121851117075878367111816952116811034811380831037053115541008610849671088171118122657411610510198117121661194810081861135111785898777 != true)
  49.                     {
  50.  
  51.                         for (int x735499997765991121155511451119757010573116101826788101118100102758588538871102836912110653887711583861198457115811071219854118791216911248808811481788365541141035277101120695111584108771121071181108012111178113565290120119545354109719854987510355122991045210211411711665561226511311769681211019710211649114 = 0; x735499997765991121155511451119757010573116101826788101118100102758588538871102836912110653887711583861198457115811071219854118791216911248808811481788365541141035277101120695111584108771121071181108012111178113565290120119545354109719854987510355122991045210211411711665561226511311769681211019710211649114 < x6665114113497582116551084983120104115508511349571091078471716579876568112997611810110383651121217585977490725710898851098586907067569789727210349558875551151138053699787117547110684112736911498115120106841161056588736848111541071188998116708475501021157110989861175711211878751166511069105529954744882116529775108.Length -1; x735499997765991121155511451119757010573116101826788101118100102758588538871102836912110653887711583861198457115811071219854118791216911248808811481788365541141035277101120695111584108771121071181108012111178113565290120119545354109719854987510355122991045210211411711665561226511311769681211019710211649114++)
  52.                         {
  53.                             x53657573100101108896811610210910178701134890976710611480971015010566805511611810349105671121041141151165656117684871726598119696512154112841074983114100826648120531066883571184812010411012011483759785114561057155898877721101117889118101697611967105505111010771120791068211676821021218210712010068749757898178788184671147650 = Cursor.Position.X - x6665114113497582116551084983120104115508511349571091078471716579876568112997611810110383651121217585977490725710898851098586907067569789727210349558875551151138053699787117547110684112736911498115120106841161056588736848111541071188998116708475501021157110989861175711211878751166511069105529954744882116529775108[x735499997765991121155511451119757010573116101826788101118100102758588538871102836912110653887711583861198457115811071219854118791216911248808811481788365541141035277101120695111584108771121071181108012111178113565290120119545354109719854987510355122991045210211411711665561226511311769681211019710211649114];
  54.                             x8151101106735669708848109114677312111312112172518349515167991015111948518172701061068211611067758273104651016510567751111121071051181191091226711111655745582121565683118825354525012176117488011068486811856116113997383567311210310478565452784970825471107721191199075997511012110780115881021188011684661205657561091027180 = Cursor.Position.Y - x7311887651059810568751007954109831065582711136575751197357571156612185808111390102707411610865654983861195275656873110106116511161031058390755680113551045010556518682108786780685086100112498212273501048382491131148878102105565256112821001048074105677087871161011011101144950828973995411312076737671113774849113106117[x735499997765991121155511451119757010573116101826788101118100102758588538871102836912110653887711583861198457115811071219854118791216911248808811481788365541141035277101120695111584108771121071181108012111178113565290120119545354109719854987510355122991045210211411711665561226511311769681211019710211649114];
  55.  
  56.                             x1109910278801137953831226975101728878108748910111071100568190827767821181207352667379118991221026884905710485106100741117676757066110121987055705512071113104727553808889781167111575118112989986787910111854745176115856974908190978910812199103759986981068711289501058097549782120108897155741111011021034897998498(0x0001, x53657573100101108896811610210910178701134890976710611480971015010566805511611810349105671121041141151165656117684871726598119696512154112841074983114100826648120531066883571184812010411012011483759785114561057155898877721101117889118101697611967105505111010771120791068211676821021218210712010068749757898178788184671147650, x8151101106735669708848109114677312111312112172518349515167991015111948518172701061068211611067758273104651016510567751111121071051181191091226711111655745582121565683118825354525012176117488011068486811856116113997383567311210310478565452784970825471107721191199075997511012110780115881021188011684661205657561091027180, 0, UIntPtr.Zero);
  57.                             Thread.Sleep(x7249519710051107117795289748466801167672687279117102767110410511188831137711848121847911386112771165710483709711853101844910950731196782847777908983781227368114118117986699568066769787997411450895552506611271978711211311612110056101111651041105410989878183489712151118118116109103117116867972521009797118501025112157);
  58.                         }
  59.  
  60.                         x978911971705679881148151975190891058511351105561048097731165448103114906685889011949701101207686841001178179110103795784867689113122107766611975819055725211312167116121851117075878367111816952116811034811380831037053115541008610849671088171118122657411610510198117121661194810081861135111785898777 = true;
  61.                     }
  62.                     else
  63.                     {
  64.                         if (x83112857567671037511111199116536554118561121009910373891011054911876891065711565531006690106725610479546950689010810597888410689729849120115104711128910585841154811172841108910910910211211012012011710711381541204812187114491001037511712012175501211198911576656689888452117117113691121209012056801127650835774.X != -1 || x83112857567671037511111199116536554118561121009910373891011054911876891065711565531006690106725610479546950689010810597888410689729849120115104711128910585841154811172841108910910910211211012012011710711381541204812187114491001037511712012175501211198911576656689888452117117113691121209012056801127650835774.Y != -1)
  65.                         {
  66.                             x83112857567671037511111199116536554118561121009910373891011054911876891065711565531006690106725610479546950689010810597888410689729849120115104711128910585841154811172841108910910910211211012012011710711381541204812187114491001037511712012175501211198911576656689888452117117113691121209012056801127650835774.X = -1;
  67.                             x83112857567671037511111199116536554118561121009910373891011054911876891065711565531006690106725610479546950689010810597888410689729849120115104711128910585841154811172841108910910910211211012012011710711381541204812187114491001037511712012175501211198911576656689888452117117113691121209012056801127650835774.Y = -1;
  68.                         }
  69.  
  70.                         if (!x978911971705679881148151975190891058511351105561048097731165448103114906685889011949701101207686841001178179110103795784867689113122107766611975819055725211312167116121851117075878367111816952116811034811380831037053115541008610849671088171118122657411610510198117121661194810081861135111785898777) x978911971705679881148151975190891058511351105561048097731165448103114906685889011949701101207686841001178179110103795784867689113122107766611975819055725211312167116121851117075878367111816952116811034811380831037053115541008610849671088171118122657411610510198117121661194810081861135111785898777 = false;
  71.                         Thread.Sleep(1);
  72.                     }
  73.                 }
  74.             }
  75.             else
  76.             {
  77.                 Debug.WriteLine("[ERR] Could not create delegate(s)");
  78.             }
  79.         }
  80.  
  81.         public static bool x69567568116106725510510979491211188471521145110378121815048996612287119557310211665115871211075388861149089708965877711910376112731177867878583101109103985110153697911578107488211712184546510810511476881211221031119067897556485481991046982718711577529099671171207853120991229811497113806510082102103908848122119989875()
  82.         {
  83.             return 0 != (x5090551167498110113841168350117110865752511101089965110796670701206510965486977106987911374116705090115788511051119851131101209767788579681061095010676118498679111751078454561048011711287971088484103508069687152102727785112491155654558049708052501137875798976118106110122525110666117115103106981091021138467105658748((int) Keys.LButton) & 0x8000);
  84.         }
  85.  
  86.         public static T x11986113509911012280687588891197775105671141008711310066117114117561167410166731041091031221188510489105120106865011510811074788385103875411368691091096583891085073106118109104<T>(string x10411210611010871821188699727079497657538810674565277487110065987883977178675610082881068512178984882511126768838770110116109807753107997648105122111121739011267871015511010684102111481191159054511205452728711010172106106112715170118109768197122108669074108119867371511061101029989104687112078114119, string x5552796910857117108102111103818673781145576707588120737284106101105701167610184102719798114697190561048172515471505010782114551057766578488821181198749116751067510598671055052891111157512210074561057676651118151101701071214886547410910157837010112010774885411611310611586751017710711378100761041055387)
  87.         {
  88.             AssemblyBuilder ASMB =
  89.                 AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName(Assembly.GetExecutingAssembly().FullName),
  90.                     AssemblyBuilderAccess.RunAndSave);
  91.             ModuleBuilder MODB = ASMB.DefineDynamicModule(MethodBase.GetCurrentMethod().Name);
  92.             TypeBuilder TB = MODB.DefineType(MethodBase.GetCurrentMethod().DeclaringType.Name, TypeAttributes.Public);
  93.             MethodInfo MI = typeof(T).GetMethods()[0];
  94.             List<Type> LP = new List<Type>();
  95.  
  96.             foreach (ParameterInfo pI in MI.GetParameters())
  97.                 LP.Add(pI.ParameterType);
  98.  
  99.             MethodBuilder MB = TB.DefinePInvokeMethod(x5552796910857117108102111103818673781145576707588120737284106101105701167610184102719798114697190561048172515471505010782114551057766578488821181198749116751067510598671055052891111157512210074561057676651118151101701071214886547410910157837010112010774885411611310611586751017710711378100761041055387,
  100.                 x10411210611010871821188699727079497657538810674565277487110065987883977178675610082881068512178984882511126768838770110116109807753107997648105122111121739011267871015511010684102111481191159054511205452728711010172106106112715170118109768197122108669074108119867371511061101029989104687112078114119,
  101.                 MethodAttributes.Public | MethodAttributes.Static | MethodAttributes.PinvokeImpl,
  102.                 CallingConventions.Standard,
  103.                 MI.ReturnType, LP.ToArray(),
  104.                 CallingConvention.Winapi,
  105.                 CharSet.Ansi);
  106.  
  107.             MB.SetImplementationFlags(MB.GetMethodImplementationFlags() | MethodImplAttributes.PreserveSig);
  108.  
  109.             return Conversions.ToGenericParameter<T>(Delegate.CreateDelegate(typeof(T), TB.CreateType().GetMethod(x5552796910857117108102111103818673781145576707588120737284106101105701167610184102719798114697190561048172515471505010782114551057766578488821181198749116751067510598671055052891111157512210074561057676651118151101701071214886547410910157837010112010774885411611310611586751017710711378100761041055387)));
  110.         }
  111.     }
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement