According to Wikipedia[0], reverse engineering is generally legal in the US:
In the United States even if an artifact or process is protected by trade secrets, reverse-engineering the artifact or process is often lawful as long as it has been legitimately obtained.
[0] https://en.wikipedia.org/wiki/Reverse_engineering#United_Sta...