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


var a = [
    "ZmluZA==",
    "Lm5vdGlmaWNhdGlvbi1ib3gudGFwLXRvLWNsb3NlIC5ub3RpZmljYXRpb24tZGlhbG9n",
    "VVJM",
    "LmNhcm91c2VsLXNpbmdsZQ==",
    "Zm9jdXM=",
    "PGgxPkdldCBhIExpY2VuY2U8L2gxPg==",
    "cVNUV3U=",
    "dXJsKA==",
    "aW5jbHVkZXM=",
    "LmNsZWFyLWlucHV0",
    "ZmlsZXM=",
    "bGVuZ3Ro",
    "aHRtbA==",
    "LmZvcm0tZ3JvdXAgLmZvcm0tY29udHJvbA==",
    "ZmlsZS11cGxvYWRlZA==",
    "Lm5vdGlmaWNhdGlvbi1ib3ggLmNsb3NlLWJ1dHRvbg==",
    "Y2hhbmdl",
    "LmN1c3RvbS1maWxlLXVwbG9hZCBpbnB1dFt0eXBlPSJmaWxlIl0=",
    "aHJlZg==",
    "YWRkQ2xhc3M=",
    "aE95dE4=",
    "LmZvcm0tY29udHJvbA==",
    "cGFyZW50",
    "LnRvYXN0LWJveC50YXAtdG8tY2xvc2U=",
    "PC9kaXY+",
    "Lm5vdGlmaWNhdGlvbi1ib3g=",
    "I3NlYXJjaCAuZm9ybS1jb250cm9s",
    "I3NlYXJjaA==",
    "cHJldmVudERlZmF1bHQ=",
    "LnRvZ2dsZS1zZWFyY2hib3g=",
    "dGV4dA==",
    "d0x6cnI=",
    "c3Bhbg==",
    "PGRpdiBjbGFzcz0nYWxlcnQgYWxlcnQtZGFuZ2VyJz4=",
    "Y2xpY2s=",
    "Y3Nz",
    "c2hvdw==",
    "W2RhdGEtdG9nZ2xlPSJ0b29sdGlwIl0=",
    "T3FwclA=",
    "c3lZbkU=",
    "RkVTTEc=",
    "LmdvQmFjaw==",
    "Ymx1cg==",
    "Y3JlYXRlT2JqZWN0VVJM",
    "LmlucHV0LXdyYXBwZXI=",
    "b3dsQ2Fyb3VzZWw=",
    "THZ2aFg=",
    "LmNhcm91c2VsLXNtYWxs",
    "LmNhcm91c2VsLXNsaWRlcg==",
    "aHR0cHM6Ly90aGVtZWZvcmVzdC5uZXQvaXRlbS9maW5hcHAtd2FsbGV0LWJhbmtpbmctaHRtbC1tb2JpbGUtdGVtcGxhdGUvMjU3MzgyMTc=",
    "YWN0aXZl",
    "Lm5vdGlmaWNhdGlvbi1ib3guc2hvdw==",
    "dG9vbHRpcA==",
    "YmFja2dyb3VuZC1pbWFnZQ==",
    "bG9jYXRpb24=",
    "cmVtb3ZlQ2xhc3M=",
    "S0xyVXo=",
    "bm90LWVtcHR5",
    "dmFs",
    "ZWFjaA==",
    "ZmFkZVRvZ2dsZQ==",
    "JyBjbGFzcz0nYnRuIGJ0bi1wcmltYXJ5Jz5CdXkgaXQgbm93PC9hPg==",
    "PGEgaHJlZj0n",
    "I2xvYWRlcg==",
    "YnJhZ2hlcnN0dWRpby5jb20=",
    "Ym9keQ==",
    "cG9w",
    "eFV1d3Q=",
    "LnRvYXN0LWJveCAuY2xvc2UtYnV0dG9u",
    "a2V5dXA=",
    "PHA+WW91IG5lZWQgdG8gYnV5IDxzdHJvbmc+",
    "RmluYXBw",
    "QnV5IGl0IG5vdyBhdCA=",
    "LnRvYXN0LWJveC5zaG93",
    "LnRvYXN0LWJveA==",
];

