C. to thrill
The passage builds suspense and tension, leading to a sense of terror and horror as the masked figure appears amidst the revelry. The reaction of the crowd—expressing disapprobation, surprise, terror, and disgust—enhances the thrilling atmosphere typical of Poe's writing.