Fatattr is a project mainly written in C, based on the GPL-2.0 license.
Utility to Get and Set FAT Filesystem Attributes
Utility to get and set FAT attributes directly through the kernel FAT ioctl() calls.
Just run make and hopefully you'll end up with a fatattr binary.