To repair a corrupted BIOS on an HP computer, use HP's built-in BIOS recovery procedure by entering specified key combinations when turning on the device. If that doesn't work, you may need to reset the CMOS or manually retrieve the BIOS via a USB disc, if your model supports it.
?
This video describes the keypress combination for BIOS recovery on HP laptops: