There is Lucifer he was the rebel leader over a section of planets. Then there was Satan the rebel leader over a less and under the rebel action of
Lucifer. Then there is Calagastia (the devil) and dalagastia these were the rebel leaders on this planet. Under them were the "fallen angels" or the
nephilum. Next to them were the midway creatures more spirit, these are became to be known as demons.
I would seem Mastema falls Just under "the devil".