Below is a screen shot that shows how to do this, I have also put in a for loop You don't seem to need the mov above the ret.
Im not entirely sure if full access is required or what it does so I have commented it out for now.
To do it without a for loop you would do something like this
// As Example
// or do other code
ret // exit thread