It reminds me a lot of Rudy the Clown's theme, partially because it matches up in terms of key. Don't remember if the bassline actually was like this or not, but the melody definitely sounded like this. If it's not from anything and is actually some original tune I came up with while sleeping or something, let me know, because damn this would go good with a Wario Land 3 hack boss and I'd like to be able to pat myself on the back for it.