Before you applied to this company, did you check what’s the market salary they were offering to your kind a role ? If not, that’s the first thing you should stop feeling bad about.
Secondly, even I was in a similar situation like yours, but what I did was upskilled myself and spoke to my manager to increase my salary, and my manager helped me out. There are times when your manager won’t help and you know exactly what to do :)
Third, why are you unhappy with your current salary? Is it only because your friend is getting more than you or now do you feel that your market value should have been 32 and you were given less and fooled into. Think about all these pointers and then apply whichever applicable mate.