According to "The Early History Of God"...
If we allow the use of ancient writings by the Hebrews' cousins from Canaan to Ugarit, then we can go a step better than just inferring other gods from a handful of oddities of the Old Testament. We even know the names of several major members of the Semitic pantheon and their personality traits and godly roles.
Yahweh: Discipline, justice, responsibility/righteousness, & orderliness, including imposing them by controlled violence if necessary; invoked for rain in one case, but that was specific to a treaty between two kings which called for either king's properties to be destroyed by a powerful storm if he were to violate the treaty
Ba'al/Hadad: Productivity, prosperity, fertility, celebration, happiness, growth; if you invoked this god for rain, you were asking for gentle showers that let life be lush and abundant without doing damage; also apparently originally king of the pantheon, whose name (Hadad) was not to be spoken by non-priests, so others called him "ba'al", the word for "master/lord", which was also sometimes applied to supernatural beings in general or individual high-ranking humans, but also came to be used as a name for Hadad, sorto like what happened with our word "god"
Anat: chaotic, uncontrolled violence; maniacal bloodthirst; often described as having enemies'/victims' blood dripping from her hands and mouth; this is why they didn't have just one "god of war"but different gods for different types or aspects of war, including Yahweh
Mot: Death, underworld, drought, decay; there's always one of these
'El: Favorite god of one of the two kingdoms when Yahweh was the favorite of the other, until they came to be considered two names for the same entity;
'El would then shift in meaning from a name to "power" or "the powerful one(s)", thus "god(s)", the plural form of which,
Elohim, would later shift back to an alternate name for the unified single god otherwise known as Yahweh that is still sometimes used today
Starting from a list of at least a dozen gods, they gradually whittled it down, discontinuing the worship of some entirely and merging others by accumulating multiple gods' earlier traits to a dwindling remainder. Once it was down to just a few left, those who favored Yahweh (or 'El) deemed the others and their followers threats and turned to treating them as enemies. Not only were practices associated with the others banned, but new negative traits were invented for them and even mentions of them were deleted or obscured. That's why the Bible has a verse telling people not to decorate trees (associated with worship of Asherah, Yahweh's wife), "Ba'al" ends up as the root of "Be'elzebub", and a Biblical character originally named "Jeruba'al" gets renamed "Gideon".