This post is part of the series of Practical Malware Analysis Exercises.
Service malservice
set to auto start at boot.
So that it doesn't create and start the service twice.
- Service:
Malservice
- Mutex:
HG345
- URL:
http://www.malwareanalysisbook.com
Installs a DDoS service with 20 threads attacks http://www.malwareanalysisbook.com
in the year 2100.
Connects to http://www.malwareanalysisbook.com
in infinite loop.
Leaves a mutex open to let other instances know it's running.
Program starts a service dispatcher, allowing malservice
to execute in this process. Calls
ServiceMain.
Installation:
- if( mutex
HGL345
is unavailable): exit process - Open mutex
HGL345
- Open connection to service manager.
- Create auto start service
malservice
with path to current exe.
Initialization:
- Create waitable timer: goes off once, in year 2100.
- Wait for timer to complete: ms=INFINITE or year=2100.
Create 20 threads that:
- Open Internet connection with UserAgent=
Internet Explorer 8.0
- Get non-cached handle to
http://www.malwareanalysisbook.com
Never