The yellow glue sounds like 3M weather strip adhesive. Chances are the previous owner got the badge off and tried using a heat gun to remove the original black foam adhesive causing the paint to ripple like that. I remove decals from trucks at work with a heat gun and you have to be really careful or that can happen.