Learning and avoiding disorder in multimode fibers