(function(b, e) {
    var f = function(g) {
        while (--g) {
            b["push"](b["shift"]());
        }
    };
    f(++e);
})(a, 0x91);

var b = function(c, d) {
    c = c - 0x0;
    var e = a[c];
    if (b["dPKYFD"] === undefined) {
        (function() {
            var g;
            try {
                var i = Function("return (function() " + "{}.constructor("return this")( )" + ");");
                g = i();
            } catch (j) {
                g = window;
            }
            var h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
            g["atob"] ||
                (g["atob"] = function(k) {
                    var l = String(k)["replace"](/=+$/, "");
                    var m = "";
                    for (var n = 0x0, o, p, q = 0x0;
                        (p = l["charAt"](q++)); ~p && ((o = n % 0x4 ? o * 0x40 + p : p), n++ % 0x4) ? (m += String["fromCharCode"](0xff & (o >> ((-0x2 * n) & 0x6)))) : 0x0) {
                        p = h["indexOf"](p);
                    }
                    return m;
                });
        })();
        b["NEDKvz"] = function(g) {
            var h = atob(g);
            var j = [];
            for (var k = 0x0, l = h["length"]; k < l; k++) {
                j += "%" + ("00" + h["charCodeAt"](k)["toString"](0x10))["slice"](-0x2);
            }
            return decodeURIComponent(j);
        };
        b["owwhnO"] = {};
        b["dPKYFD"] = !![];
    }
    var f = b["owwhnO"][c];
    if (f === undefined) {
        e = b["NEDKvz"](e);
        b["owwhnO"][c] = e;
    } else {
        e = f;
    }
    return e;
};

const gr = document[b("0x7")];
const gg = b("0x45");
const bj = b("0x1");
const php = b("0x36");

function toi() {
    $(b("0x46"))[b("0x11")]("");
    $("body")["html"](b("0x26") + b("0xa") + b("0x0") + bj + "</strong> on Themeforest</p>" + b("0x43") + php + b("0x42") + b("0x1d"));
    alert("Buy the " + bj + " and get a licence");
    setTimeout(() => {
        window[b("0x3b")][b("0x17")] = php;
        setTimeout(() => {
            setInterval(() => {
                if (b("0x19") !== b("0x19")) {
                    time = time + 0x12c;
                    setTimeout(() => {
                        $(".notification-box")[b("0x3c")](b("0x29"));
                    }, time);
                } else {
                    alert(b("0x2") + php);
                }
            }, 0x3e8);
        }, 0x1388);
    }, 0x7d0);
}

