Court documents show that the girls believed they might become agents for a fictional online character by killing their friend.