Looking at these unknowns, it screams bit flags. How so?
5th and 6th bits - Ability
16 - Ability 1 -- 010000
32 - Ability 2 -- 100000
48 - Ability 3 -- 110000 (Dream World)
Both being 0 would result in an unset (random???) ability. Untested!
1st and 2nd bits - Gender
1 - Male - 01
2 - Female - 10
Both being 0/1 would result in an unset (random???) gender.
87 (11) is female. Is 00 male?
Combining these...
34 - 100010 -- Ability 2 and Female
Cursed body female Jellicent as reported by Abacus
87 - 1010111 -- Ability 1, Female. It has a 7th bit, no clue what that does!
1,2,5,6 bits explained. I haven't fiddled with this thing at all (just observing from afar) -- So I ask you all this:
Would IVs and EVs be set by these different bits? Max or Zero, or Max, 20, 0 or random??