A forum for reverse engineering, OS internals and malware analysis 

Forum for analysis and discussion about malware.
 #18543  by Xylitol
 Fri Mar 15, 2013 8:27 pm
look's fun, moved to malware.
https://www.virustotal.com/fr/file/61f8 ... 363381712/
Code: Select all
hxtp://bit.ly/11Uql6s -> hxtps://www.awxcnx.de/cgi-bin/proxy2/nph-proxy.cgi/000000A/http/hhsbxjbfcfmaxceo24ihjjnwrfh5kub4hxm2sljyjnozurpzmasa.b32.i2p
hxtp://unblock.i2p.to -> 85.25.108.179
hxtp://bit.ly/VIertW -> hxtp://hhsbxjbfcfmaxceo24ihjjnwrfh5kub4hxm2sljyjnozurpzmasa.b32.i2p.in/
hxtp://unblock.i2p.in
Attachments
infected
(8.18 KiB) Downloaded 89 times
 #19918  by Fabian Wosar
 Tue Jul 02, 2013 5:23 pm
Looks like there is a newer variant targeting English speaking users. The attached sample was spammed around a few days ago. I also included the decoded and deobfuscated PowerShell script that does the actual encryption. I removed the obfuscation using a small Python script. So it may not be perfect in all cases but should be good enough to get a rough idea of how the malware works in case you are interested.

In general the way it works is that the HTA file contains an encoded VBScript. If the HTA file is opened, the VBScripts gets executed, checks if PowerShell is installed. If it isn't it will display a message and redirect the user to the PowerShell download page. If it is, it will drop a BASE64 encoded version of the PowerShell script into %appdata%\test.txt and invokes PowerShell with some code directly at the command line to decode the file and execute its content.

The PowerShell script will first create an encryption key by using the GeneratePassword method of Web.Security.MemberShip and concatenating part of the Windows version number as well as the constant string "001001" to it. The resulting encryption key is then encrypted using RSA and the malware author's public key and the ransom note is generated. The ransom note will include the BASE64 encoded, encrypted encryption key. So once you submit the ransom note to the malware author, he is able to use his private key to restore the encryption key that has been used on your system and he is able to send you a specialized decrypter.

