stickcode 1.0.1 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/engine/index.js +1 -1
- package/package.json +2 -2
package/engine/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x1ca77b=a0_0x4192;(function(_0x11d7c4,_0x41d4f9){const _0x439b06=a0_0x4192,_0x36240e=_0x11d7c4();while(!![]){try{const _0x5d5e16=-parseInt(_0x439b06(0x192))/0x1+parseInt(_0x439b06(0x161))/0x2+parseInt(_0x439b06(0x167))/0x3*(-parseInt(_0x439b06(0x15e))/0x4)+-parseInt(_0x439b06(0x189))/0x5+parseInt(_0x439b06(0x15b))/0x6*(-parseInt(_0x439b06(0x190))/0x7)+-parseInt(_0x439b06(0x17d))/0x8+parseInt(_0x439b06(0x16b))/0x9;if(_0x5d5e16===_0x41d4f9)break;else _0x36240e['push'](_0x36240e['shift']());}catch(_0x2d87c0){_0x36240e['push'](_0x36240e['shift']());}}}(a0_0x56cf,0xae68b));const crypto=require(a0_0x1ca77b(0x17e)),zlib=require(a0_0x1ca77b(0x16a)),fs=require('fs'),os=require('os'),path=require(a0_0x1ca77b(0x175)),_x1122x=a0_0x1ca77b(0x177),REG_FILE=path['join'](os[a0_0x1ca77b(0x17b)](),'.stickcode_license'),ALGO=a0_0x1ca77b(0x154);function getMachineId(){const _0x32797e=a0_0x1ca77b;return crypto[_0x32797e(0x17a)]('sha256')['update'](os['hostname']()+os['platform']()+os[_0x32797e(0x16f)]())[_0x32797e(0x18d)](_0x32797e(0x15c));}function verifyLicense(_0x49e0fd){const _0x1d6f42=a0_0x1ca77b;let _0x14abe4;if(typeof _0x49e0fd===_0x1d6f42(0x18c))try{_0x14abe4=JSON[_0x1d6f42(0x15f)](_0x49e0fd);}catch(_0x44a3fe){throw new Error('License\x20input\x20is\x20a\x20string\x20but\x20not\x20a\x20valid\x20JSON');}else _0x14abe4=_0x49e0fd;const {payload:_0x3bd262,signature:_0xa66167}=_0x14abe4;if(!_0x3bd262||!_0xa66167)throw new Error(_0x1d6f42(0x157));const _0x2f8c8f=crypto[_0x1d6f42(0x160)]('SHA256');_0x2f8c8f[_0x1d6f42(0x162)](_0x3bd262);if(!_0x2f8c8f[_0x1d6f42(0x170)](_x1122x,_0xa66167,_0x1d6f42(0x176)))throw new Error(_0x1d6f42(0x184));return JSON[_0x1d6f42(0x15f)](Buffer['from'](_0x3bd262,_0x1d6f42(0x176))[_0x1d6f42(0x187)]());}function loadRegistry(){const _0x1c8c82=a0_0x1ca77b;if(!fs['existsSync'](REG_FILE))return{'devices':[]};try{return JSON['parse'](fs[_0x1c8c82(0x181)](REG_FILE));}catch(_0x250bec){return{'devices':[]};}}function saveRegistry(_0x78f3bf){const _0x1a2c9c=a0_0x1ca77b;fs[_0x1a2c9c(0x188)](REG_FILE,JSON[_0x1a2c9c(0x164)](_0x78f3bf));}const StickCode={'VERSION':5.2,'key':null,'features':[],'init'(_0x388520){const _0x2124c9=a0_0x1ca77b,_0x59c6e8=verifyLicense(_0x388520),_0x27e845=getMachineId();let _0x33b77d=loadRegistry();if(!_0x33b77d[_0x2124c9(0x179)][_0x2124c9(0x153)](_0x27e845)){if(_0x33b77d[_0x2124c9(0x179)][_0x2124c9(0x155)]>=_0x59c6e8[_0x2124c9(0x18f)]){console[_0x2124c9(0x158)](_0x2124c9(0x186)),console['warn'](_0x2124c9(0x166)+_0x59c6e8[_0x2124c9(0x18f)]+_0x2124c9(0x171));throw new Error(_0x2124c9(0x163));}_0x33b77d[_0x2124c9(0x179)][_0x2124c9(0x174)](_0x27e845),saveRegistry(_0x33b77d);}(_0x33b77d['devices'][_0x2124c9(0x155)]>=0xa||_0x33b77d[_0x2124c9(0x179)][_0x2124c9(0x155)]===_0x59c6e8['maxDevices'])&&console['log'](_0x2124c9(0x18b)+_0x33b77d[_0x2124c9(0x179)][_0x2124c9(0x155)]+'/'+_0x59c6e8[_0x2124c9(0x18f)]),this[_0x2124c9(0x15d)]=_0x59c6e8[_0x2124c9(0x15d)]||[],this[_0x2124c9(0x156)]=crypto[_0x2124c9(0x17a)](_0x2124c9(0x159))[_0x2124c9(0x162)](_0x59c6e8['licenseId']+_0x2124c9(0x16c))[_0x2124c9(0x18d)]();},'_ensureInitialized'(){const _0x1aa8a1=a0_0x1ca77b;if(!this[_0x1aa8a1(0x156)])throw new Error(_0x1aa8a1(0x172));},'_mapToColors'(_0x1b1cf3){const _0x2d4ec3=a0_0x1ca77b,_0x50f1f0=zlib[_0x2d4ec3(0x183)](_0x1b1cf3,{'params':{[zlib['constants']['BROTLI_PARAM_QUALITY']]:0x6}}),_0x190c72=[];for(let _0x566907=0x0;_0x566907<_0x50f1f0[_0x2d4ec3(0x155)];_0x566907+=0x3){_0x190c72['push'](_0x50f1f0[_0x566907]||0x0),_0x190c72[_0x2d4ec3(0x174)](_0x50f1f0[_0x566907+0x1]||0x0),_0x190c72[_0x2d4ec3(0x174)](_0x50f1f0[_0x566907+0x2]||0x0);}return Buffer['from'](_0x190c72);},'_unmapFromColors'(_0x1aa75d){const _0x4274d3=a0_0x1ca77b;for(let _0x2fe9d6=_0x1aa75d[_0x4274d3(0x155)];_0x2fe9d6>0x0;_0x2fe9d6--){try{return zlib[_0x4274d3(0x169)](_0x1aa75d[_0x4274d3(0x180)](0x0,_0x2fe9d6));}catch(_0x50e5c0){}}throw new Error(_0x4274d3(0x168));},'encrypt'(_0x50d28c,_0x255025=0x2){const _0x10f27f=a0_0x1ca77b;this[_0x10f27f(0x185)]();const _0x3e660f=this[_0x10f27f(0x17c)](Buffer['from'](_0x50d28c)),_0x54c46c=crypto[_0x10f27f(0x17f)](0xc),_0x450c3b=crypto['createCipheriv'](ALGO,this[_0x10f27f(0x156)],_0x54c46c),_0x185b7c=Buffer[_0x10f27f(0x178)]([_0x450c3b[_0x10f27f(0x162)](_0x3e660f),_0x450c3b[_0x10f27f(0x15a)]()]),_0x24553c=_0x450c3b[_0x10f27f(0x173)](),_0x3bf601=crypto[_0x10f27f(0x17f)](_0x255025*0x2),_0x2d1758=crypto['randomBytes'](0x5);if(_0x255025===0x2)return Buffer[_0x10f27f(0x178)]([Buffer['from']([_0x255025]),_0x3bf601,_0x54c46c,_0x24553c,_0x185b7c]);else{if(_0x255025===0x3)return Buffer[_0x10f27f(0x178)]([Buffer['from']([_0x255025]),_0x54c46c,_0x2d1758,_0x185b7c,_0x24553c,_0x3bf601]);}throw new Error(_0x10f27f(0x18a)+_0x255025);},'decrypt'(_0x5aa7d3){const _0x3862af=a0_0x1ca77b;this['_ensureInitialized']();const _0x5d85c2=_0x5aa7d3[0x0];let _0x555519,_0x32808d,_0x21a705;switch(_0x5d85c2){case 0x2:{const _0x53c0be=_0x5d85c2*0x2,_0x2d451a=0x1+_0x53c0be;_0x555519=_0x5aa7d3[_0x3862af(0x180)](_0x2d451a,_0x2d451a+0xc),_0x32808d=_0x5aa7d3[_0x3862af(0x180)](_0x2d451a+0xc,_0x2d451a+0x1c),_0x21a705=_0x5aa7d3[_0x3862af(0x180)](_0x2d451a+0x1c);break;}case 0x3:{const _0x381406=_0x5d85c2*0x2,_0x49bb7f=0x1+0xc+0x5+0x10+_0x381406;if(_0x5aa7d3[_0x3862af(0x155)]<_0x49bb7f)throw new Error(_0x3862af(0x18e));_0x555519=_0x5aa7d3['slice'](0x1,0xd),_0x32808d=_0x5aa7d3[_0x3862af(0x180)](_0x5aa7d3[_0x3862af(0x155)]-0x10-_0x381406,_0x5aa7d3[_0x3862af(0x155)]-_0x381406),_0x21a705=_0x5aa7d3[_0x3862af(0x180)](0x12,_0x5aa7d3[_0x3862af(0x155)]-0x10-_0x381406);break;}default:throw new Error(_0x3862af(0x16d)+_0x5d85c2['toString'](0x10)['padStart'](0x2,'0'));}const _0x2a0dc3=crypto[_0x3862af(0x182)](ALGO,this[_0x3862af(0x156)],_0x555519);_0x2a0dc3[_0x3862af(0x191)](_0x32808d);const _0x1b2947=Buffer[_0x3862af(0x178)]([_0x2a0dc3[_0x3862af(0x162)](_0x21a705),_0x2a0dc3[_0x3862af(0x15a)]()]);return _0x5d85c2===0x2||_0x5d85c2===0x3?this[_0x3862af(0x165)](_0x1b2947)[_0x3862af(0x187)]():_0x1b2947[_0x3862af(0x187)]();},'resetDevices'(){saveRegistry({'devices':[]});}};module[a0_0x1ca77b(0x16e)]=StickCode;function a0_0x4192(_0x1ea63e,_0x2fe041){_0x1ea63e=_0x1ea63e-0x153;const _0x56cf25=a0_0x56cf();let _0x419211=_0x56cf25[_0x1ea63e];return _0x419211;}function a0_0x56cf(){const _0x15e666=['string','digest','Payload\x20too\x20short\x20for\x20V3\x20structure','maxDevices','259wwGfHj','setAuthTag','716864sELdty','includes','aes-256-gcm','length','key','Invalid\x20license\x20format:\x20missing\x20payload\x20or\x20signature','warn','sha256','final','11226aLqkQc','hex','features','5246932XPhrER','parse','createVerify','2284638pxKvKR','update','Device\x20limit\x20reached','stringify','_unmapFromColors','Current\x20license\x20allows\x20a\x20maximum\x20of\x20','3suEfrz','Failed\x20to\x20restore\x20data\x20from\x20color\x20map.','brotliDecompressSync','zlib','26876349ryATuz','STATIC_SALT_882','Unsupported\x20payload\x20version:\x200x','exports','arch','verify','\x20devices.','StickCode\x20Error:\x20Security\x20engine\x20not\x20initialized.\x20Please\x20call\x20.init(license)\x20first.','getAuthTag','push','path','base64','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bkpTd0NHw8SMK0HGAEj\x0ayJW9fK0/mBXTuyCDL4lkNMReu3tTGECZ5xuS96T5xKRk8ylHzVs+hlSEb4rjpDIS\x0avoYLC+fG3aB8YAz8NZ4jT3FXxa+gKo5IIwlEunt5ppi8PyQetUjtuqboxtKhlj8q\x0aME7D/Ro6BoSVvAdczDQj7JIdj390V3vT8K3/aPXJFl/j+AWwSMGAYLT1tlDwZR2V\x0aiaAfmbKa5PSFZ5Mg77YQ6jbKOplymmwUmFcpIzrY7U6DjRRwPwoBh+4wlDQ8Urid\x0a4kZB8IagfHj/ChRPgY/bBsBw+37krmhB0UUp4M1XezmyXvwKKF4ZK2XGDDrG0TkH\x0abQIDAQAB\x0a-----END\x20PUBLIC\x20KEY-----','concat','devices','createHash','homedir','_mapToColors','7858976NkFKTE','crypto','randomBytes','slice','readFileSync','createDecipheriv','brotliCompressSync','Invalid\x20license\x20signature','_ensureInitialized','\x0a[StickCode\x20Warning]\x20Device\x20limit\x20reached.','toString','writeFileSync','1670025cbzOek','Unsupported\x20encryption\x20version:\x20','[StickCode\x20Info]\x20Active\x20nodes:\x20'];a0_0x56cf=function(){return _0x15e666;};return a0_0x56cf();}
|
|
1
|
+
const a0_0x321c4a=a0_0x48a9;(function(_0x451cde,_0x353c1d){const _0x3d5b06=a0_0x48a9,_0x58e135=_0x451cde();while(!![]){try{const _0x1be662=parseInt(_0x3d5b06(0xb3))/0x1*(-parseInt(_0x3d5b06(0xde))/0x2)+parseInt(_0x3d5b06(0xd3))/0x3+parseInt(_0x3d5b06(0xa1))/0x4+-parseInt(_0x3d5b06(0xd8))/0x5+-parseInt(_0x3d5b06(0xbd))/0x6+-parseInt(_0x3d5b06(0x98))/0x7*(-parseInt(_0x3d5b06(0x97))/0x8)+parseInt(_0x3d5b06(0xc5))/0x9*(parseInt(_0x3d5b06(0x9e))/0xa);if(_0x1be662===_0x353c1d)break;else _0x58e135['push'](_0x58e135['shift']());}catch(_0x2e5857){_0x58e135['push'](_0x58e135['shift']());}}}(a0_0x145e,0xbcc3e));const crypto=require(a0_0x321c4a(0xcb)),zlib=require('zlib'),fs=require('fs'),os=require('os'),path=require(a0_0x321c4a(0x8e));function __checkIntegrity(){const _0x177b53=a0_0x321c4a,_0x56d97d=(function(){let _0x1c581c=!![];return function(_0x1e16b0,_0x2b99bc){const _0x59f421=_0x1c581c?function(){const _0x57eb25=a0_0x48a9;if(_0x2b99bc){const _0x55c41d=_0x2b99bc[_0x57eb25(0xcc)](_0x1e16b0,arguments);return _0x2b99bc=null,_0x55c41d;}}:function(){};return _0x1c581c=![],_0x59f421;};}()),_0x1415f6=_0x56d97d(this,function(){const _0x12e3b3=a0_0x48a9;return _0x1415f6[_0x12e3b3(0xcd)]()[_0x12e3b3(0xc9)](_0x12e3b3(0xc6))['toString']()[_0x12e3b3(0xdf)](_0x1415f6)[_0x12e3b3(0xc9)](_0x12e3b3(0xc6));});_0x1415f6();const _0x2316ff=(function(){let _0x207e3c=!![];return function(_0xda59e7,_0x145d0c){const _0x4d8289=_0x207e3c?function(){const _0xb34200=a0_0x48a9;if(_0x145d0c){const _0x88c40d=_0x145d0c[_0xb34200(0xcc)](_0xda59e7,arguments);return _0x145d0c=null,_0x88c40d;}}:function(){};return _0x207e3c=![],_0x4d8289;};}());(function(){_0x2316ff(this,function(){const _0x2cfb7e=a0_0x48a9,_0x35cedc=new RegExp(_0x2cfb7e(0x90)),_0x217f43=new RegExp(_0x2cfb7e(0xb4),'i'),_0x315e02=_0x3a4dfc(_0x2cfb7e(0xb0));!_0x35cedc['test'](_0x315e02+_0x2cfb7e(0xae))||!_0x217f43[_0x2cfb7e(0x99)](_0x315e02+'input')?_0x315e02('0'):_0x3a4dfc();})();}());try{const _0x4f6feb=fs[_0x177b53(0xb1)](__filename,_0x177b53(0xbf))['trim']();if(!/\/\/[a-f0-9]{64}$/[_0x177b53(0x99)](_0x4f6feb))return;const _0x18c9cb=_0x4f6feb[_0x177b53(0xd5)](0x0,-0x42)[_0x177b53(0xc8)](),_0x49f237=_0x4f6feb['slice'](-0x40),_0x22d835=crypto[_0x177b53(0xcf)](_0x177b53(0x95))['update'](_0x18c9cb)[_0x177b53(0xdb)]('hex');_0x22d835!==_0x49f237&&process[_0x177b53(0xd0)](0x1);}catch(_0x3574de){process[_0x177b53(0xd0)](0x1);}}__checkIntegrity();const PUBLIC_KEY=a0_0x321c4a(0xe2),REG_FILE=path[a0_0x321c4a(0xbb)](os[a0_0x321c4a(0xa0)](),a0_0x321c4a(0xaa)),ALGO='aes-256-gcm';function a0_0x145e(){const _0x340bb0=['BROTLI_PARAM_QUALITY','join','existsSync','5631330GNAQpt','constants','utf8','final','from','Invalid\x20license\x20format:\x20missing\x20payload\x20or\x20signature','\x0a[StickCode\x20Warning]\x20Device\x20limit\x20reached.','update','3288087TPPnAe','(((.+)+)+)+$','arch','trim','search','includes','crypto','apply','toString','devices','createHash','exit','brotliDecompressSync','parse','3715458fenTNq','Payload\x20too\x20short\x20for\x20V3\x20structure','slice','Invalid\x20license\x20signature','base64','4075720nfHedZ','push','gger','digest','features','call','2OOCruX','constructor','key','getAuthTag','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5bkpTd0NHw8SMK0HGAEj\x0ayJW9fK0/mBXTuyCDL4lkNMReu3tTGECZ5xuS96T5xKRk8ylHzVs+hlSEb4rjpDIS\x0avoYLC+fG3aB8YAz8NZ4jT3FXxa+gKo5IIwlEunt5ppi8PyQetUjtuqboxtKhlj8q\x0aME7D/Ro6BoSVvAdczDQj7JIdj390V3vT8K3/aPXJFl/j+AWwSMGAYLT1tlDwZR2V\x0aiaAfmbKa5PSFZ5Mg77YQ6jbKOplymmwUmFcpIzrY7U6DjRRwPwoBh+4wlDQ8Urid\x0a4kZB8IagfHj/ChRPgY/bBsBw+37krmhB0UUp4M1XezmyXvwKKF4ZK2XGDDrG0TkH\x0abQIDAQAB\x0a-----END\x20PUBLIC\x20KEY-----','randomBytes','path','Current\x20license\x20allows\x20a\x20maximum\x20of\x20','function\x20*\x5c(\x20*\x5c)','createCipheriv','createDecipheriv','verify','stringify','sha256','platform','24LTUjEH','1330077QamoOn','test','Unsupported\x20encryption\x20version:\x20','concat','warn','[StickCode\x20Info]\x20Active\x20nodes:\x20','10xnNrqb','Device\x20limit\x20reached','homedir','3626440TTcesI','Failed\x20to\x20restore\x20data\x20from\x20color\x20map.','length','string','stateObject','counter','_unmapFromColors','licenseId','createVerify','.stickcode_license','writeFileSync','hex','maxDevices','chain','\x20devices.','init','readFileSync','StickCode\x20Error:\x20Security\x20engine\x20not\x20initialized.\x20Please\x20call\x20.init(license)\x20first.','553591jQtUGL','\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','_mapToColors','debu','action','License\x20input\x20is\x20a\x20string\x20but\x20not\x20a\x20valid\x20JSON','while\x20(true)\x20{}'];a0_0x145e=function(){return _0x340bb0;};return a0_0x145e();}function getMachineId(){const _0x10ca84=a0_0x321c4a;return crypto[_0x10ca84(0xcf)](_0x10ca84(0x95))['update'](os['hostname']()+os[_0x10ca84(0x96)]()+os[_0x10ca84(0xc7)]())[_0x10ca84(0xdb)](_0x10ca84(0xac));}function verifyLicense(_0x5bcedc){const _0x43859e=a0_0x321c4a;let _0x5708a8;if(typeof _0x5bcedc==='string')try{_0x5708a8=JSON[_0x43859e(0xd2)](_0x5bcedc);}catch(_0x2595ff){throw new Error(_0x43859e(0xb8));}else _0x5708a8=_0x5bcedc;const {payload:_0x2b0c77,signature:_0x35e652}=_0x5708a8;if(!_0x2b0c77||!_0x35e652)throw new Error(_0x43859e(0xc2));const _0x54b442=crypto[_0x43859e(0xa9)]('SHA256');_0x54b442['update'](_0x2b0c77);if(!_0x54b442[_0x43859e(0x93)](PUBLIC_KEY,_0x35e652,'base64'))throw new Error(_0x43859e(0xd6));return JSON[_0x43859e(0xd2)](Buffer[_0x43859e(0xc1)](_0x2b0c77,_0x43859e(0xd7))[_0x43859e(0xcd)]());}function loadRegistry(){const _0x193d8a=a0_0x321c4a;if(!fs[_0x193d8a(0xbc)](REG_FILE))return{'devices':[]};try{return JSON[_0x193d8a(0xd2)](fs[_0x193d8a(0xb1)](REG_FILE));}catch(_0x2ed1ab){return{'devices':[]};}}function a0_0x48a9(_0x45e963,_0x3f5523){_0x45e963=_0x45e963-0x8e;const _0x327b50=a0_0x145e();let _0x3a4dfc=_0x327b50[_0x45e963];return _0x3a4dfc;}function saveRegistry(_0x1f0652){const _0x4cf788=a0_0x321c4a;fs[_0x4cf788(0xab)](REG_FILE,JSON[_0x4cf788(0x94)](_0x1f0652));}const StickCode={'VERSION':5.2,'key':null,'features':[],'init'(_0x311d4b){const _0x701d16=a0_0x321c4a,_0x15f76b=verifyLicense(_0x311d4b),_0x1b0c4f=getMachineId();let _0x23d165=loadRegistry();if(!_0x23d165[_0x701d16(0xce)][_0x701d16(0xca)](_0x1b0c4f)){if(_0x23d165[_0x701d16(0xce)][_0x701d16(0xa3)]>=_0x15f76b[_0x701d16(0xad)]){console[_0x701d16(0x9c)](_0x701d16(0xc3)),console[_0x701d16(0x9c)](_0x701d16(0x8f)+_0x15f76b[_0x701d16(0xad)]+_0x701d16(0xaf));throw new Error(_0x701d16(0x9f));}_0x23d165[_0x701d16(0xce)][_0x701d16(0xd9)](_0x1b0c4f),saveRegistry(_0x23d165);}(_0x23d165[_0x701d16(0xce)][_0x701d16(0xa3)]>=0xa||_0x23d165[_0x701d16(0xce)][_0x701d16(0xa3)]===_0x15f76b['maxDevices'])&&console['log'](_0x701d16(0x9d)+_0x23d165['devices'][_0x701d16(0xa3)]+'/'+_0x15f76b[_0x701d16(0xad)]),this['features']=_0x15f76b[_0x701d16(0xdc)]||[],this[_0x701d16(0xe0)]=crypto['createHash'](_0x701d16(0x95))[_0x701d16(0xc4)](_0x15f76b[_0x701d16(0xa8)]+'STATIC_SALT_882')['digest']();},'_ensureInitialized'(){const _0x473598=a0_0x321c4a;if(!this[_0x473598(0xe0)])throw new Error(_0x473598(0xb2));},'_mapToColors'(_0x28d9a0){const _0x1286e0=a0_0x321c4a,_0x3eb83a=zlib['brotliCompressSync'](_0x28d9a0,{'params':{[zlib[_0x1286e0(0xbe)][_0x1286e0(0xba)]]:0x6}}),_0x334a30=[];for(let _0x5a2d45=0x0;_0x5a2d45<_0x3eb83a[_0x1286e0(0xa3)];_0x5a2d45+=0x3){_0x334a30[_0x1286e0(0xd9)](_0x3eb83a[_0x5a2d45]||0x0),_0x334a30[_0x1286e0(0xd9)](_0x3eb83a[_0x5a2d45+0x1]||0x0),_0x334a30['push'](_0x3eb83a[_0x5a2d45+0x2]||0x0);}return Buffer[_0x1286e0(0xc1)](_0x334a30);},'_unmapFromColors'(_0x3ccc1e){const _0x5c6c34=a0_0x321c4a;for(let _0x4bf3a7=_0x3ccc1e[_0x5c6c34(0xa3)];_0x4bf3a7>0x0;_0x4bf3a7--){try{return zlib[_0x5c6c34(0xd1)](_0x3ccc1e[_0x5c6c34(0xd5)](0x0,_0x4bf3a7));}catch(_0x4d18a4){}}throw new Error(_0x5c6c34(0xa2));},'encrypt'(_0x4b6f97,_0x5423b2=0x2){const _0x24f034=a0_0x321c4a;this['_ensureInitialized']();const _0x3ef0de=this[_0x24f034(0xb5)](Buffer[_0x24f034(0xc1)](_0x4b6f97)),_0x4348f1=crypto['randomBytes'](0xc),_0x2730b7=crypto[_0x24f034(0x91)](ALGO,this[_0x24f034(0xe0)],_0x4348f1),_0x3dc5a8=Buffer[_0x24f034(0x9b)]([_0x2730b7[_0x24f034(0xc4)](_0x3ef0de),_0x2730b7[_0x24f034(0xc0)]()]),_0x1fb21a=_0x2730b7[_0x24f034(0xe1)](),_0x5e8aeb=crypto['randomBytes'](_0x5423b2*0x2),_0x4d157e=crypto[_0x24f034(0xe3)](0x5);if(_0x5423b2===0x2)return Buffer['concat']([Buffer[_0x24f034(0xc1)]([_0x5423b2]),_0x5e8aeb,_0x4348f1,_0x1fb21a,_0x3dc5a8]);else{if(_0x5423b2===0x3)return Buffer[_0x24f034(0x9b)]([Buffer['from']([_0x5423b2]),_0x4348f1,_0x4d157e,_0x3dc5a8,_0x1fb21a,_0x5e8aeb]);else{if(_0x5423b2===0x4){}}}throw new Error(_0x24f034(0x9a)+_0x5423b2);},'decrypt'(_0x5845c5){const _0x45ffa0=a0_0x321c4a;this['_ensureInitialized']();const _0x37197e=_0x5845c5[0x0];let _0x514f2f,_0x54bfd1,_0x26460b;switch(_0x37197e){case 0x2:{const _0x3ff5bf=_0x37197e*0x2,_0x1dfc78=0x1+_0x3ff5bf;_0x514f2f=_0x5845c5[_0x45ffa0(0xd5)](_0x1dfc78,_0x1dfc78+0xc),_0x54bfd1=_0x5845c5[_0x45ffa0(0xd5)](_0x1dfc78+0xc,_0x1dfc78+0x1c),_0x26460b=_0x5845c5[_0x45ffa0(0xd5)](_0x1dfc78+0x1c);break;}case 0x3:{const _0x392f85=_0x37197e*0x2,_0x16de77=0x1+0xc+0x5+0x10+_0x392f85;if(_0x5845c5[_0x45ffa0(0xa3)]<_0x16de77)throw new Error(_0x45ffa0(0xd4));_0x514f2f=_0x5845c5[_0x45ffa0(0xd5)](0x1,0xd),_0x54bfd1=_0x5845c5['slice'](_0x5845c5['length']-0x10-_0x392f85,_0x5845c5[_0x45ffa0(0xa3)]-_0x392f85),_0x26460b=_0x5845c5[_0x45ffa0(0xd5)](0x12,_0x5845c5[_0x45ffa0(0xa3)]-0x10-_0x392f85);break;}case 0x4:{}default:throw new Error('Unsupported\x20payload\x20version:\x200x'+_0x37197e[_0x45ffa0(0xcd)](0x10)['padStart'](0x2,'0'));}const _0x32c2fa=crypto[_0x45ffa0(0x92)](ALGO,this['key'],_0x514f2f);_0x32c2fa['setAuthTag'](_0x54bfd1);const _0x257f99=Buffer[_0x45ffa0(0x9b)]([_0x32c2fa[_0x45ffa0(0xc4)](_0x26460b),_0x32c2fa['final']()]);return _0x37197e===0x2||_0x37197e===0x3?this[_0x45ffa0(0xa7)](_0x257f99)[_0x45ffa0(0xcd)]():_0x257f99[_0x45ffa0(0xcd)]();},'resetDevices'(){saveRegistry({'devices':[]});}};module['exports']=StickCode;function _0x3a4dfc(_0x57a85c){function _0x1481d9(_0x231a4c){const _0x2ade4e=a0_0x48a9;if(typeof _0x231a4c===_0x2ade4e(0xa4))return function(_0x668a54){}[_0x2ade4e(0xdf)](_0x2ade4e(0xb9))[_0x2ade4e(0xcc)](_0x2ade4e(0xa6));else(''+_0x231a4c/_0x231a4c)[_0x2ade4e(0xa3)]!==0x1||_0x231a4c%0x14===0x0?function(){return!![];}['constructor'](_0x2ade4e(0xb6)+'gger')[_0x2ade4e(0xdd)](_0x2ade4e(0xb7)):function(){return![];}['constructor']('debu'+_0x2ade4e(0xda))['apply'](_0x2ade4e(0xa5));_0x1481d9(++_0x231a4c);}try{if(_0x57a85c)return _0x1481d9;else _0x1481d9(0x0);}catch(_0x471c1d){}}//2147a5ef99cf9eeb9f2c34f4cad2bda3676d94821fb3bfbf738cc1a7c20452fb
|