Use a hex editor to extract pkx data, select from offset 0x67 to 0x14E, copy and paste the hex values on a new file and save it as .bin since it is encrypted, then use a pkx editor to see the data
I'm not sure why there are 1033 bytes packets and 989 byte packets for Wonder Trade, also it seems that showing a pokemon on a wifi trade can make 407 bytes packets or 363 bytes packets... I'm not sure the reason why this happens but 44 bytes are missing on 989 and 363 bytes packets... and these 44 bytes are before pkx data
Probably some sort of header.