Typing MSE into Google shows straight away what it is and where to get it.
"Microsoft Security Essentials"
If it's freezing in safe mode, update the bios. Then go into bios settings and set it to be optimized defaults. Save.
Then download Memtest86+ and test the memory with it overnight. If any errors are found, replace the RAM.