This mini-tune is in B Minor. It features some interesting lines and licks. Take note of how the song changes to F#7 (the V chord of B) and the modulates back to B Minor again.
The last lick is reminiscent of what Slash plays towards the end of the Sweet Child of Mine solo.