Some time ago I released wwtool that was able to do some information gathering using wireless interface that work on Windows and I promise to add some features, one of this was to dump wireless frames to a pcap file.
I'm going to explain how we are able to reassemble Beacon frames using the WiFi Native API.
Before starting we need first to understand what a Beacon frame has inside. On the image below we are going to see the content of this frame.