Clean-room reverse engineering