I've put together an example.
Hopefully it's what you were asking for.
It basically uses the 8 direction behaviour and says if the left stick is up, down, left or right, simulate left, right, up or down. And if the right stick is left or right, rotate clockwise or counter clockwise.
I've just used an arbitrary number of 25 to determine if the analog stick is pushed to one side. This can totally be adjusted to suit the feel you'd like.
It's also possible to base the speed of the object on how hard you push the stick. But I haven't done that in this example. Let me know if you'd like me to.