What ointment could I apply around my anus if I have small bumps?

None. Small bumps sound like an std and you need an exam, diagnosis and proper treatment.
See Dr. Small bumps would not likely be hemorrhoids, which have otc options. More likely they are herpes or warts or other unpleasantries that require different treatment. See your dr / urgent care / "std clinic" for exam and treatment.