Can you boot in safe mode (F8)?
Can you run avast! from there?
If not, can you run an on-line scanning?
When you were 'clean' you can see if the freeze system is due to Windows Restore...
What trojan are you talking about?
What do you mean by 'the system freeze' after the detection of the trojan?