You’re looking for
tl;dr: You have to get the released title from HMF, reregister in your name & pay sales tax, then the 10-day timer starts - after which you can sell to your friend and apply for the sales tax to be refunded. Well documented if you search here.