In Pokémon FireRed, HM05 (Flash) is obtained by speaking to an NPC in the southern area of Mt. Moon. After entering Mt. Moon from Route 3, head south through the cave until you reach a researcher near the exit to Route 4. He will give you HM05 Flash, which illuminates dark caves like Rock Tunnel.
Flash can be taught to compatible Pokémon (such as Pikachu, Abra, or Clefairy) and used outside of battle to light up dark areas.