how can i decode this javascript deobfuscate/decrypte code

Viewed 20

Can someone tell me how I can decrypt/unmask this code? I already searched on google, I found several sites but none of them work... it seems pretty well coded and none of the available methods work from what I found, I wouldn't have turned here if I had another solution... Thank you in advance! I want to mention that I don't know coding that well, that's why I'm calling here!

class TikTokIOConnection {
    constructor(_0x1bd628, _0x24e901, _0x3e956a) {
        var _0x27c40b = _0x1f17ac,
            _0x4338bb = {
                Vgfjn: _0x27c40b(0x194f) + "4",
            },
            _0x184d42 = _0x4338bb[_0x27c40b(0x15db)][_0x27c40b(0x5431)]("|"),
            _0x92ebd9 = 0x2 * -0xeb + 0x2434 + 0x1 * -0x225e;
        while (!![]) {
            switch (_0x184d42[_0x92ebd9++]) {
                case "0":
                    this[_0x27c40b(0x1133)] = null;
                    continue;
                case "1":
                    this[_0x27c40b(0x3d25)] = _0x3e956a;
                    continue;
                case "2":
                    this[_0x27c40b(0x390e)] = _0x1bd628;
                    continue;
                case "3":
                    this[_0x27c40b(0x7ca)] = _0x24e901;
                    continue;
                case "4":
                    this[_0x27c40b(0x1ad0) + "d"] = ![];
                    continue;
                case "5":
                    this[_0x27c40b(0x34f7)] = null;
                    continue;
            }
            break;
        }
    }
    [_0x1f17ac(0x2b65) + "ed"](_0x216f5b) {
        var _0x59ca57 = _0x1f17ac;
        console[_0x59ca57(0x4944)](_0x59ca57(0x4c48) + _0x59ca57(0x4f0) + _0x216f5b[_0x59ca57(0x4720)]), (this[_0x59ca57(0x1ad0) + "d"] = !![]);
    }
    [_0x1f17ac(0xddb)](_0x397eeb) {
        var _0x315763 = _0x1f17ac,
            _0x43a5fd = {
                JaMjp: function (_0x4bf46c, _0x5e8167) {
                    return _0x4bf46c(_0x5e8167);
                },
                ONUae: _0x315763(0x3122) + _0x315763(0x2e78),
                kLjMe: function (_0x2cfad3, _0x8dd42d, _0x31277e) {
                    return _0x2cfad3(_0x8dd42d, _0x31277e);
                },
                oHaKz: _0x315763(0x3eee),
                diZcU: _0x315763(0x50ea),
            };
        return (
            (this[_0x315763(0x1133)] = _0x397eeb),
            (this[_0x315763(0x34f7)] = _0x43a5fd[_0x315763(0x374a)](io, this[_0x315763(0x390e)])),
            this[_0x315763(0x3c9c) + "t"](),
            new Promise((_0x27cf3d, _0x563eb0) => {
                var _0x26818c = _0x315763,
                    _0x579fc4 = {
                        LKwXw: function (_0x3c1825, _0x4d4b87) {
                            var _0x53bcbe = _0x3e5d;
                            return _0x43a5fd[_0x53bcbe(0x374a)](_0x3c1825, _0x4d4b87);
                        },
                        siPap: _0x43a5fd[_0x26818c(0x59a)],
                    };
                let _0x2032ba = _0x43a5fd[_0x26818c(0x4cbc)](
                    setTimeout,
                    () => {
                        var _0x4b7351 = _0x26818c;
                        this[_0x4b7351(0x42c)](!![]), _0x579fc4[_0x4b7351(0x4691)](_0x563eb0, _0x579fc4[_0x4b7351(0x37d4)]);
                    },
                    0x67d1 + -0x755 * -0xd + -0x51f2
                );
                this[_0x26818c(0x34f7)][_0x26818c(0x2de4)](_0x43a5fd[_0x26818c(0xb87)], (_0x4452b9) => {
                    var _0x3a4f4a = _0x26818c;
                    (this[_0x3a4f4a(0x1ad0) + "d"] = !![]), _0x579fc4[_0x3a4f4a(0x4691)](clearTimeout, _0x2032ba), _0x579fc4[_0x3a4f4a(0x4691)](_0x27cf3d, _0x4452b9);
                }),
                    this[_0x26818c(0x34f7)][_0x26818c(0x2de4)](_0x43a5fd[_0x26818c(0x1d12)], (_0x44140d) => {
                        var _0x142647 = _0x26818c;
                        this[_0x142647(0x42c)](!![]), _0x579fc4[_0x142647(0x4691)](clearTimeout, _0x2032ba), _0x579fc4[_0x142647(0x4691)](_0x563eb0, _0x44140d);
                    });
            })
        );
    }
    [_0x1f17ac(0x42c)](_0x3ff70d) {
        var _0x354177 = _0x1f17ac,
            _0x852137 = {
                KaTla: function (_0x336eba, _0x21ba4c) {
                    return _0x336eba != _0x21ba4c;
                },
            };
        (this[_0x354177(0x1ad0) + "d"] = ![]), _0x3ff70d && _0x852137[_0x354177(0x4967)](this[_0x354177(0x34f7)], null) && ((this[_0x354177(0x1133)] = null), this[_0x354177(0x34f7)][_0x354177(0x42c)]());
    }
    [_0x1f17ac(0x3c9c) + "t"]() {
        var _0x1b098a = _0x1f17ac,
            _0x461c33 = {
                zYpWw: _0x1b098a(0x315d) + "2",
                KGRlD: _0x1b098a(0x2bd5) + _0x1b098a(0x4bf1),
                lodqn: function (_0x1c873b, _0x360cce) {
                    return _0x1c873b != _0x360cce;
                },
                nQfcK: _0x1b098a(0x50a9) + _0x1b098a(0x433c) + _0x1b098a(0x3361),
                nJsAd: _0x1b098a(0x41de),
                yKpkl: _0x1b098a(0x3740) + _0x1b098a(0x4007) + "..",
                BNJfk: _0x1b098a(0x51fb) + _0x1b098a(0x53d4),
                jxeyt: _0x1b098a(0x42c),
                CHYfw: _0x1b098a(0x2421),
                SAfOk: _0x1b098a(0x50ea),
                QRpOc: _0x1b098a(0x3eee),
                URxvq: _0x1b098a(0xddb),
            },
            _0x2659c9 = _0x461c33[_0x1b098a(0x1ae5)][_0x1b098a(0x5431)]("|"),
            _0x31ad0e = -0x2685 + 0x6 * -0x377 + -0x1 * -0x3b4f;
        while (!![]) {
            switch (_0x2659c9[_0x31ad0e++]) {
                case "0":
                    var _0x376add = {
                        OgxcU: _0x461c33[_0x1b098a(0x2098)],
                        ZeZtk: function (_0x1cbfb4, _0xca1724) {
                            var _0x587ff5 = _0x1b098a;
                            return _0x461c33[_0x587ff5(0x4e41)](_0x1cbfb4, _0xca1724);
                        },
                        zXxps: _0x461c33[_0x1b098a(0x4274)],
                        YwSHd: _0x461c33[_0x1b098a(0x3e5d)],
                        mSRYL: _0x461c33[_0x1b098a(0x45f2)],
                        LIuBb: _0x461c33[_0x1b098a(0x37ef)],
                    };
                    continue;
                case "1":
                    this[_0x1b098a(0x34f7)]["on"](_0x461c33[_0x1b098a(0x2f01)], () => {
                        var _0x575834 = _0x1b098a;
                        this[_0x575834(0x42c)](), console[_0x575834(0x4944)](_0x376add[_0x575834(0x3224)]);
                    });
                    continue;
                case "2":
                    this[_0x1b098a(0x34f7)]["on"](_0x461c33[_0x1b098a(0x27f6)], () => {
                        var _0x3cf8fc = _0x1b098a;
                        this[_0x3cf8fc(0x42c)](!![]), console[_0x3cf8fc(0x4944)](_0x376add[_0x3cf8fc(0x1b22)]);
                    });
                    continue;
                case "3":
                    this[_0x1b098a(0x34f7)]["on"](_0x461c33[_0x1b098a(0x2a9f)], (_0x3c239a) => {
                        var _0x2c3855 = _0x1b098a;
                        this[_0x2c3855(0x42c)](!![]), console[_0x2c3855(0x4944)](_0x3c239a);
                    });
                    continue;
                case "4":
                    this[_0x1b098a(0x34f7)]["on"](_0x461c33[_0x1b098a(0x3849)], (_0x4ae858) => {
                        var _0x36f5f6 = _0x1b098a;
                        this[_0x36f5f6(0x2b65) + "ed"](_0x4ae858);
                    });
                    continue;
                case "5":
                    this[_0x1b098a(0x34f7)]["on"](_0x461c33[_0x1b098a(0xef8)], () => {
                        var _0x2e8cf1 = _0x1b098a;
                        console[_0x2e8cf1(0x4944)](_0x376add[_0x2e8cf1(0x2304)]),
                            !this[_0x2e8cf1(0x1ad0) + "d"] &&
                                _0x376add[_0x2e8cf1(0x1b13)](this[_0x2e8cf1(0x1133)], null) &&
                                _0x376add[_0x2e8cf1(0x1b13)](this[_0x2e8cf1(0x7ca)], null) &&
                                (console[_0x2e8cf1(0x4944)](_0x376add[_0x2e8cf1(0x65d)]), this[_0x2e8cf1(0x34f7)][_0x2e8cf1(0x3a65)](_0x376add[_0x2e8cf1(0x139c)], this[_0x2e8cf1(0x1133)], this[_0x2e8cf1(0x7ca)], this[_0x2e8cf1(0x3d25)]));
                    });
                    continue;
            }
            break;
        }
    }
    ["on"](_0x53b671, _0x2b3331) {
        var _0x50aa6d = _0x1f17ac;
        this[_0x50aa6d(0x34f7)]["on"](_0x53b671, _0x2b3331);
    }
}
0 Answers
Related