Phew! Big question!
Our bodily smells and the pot pourrie of overtones produced by our pwn personal skin bacteria have many functions and are counterfunctional in a few ways. They distinguish us from unrelated people, they characterise us as having given social status, gender, sexual status, all sorts of things, many of which most of us are not even aware of, not consciously anyway, though some of us do react without realising that we do so.
And concentration makes a big difference. Too little of an important component and you are lacking in social or sexual pheromones; too much and you pong. Leave it in place too long, and your bouquet becomes an odour.
This is why babies have a characteristic child smell, which diverges as the environment takes over and labels them with the microbes and foods of their community.
This baby thing also applies to other animals; when a youngster lacks personal smells, behaviour and appearance associated with adults, it does not present a challenge to adults and is partly protected from dangerous conflict.
Anyway, various components, particularly those that are associated with sexual phases and functions, have been regarded with some excitement by the parfumiers, though their effect has been debatable and variable at best. But it is quite possible that you have smelt components that have been incorporated or copied in commercial perfumes. (Don't ask me about brands; I like (clean) girls and flowers etc, the bottled stuff has meant little in my life as far as I could tell.)
The perception of dirtiness depends not so much smelling of the signal compounds as such, as on quantities and combinations of compounds. Also it is affected by one's further perceptions; does the person's appearance and behaviour suggest dirt?
As for getting rid of pong, the best I can recommend is a daily wash with a comfortable and effective detergent of your choice, whether soap or synthetic. Use plenty of warm water, massaging friction and suds in the strategic zones, particularly the apocrine organs in armpits etc. Rinse well to remove as much as possible of the lipoidal material that carries ("fixes") the pong. Don't scrub with anything that shaves sensitive skin; you are after emulsification, not scalping that only causes irritation and inflammation.
The next phase is to discipline your resident bacteria and discourage your resident from seeking their way into the great outdoors (or worse; the great indoors!) The best so-called deodorants work on that principle, not on drowning out pong with scent. (actually, there really are some genuine deodorant substances, but they don't seem to be of much practial effect on the body in my experience).
A surprisingly effective and economical deodorant is simply a lump of alum or aluminium sulphate. Some brands are available on the market locally under international brand names, so I suspect that you could obtain them easily. They are sold as solid, rounded "crystal" lumps in holders. While your underarm area is moist enough for the lump to slide smoothly over the skin, but not really wet, rub the smooth lump over the skin, but only over the apocrine organ, the porous-looking underarm skin. (The stuff irritates the surrounding skin.)
The Al salt suppresses the microbes for a few hours and discourages the contents of the skin pores from escaping, but it is not proof against real perspiration, which floods it.
An alternative is to use strong alcohol (rubbing alcohol works well, so does ethanol of over 70% concentration. 70% is supposed to be the best for ethanol, but it gets diluted on the skin.) apply it to the underarm and wherever it feels best. For heaven's sake do not work with it anywhere near sparks or flames!!! Keep water and wet cloths available in case of accidents. Alcohol removes some of the smelly stuffs and kills the smely germs and it is not terribly irritant to most skins. It is however, a short-term solution, but then, you can apply it a few times a day if that suits you.
As for all the advice about never using soap like this or or oil like that, it is best to ignore it and find out for yourself what suits your skin. Skins differ, and they change as you grow older.
When you have applied such measures, you may put any skin lotions or other emulsions onto your skin for softening or scent as you prefer.
The other most effective and economical deodorants imo are the sticks of soapy stuff. "Dry deodorant" sticks. Apply them much as you would the alum sticks, but the moisture on the skin is not so critical.
One used to be able to get a stuff called pHisohex, that contained hexachlorophene. It was the best deodorant I knew by far, but it was discovered to be poisonous, so now you can't get it.
The aerosol sprays are best at giving you something offensive to get in your eyes and nose, and to get irritant liquid over non-apocrine skin.
After any of the recommended applications you should be OK for a day or so unless the circumstances are too challenging. It is no good applying anything in emergencies unless you first can do an emergency cleansing wipe. You might find that those disposable wet fabric "towels" for wiping your face on aircraft etc will do in a pinch, but even a bit of hand soap and wet tissue paper will work. Then your deodorant will work again when you apply it. I haven't yet tried neat vodka as a last ditch measure, but it should work.
One way or another.
But what matters is to remember the principles:
Get rid of external unwanted matter, plus as much as you can of whatever is in the pores.
Kill as many germs as you can.
Discourage the stuff in the pores from coming out.
Anything else is of secondary importance.
Was that what you wanted to know?