Combine sugar and corn syrup. Bring to a full boil, then remove from heat and quickly stir in peanut butter and vanilla until smooth. Pour over popcorn mixed with peanuts and stir to coat all particles. Pat mixture firmly into a buttered 8" square pan. Cool, then cut into 2" squares.