Monster disadvantage is the treated the same as player disadvantage. Two attack modifier cards are drawn and the worse one is chosen to resolve (see Attack: Disadvantage).
A monster adjacent to a focused enemy will move away from it until it can perform the ranged attack without disadvantage (usually this will be just one space).
Example below: This archer would move 1 space away before doing a ranged attack.
When forced to choose, a monster will prioritize losing Disadvantage on its focused enemy over maximizing its attack on secondary targets (if targeting multiple enemies).
Example above: If this archer had a Range 2, Target 2, it would still move back 1 space and only target the Mindthief. Even though if it stayed there it would hit both Mindthief and Spellweaver, it would be at a disadvantage vs the Mindthief.