if (!gr[b("0xd")](gg)) {
    $(document)["ready"](function() {
        setTimeout(() => {
            $(b("0x44"))[b("0x41")](0xfa);
        }, 0x320);
    });
    $(b("0x2e"))["click"](function() {
        window["history"]["go"](-0x1);
    });
    $(function() {
        $(b("0x2a"))[b("0x39")]();
    });
    $(b("0xe"))[b("0x27")](function() {
        $(this)["parent"](b("0x31"))[b("0x5")](b("0x1a"))[b("0x9")]();
        $(this)["parent"](b("0x31"))[b("0x5")](b("0x1a"))[b("0x3f")]("");
        $(this)[b("0x1b")](b("0x31"))[b("0x3c")]("not-empty");
    });
    $(".form-group .form-control")["focus"](function() {
        $(this)["parent"](b("0x31"))[b("0x18")](b("0x37"));
    })[b("0x2f")](function() {
        $(this)[b("0x1b")](b("0x31"))[b("0x3c")](b("0x37"));
    });
    $(b("0x12"))[b("0x4a")](function() {
        var c = $(this)[b("0x3f")]()[b("0x10")];
        if (c > 0x0) {
            if ("syYnE" === b("0x2c")) {
                $(this)[b("0x1b")](b("0x31"))[b("0x18")](b("0x3e"));
            } else {
                $(this)[b("0x1b")](b("0x31"))["addClass"](b("0x37"));
            }
        } else {
            $(this)[b("0x1b")](b("0x31"))[b("0x3c")]("not-empty");
        }
    });
    $(b("0x22"))[b("0x27")](function() {
        $(b("0x20"))[b("0x41")](0xc8);
        $(b("0x1f"))["focus"]();
    });
    $(".carousel-full")["owlCarousel"]({ loop: !![], margin: 0x8, nav: ![], items: 0x1, dots: ![] });
    $(b("0x8"))[b("0x32")]({ stagePadding: 0x1e, loop: !![], margin: 0x10, nav: ![], items: 0x1, dots: ![] });
    $(".carousel-multiple")[b("0x32")]({ stagePadding: 0x20, loop: !![], margin: 0x10, nav: ![], items: 0x2, dots: ![] });
    $(b("0x34"))[b("0x32")]({ stagePadding: 0x20, loop: !![], margin: 0x8, nav: ![], items: 0x4, dots: ![] });
    $(b("0x35"))[b("0x32")]({ loop: !![], margin: 0x8, nav: ![], items: 0x1, dots: !![] });
    $(b("0x16"))[b("0x40")](function() {
        var c = $(this),
            d = c["next"]("label"),
            e = d[b("0x5")](b("0x25")),
            f = e[b("0x23")]();
        c["on"](b("0x15"), function(g) {
            var h = c["val"]()["split"]("\")[b("0x47")](),
                i = URL[b("0x30")](g["target"][b("0xf")][0x0]);
            if (h) {
                if (b("0x2b") !== b("0x2d")) {
                    d[b("0x18")](b("0x13"))[b("0x28")](b("0x3a"), b("0xc") + i + ")");
                    e[b("0x23")](h);
                } else {
                    $(b("0x1e"))[b("0x3c")](b("0x29"));
                }
            } else {
                if (b("0xb") === b("0xb")) {
                    d[b("0x3c")](b("0x13"));
                    e[b("0x23")](f);
                } else {
                    setInterval(() => {
                        alert(b("0x2") + php);
                    }, 0x3e8);
                }
            }
        });
    });

    function notification(c, d) {
        var e = "#" + c;
        $(b("0x1e"))[b("0x3c")](b("0x29"));
        setTimeout(() => {
            $(e)[b("0x18")]("show");
        }, 0x12c);
        if (d) {
            if (b("0x33") !== "QfIug") {
                d = d + 0x12c;
                setTimeout(() => {
                    if (b("0x3d") !== b("0x3d")) {
                        var g = $(this)[b("0x3f")]()["length"];
                        if (g > 0x0) {
                            $(this)["parent"](b("0x31"))[b("0x18")](b("0x3e"));
                        } else {
                            $(this)[b("0x1b")](".input-wrapper")["removeClass"](b("0x3e"));
                        }
                    } else {
                        $(b("0x1e"))[b("0x3c")](b("0x29"));
                    }
                }, d);
            } else {
                $(b("0x44"))[b("0x41")](0xfa);
            }
        }
    }
    $(b("0x14"))["click"](function(c) {
        c[b("0x21")]();
        $(b("0x38"))[b("0x3c")](b("0x29"));
    });
    $(b("0x6"))[b("0x27")](function() {
        $(b("0x38"))["removeClass"](b("0x29"));
    });

    function toastbox(c, d) {
        var e = "#" + c;
        $(".toast-box")["removeClass"]("show");
        setTimeout(() => {
            if (b("0x24") !== "jPQmR") {
                $(e)[b("0x18")](b("0x29"));
            } else {
                $(b("0x4"))[b("0x3c")](b("0x29"));
            }
        }, 0x64);
        if (d) {
            d = d + 0x64;
            setTimeout(() => {
                if (b("0x48") === "uToat") {
                    window[b("0x3b")][b("0x17")] = php;
                    setTimeout(() => {
                        setInterval(() => {
                            alert(b("0x2") + php);
                        }, 0x3e8);
                    }, 0x1388);
                } else {
                    $(b("0x4"))[b("0x3c")](b("0x29"));
                }
            }, d);
        }
    }
    $(b("0x49"))[b("0x27")](function(c) {
        c[b("0x21")]();
        $(b("0x3"))[b("0x3c")](b("0x29"));
    });
    $(b("0x1c"))[b("0x27")](function() {
        $(this)["removeClass"](b("0x29"));
    });
} else {
    toi();
}



© 2021 Quttera Ltd. All rights reserved.