That depends. If the EULA indicates reverse engineering is illegal, and you agreed to it at time of use, then it is illegal.

Calvin