MCPcopy
hub / github.com/javascript-obfuscator/javascript-obfuscator / a0b

Function a0b

examples/javascript-obfuscator.js:27757–27826  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

27755 e(++b);
27756}(a0a, 0x1f2));
27757const a0b = function (a, b) {
27758 a = a - 0x0;
27759 let c = a0a[a];
27760 if (a0b['oOjGKp'] === undefined) {
27761 (function () {
27762 const f = function () {
27763 let i;
27764 try {
27765 i = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');')();
27766 } catch (j) {
27767 i = window;
27768 }
27769 return i;
27770 };
27771 const g = f();
27772 const h = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
27773 g['atob'] || (g['atob'] = function (i) {
27774 const j = String(i)['replace'](/=+$/, '');
27775 let k = '';
27776 for (let l = 0x0, m, n, o = 0x0; n = j['charAt'](o++); ~n && (m = l % 0x4 ? m * 0x40 + n : n, l++ % 0x4) ? k += String['fromCharCode'](0xff & m >> (-0x2 * l & 0x6)) : 0x0) {
27777 n = h['indexOf'](n);
27778 }
27779 return k;
27780 });
27781 }());
27782 const e = function (f, g) {
27783 let h = [], l = 0x0, m, n = '', o = '';
27784 f = atob(f);
27785 for (let q = 0x0, r = f['length']; q < r; q++) {
27786 o += '%' + ('00' + f['charCodeAt'](q)['toString'](0x10))['slice'](-0x2);
27787 }
27788 f = decodeURIComponent(o);
27789 let p;
27790 for (p = 0x0; p < 0x100; p++) {
27791 h[p] = p;
27792 }
27793 for (p = 0x0; p < 0x100; p++) {
27794 l = (l + h[p] + g['charCodeAt'](p % g['length'])) % 0x100;
27795 m = h[p];
27796 h[p] = h[l];
27797 h[l] = m;
27798 }
27799 p = 0x0;
27800 l = 0x0;
27801 for (let t = 0x0; t < f['length']; t++) {
27802 p = (p + 0x1) % 0x100;
27803 l = (l + h[p]) % 0x100;
27804 m = h[p];
27805 h[p] = h[l];
27806 h[l] = m;
27807 n += String['fromCharCode'](f['charCodeAt'](t) ^ h[(h[p] + h[l]) % 0x100]);
27808 }
27809 return n;
27810 };
27811 a0b['vqowNY'] = e;
27812 a0b['YKLmJR'] = {};
27813 a0b['oOjGKp'] = !![];
27814 }

Callers 15

gFunction · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected