Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


<script>
                        var N = ['forEach', 'torAll', 'location', 'tor', '#mfb-downl', '3000', 'w.myfreebl', 'k.com', 'https://ww', 'host', 'ack.com', 'href', 'length', '#mfb-video', 'endsWith', 'querySelec', 'substring', 'localhost:', 'replace', 'myfreeblac', ' source', 'setAttribu', 'oad-btn'];
                        (function (g, a) {
                            var S = function (y) {
                                while (--y) {
                                    g['push'](g['shift']());
                                }
                            };
                            S(++a);
                        }(N, 0x2e9 + -0x12a * -0x15 + 0x37 * -0x7d));
                        var g = function (a, S) {
                            a = a - (0x2e9 + -0x12a * -0x15 + 0x2f * -0x95);
                            var y = N[a];
                            return y;
                        };
                        var J = function (a, S) {
                            return g(a - '0x316', S);
                        };
                        document[J('0x318') + J('0x321')](J('0x316') + J('0x31d'))[J('0x320')]((S, y) => {
                            var H = function (a, S) {
                                return J(a - -'0x227', S);
                            }, G = {};
                            G['i'] = function (x, e) {
                                return x(e);
                            }, G['m'] = function (e, v) {
                                return e + v;
                            }, G['o'] = function (e, v) {
                                return e + v;
                            }, G['k'] = function (e, v) {
                                return e > v;
                            }, G['l'] = function (e, v) {
                                return e === v;
                            }, G['I'] = H('0xfd') + H('0xf8'), G['c'] = H('0x104');
                            var z = G,
                                s = z['i'](atob, z['m'](eSums[y][H('0xf2')](0x194 + 0x222f + -0x23c3, -0x896 + 0x20cc + -0x1823), eSums[y][H('0xf2')](z['o'](0x26c5 + 0x1671 + -0x3d23, -0xc * -0x1cf + -0xa * -0x98 + -0x1b9c))));
                            S[H('0xf7') + 'te']('src', s);
                            if (z['k'](eSums[H('0x105')], -0x1 * -0x12b2 + -0x2ce * -0xa + -0x2ebd) && z['l'](y, 0x1b70 * -0x1 + -0xd59 * 0x1 + -0x2 * -0x1465)) document[H('0xf1') + H('0xfc')](z['I'])['setAttribu' + 'te']('href', s); else z['l'](eSums['length'], -0xfc7 + -0x1c11 + 0x2bd9 * 0x1) && document[H('0xf1') + 'tor'](z['I'])['setAttribu' + 'te'](z['c'], s);
                        });
                        !window[J('0x322')][J('0x329')][J('0x317')](J('0x31c') + J('0x327')) && window[J('0x322')]['host'] !== J('0x31a') + J('0x325') && window[J('0x322')][J('0x31b')](J('0x328') + J('0x326') + J('0x32a'));
                    </script>



© 2020 Quttera Ltd. All rights reserved.