More modern Ubiquiti devices use signed firmware with a different end header. The new header start with the string "ENDS" which is followed by a 2048 bit RSA sha1 signature.