The malware will then enumerate all disks that have at least 50000 bytes of free disk space and looks for files with one of the following extensions:
Code: Select all
"*.doc","*.xls","*.docx","*.xlsx","*.db","*.mp3","*.waw","*.jpg","*.jpeg","*.txt","*.rtf","*.pdf","*.rar","*.zip","*.psd","*.msi","*.tif","*.wma","*.lnk","*.gif","*.bmp","*.ppt","*.pptx","*.docm","*.xlsm","*.pps","*.ppsx","*.ppd","*.tiff","*.eps","*.png","*.ace","*.djvu","*.xml","*.cdr","*.max","*.wmv","*.avi","*.wav","*.mp4","*.pdd","*.html","*.css","*.php","*.aac","*.ac3","*.amf","*.amr","*.mid","*.midi","*.mmf","*.mod","*.mp1","*.mpa","*.mpga","*.mpu","*.nrt","*.oga","*.ogg","*.pbf","*.ra","*.ram","*.raw","*.saf","*.val","*.wave","*.wow","*.wpk","*.3g2","*.3gp","*.3gp2","*.3mm","*.amx","*.avs","*.bik","*.bin","*.dir","*.divx","*.dvx","*.evo","*.flv","*.qtq","*.tch","*.rts","*.rum","*.rv","*.scn","*.srt","*.stx","*.svi","*.swf","*.trp","*.vdo","*.wm","*.wmd","*.wmmp","*.wmx","*.wvx","*.xvid","*.3d","*.3d4","*.3df8","*.pbs","*.adi","*.ais","*.amu","*.arr","*.bmc","*.bmf","*.cag","*.cam","*.dng","*.ink","*.jif","*.jiff","*.jpc","*.jpf","*.jpw","*.mag","*.mic","*.mip","*.msp","*.nav","*.ncd","*.odc","*.odi","*.opf","*.qif","*.qtiq","*.srf","*.xwd","*.abw","*.act","*.adt","*.aim","*.ans","*.asc","*.ase","*.bdp","*.bdr","*.bib","*.boc","*.crd","*.diz","*.dot","*.dotm","*.dotx","*.dvi","*.dxe","*.mlx","*.err","*.euc","*.faq","*.fdr","*.fds","*.gthr","*.idx","*.kwd","*.lp2","*.ltr","*.man","*.mbox","*.msg","*.nfo","*.now","*.odm","*.oft","*.pwi","*.rng","*.rtx","*.run","*.ssa","*.text","*.unx","*.wbk","*.wsh","*.7z","*.arc","*.ari","*.arj","*.car","*.cbr","*.cbz","*.gz","*.gzig","*.jgz","*.pak","*.pcv","*.puz","*.r00","*.r01","*.r02","*.r03","*.rev","*.sdn","*.sen","*.sfs","*.sfx","*.sh","*.shar","*.shr","*.sqx","*.tbz2","*.tg","*.tlz","*.vsi","*.wad","*.war","*.xpi","*.z02","*.z04","*.zap","*.zipx","*.zoo","*.ipa","*.isu","*.jar","*.js","*.udf","*.adr","*.ap","*.aro","*.asa","*.ascx","*.ashx","*.asmx","*.asp","*.aspx","*.asr","*.atom","*.bml","*.cer","*.cms","*.crt","*.dap","*.htm","*.moz","*.svr","*.url","*.wdgt","*.abk","*.bic","*.big","*.blp","*.bsp","*.cgf","*.chk","*.col","*.cty","*.dem","*.elf","*.ff","*.gam","*.grf","*.h3m","*.h4r","*.iwd","*.ldb","*.lgp","*.lvl","*.map","*.md3","*.mdl","*.mm6","*.mm7","*.mm8","*.nds","*.pbp","*.ppf","*.pwf","*.pxp","*.sad","*.sav","*.scm","*.scx","*.sdt","*.spr","*.sud","*.uax","*.umx","*.unr","*.uop","*.usa","*.usx","*.ut2","*.ut3","*.utc","*.utx","*.uvx","*.uxx","*.vmf","*.vtf","*.w3g","*.w3x","*.wtd","*.wtf","*.ccd","*.cd","*.cso","*.disk","*.dmg","*.dvd","*.fcd","*.flp","*.img","*.iso","*.isz","*.md0","*.md1","*.md2","*.mdf","*.mds","*.nrg","*.nri","*.vcd","*.vhd","*.snp","*.bkf","*.ade","*.adpb","*.dic","*.cch","*.ctt","*.dal","*.ddc","*.ddcx","*.dex","*.dif","*.dii","*.itdb","*.itl","*.kmz","*.lcd","*.lcf","*.mbx","*.mdn","*.odf","*.odp","*.ods","*.pab","*.pkb","*.pkh","*.pot","*.potx","*.pptm","*.psa","*.qdf","*.qel","*.rgn","*.rrt","*.rsw","*.rte","*.sdb","*.sdc","*.sds","*.sql","*.stt","*.t01","*.t03","*.t05","*.tcx","*.thmx","*.txd","*.txf","*.upoi","*.vmt","*.wks","*.wmdb","*.xl","*.xlc","*.xlr","*.xlsb","*.xltx","*.ltm","*.xlwx","*.mcd","*.cap","*.cc","*.cod","*.cp","*.cpp","*.cs","*.csi","*.dcp","*.dcu","*.dev","*.dob","*.dox","*.dpk","*.dpl","*.dpr","*.dsk","*.dsp","*.eql","*.ex","*.f90","*.fla","*.for","*.fpp","*.jav","*.java","*.lbi","*.owl","*.pl","*.plc","*.pli","*.pm","*.res","*.rnc","*.rsrc","*.so","*.swd","*.tpu","*.tpx","*.tu","*.tur","*.vc","*.yab","*.8ba","*.8bc","*.8be","*.8bf","*.8bi8","*.bi8","*.8bl","*.8bs","*.8bx","*.8by","*.8li","*.aip","*.amxx","*.ape","*.api","*.mxp","*.oxt","*.qpx","*.qtr","*.xla","*.xlam","*.xll","*.xlv","*.xpt","*.cfg","*.cwf","*.dbb","*.slt","*.bp2","*.bp3","*.bpl","*.clr","*.dbx","*.jc","*.potm","*.ppsm","*.prc","*.prt","*.shw","*.std","*.ver","*.wpl","*.xlm","*.yps","*.md3","*.1cd"
Files matching those criteria will then be encrypted using AES and the previously generated encryption key. To do so, the malware encrypts the first 40 kb of the file and renames it by appending ".FILEBLOCKED" to the original filename. It also creates a ransom note in the same folder named "READ_ME_NOW.html".

VirusTotal results:
https://www.virustotal.com/en/file/faee ... 372785655/
Attachments
infected
(17.31 KiB) Downloaded 100 times