Reverting to default firmware - ATMega 8u2

If you figure out how to flash the modified firmware, the original firmware is available for you to flash back, so yes, you can revert.
ETA:
If the new firmware supports the protocol to update the chip over USB, you might not even need to use the ICSP pins.