What possible use does something like this have, besides the unethical/illegal ones?

Isnt that kind of obvious? Projects like this are incredibly valuable because they help defenders develop new detection techniques and improve EDR capabilities.