You just need to upload a favicon.ico file to the root of your XenForo installation.
There are many web based converters that will convert any image into an appropriate favicon.ico format. That's what I tend to use. There's also plugins maybe even built in support in packages such as Photoshop etc. but the web based converters are much easier.