Then the last scene we see is Edgar Stiles coming from behind the corner with a smile on his face with Chloe in arm.
You are making an unfounded assumption that Kim has a brain to wash. There has thus far on the show been no evidence presented to that effect.