Without peroxide — Markovnikov addition (ionic mechanism). In the absence of peroxide, HBr adds to propene by an ionic (electrophilic) mechanism that follows Markovnikov's rule: the hydrogen adds to the doubly-bonded carbon that already carries more hydrogen atoms.
Mechanism:
Step 1 — HBr supplies the electrophile $$\mathrm{H^+}$$, which adds to the double bond. Addition could give either a secondary or a primary carbocation:
$$\mathrm{CH_3-CH=CH_2 + H^+ \longrightarrow CH_3-\overset{+}{C}H-CH_3}$$ (secondary — more stable)
or $$\mathrm{CH_3-CH_2-\overset{+}{C}H_2}$$ (primary — less stable)
The secondary carbocation is more stable (greater stabilisation by hyperconjugation and the inductive effect), so it is formed preferentially.
Step 2 — the bromide ion $$\mathrm{Br^-}$$ attacks this carbocation:
$$\mathrm{CH_3-\overset{+}{C}H-CH_3 + Br^- \longrightarrow CH_3-CHBr-CH_3}$$
Product: 2-bromopropane.
With benzoyl peroxide — anti-Markovnikov addition (free-radical mechanism, the peroxide or Kharasch effect). In the presence of peroxide, HBr adds by a free-radical chain mechanism, and the bromine adds to the terminal carbon (anti-Markovnikov).
Mechanism:
Initiation — the peroxide breaks homolytically, and the radicals formed react with HBr to give bromine atoms:
$$\mathrm{(C_6H_5COO)_2 \xrightarrow{\Delta} 2\,C_6H_5\overset{\bullet}{C}OO \longrightarrow 2\,\overset{\bullet}{C}_6H_5 + 2\,CO_2}$$
$$\mathrm{\overset{\bullet}{C}_6H_5 + HBr \longrightarrow C_6H_6 + \overset{\bullet}{B}r}$$
Propagation — the bromine radical adds to the double bond. It adds to the terminal carbon because this produces the more stable secondary carbon radical:
$$\mathrm{CH_3-CH=CH_2 + \overset{\bullet}{B}r \longrightarrow CH_3-\overset{\bullet}{C}H-CH_2Br}$$ (secondary radical — more stable)
$$\mathrm{CH_3-\overset{\bullet}{C}H-CH_2Br + HBr \longrightarrow CH_3-CH_2-CH_2Br + \overset{\bullet}{B}r}$$
The regenerated $$\mathrm{\overset{\bullet}{B}r}$$ continues the chain. Product: 1-bromopropane.
Conclusion. The change of mechanism reverses the orientation of addition: the ionic route goes through the more stable carbocation (Br on C-2), while the free-radical route goes through the more stable carbon radical (Br on C-1). The peroxide effect is observed only with HBr (not with HCl or HI).