How to deobfuscate a hexadecimal javascript code?

Viewed 24

I'm having problems understanding a javascript obfuscated code.

I am currently trying to make an aimbot for a html5 game, so I need to understand the code and look for the variable where the players are stored, but the game's code is hex obfuscated and cant be understood. Is there a way to make it readable or to find the values I need?

Examples of the code:

function a0_0x43c6() {
    var _0x552d0f = ['_matrix[4];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20data[offset\x20+\x206]\x20=\x20', 'Holiday\x20Event', 'isArgumentsObject', 'Trying\x20to\x20access\x20beyond\x20buffer\x20length', 'zIndex', 'src/client/website/priceButton.vue', 'engine.io-client:polling', 'Fixed\x20bullets\x20going\x20through\x20objects\x20when\x20fired\x20from\x20far\x20away', 'computedAccuracyDecrease', 'merge', 'suspended', '_removeInstances', 'isMobileAccessibility', 'settings', '936b928e', 'modal', 'https://www.youtube.com/watch?v=42H9dCOtB04', '_onKeyDown', '_system', 'reloadingSlowdown', 'setEncoding', 'DISCONNECT', 'onBuyStationPurchase', 'pixelStorei', 'PIXI.resources.', 'cacheVNode', 'xhr\x20poll', 'ON_MANUAL', 'player_count_container\x20menu_element_background\x20ui_rounded', 'WebGL2RenderingContext', 'setObjectRenderer', 'location', 'LEFT_DOWN', '</br>\x20title\x20:\x20', 'Elf', '_watchers', 'Mobile\x20device\x20detected', 'releaseBranch', 'Possible\x20EventEmitter\x20memory\x20leak\x20detected.\x20', 'BEVEL', 'sawedoffshotgun_reload', 'infiniteAmmo', 'cl_debugPlayerInterpolation', 'BLOB', 'UNPACK_PREMULTIPLY_ALPHA_WEBGL', 'barbedWire', 'rechargingPercent', 'additions', 'emotes_buttons_list', 'black_bar_top_transition', 
           function _0xe1eb10(_0x49b51c, _0x33c43e) {
                var _0x40446c = _0x17e67d
                  , _0x32d10a = _0x296611;
                if (Array[_0x40446c(0x246a)](_0x49b51c) && _0x44373e(_0x33c43e))
                    _0x49b51c[_0x40446c(0xe12)](_0x33c43e, -0xb7d * 0x3 + 0x2688 + -0x410);
                else {
                    var _0x4ef4b1 = _0x49b51c[_0x32d10a(0x18e3)];
                    _0x49b51c[_0x40446c(0x1ea8)] || _0x4ef4b1 && _0x4ef4b1[_0x40446c(0x21e5)] || _0xcfc564(_0x49b51c, _0x33c43e) && (delete _0x49b51c[_0x33c43e],
                    _0x4ef4b1 && _0x4ef4b1[_0x32d10a(0x1066)][_0x40446c(0x1c4d)]());
                }

The code is from a game called battledudes.io, and can be found in its js file (vue_js_3.bundle.js) or on this page https://battledudes.io/vue_app_53.bundle.js

Thanks all for help me.

0 Answers
Related