Well... I don't use "align" much. I expected "0xCC" to work, I was a little surprised that "int3" worked. Nasm knows "ud2" as an undefined instruction (0xF, 0xB). Is this the same as "UB2"? This seems to work, too, although Nasm seems confused about the meaning of "32" in this case. It's not clear to me how (or why) you'd use an "odd" alignment. "align" itself is apparently an internal macro which uses "times" to do the deed. Maybe you can do something with that?
Best,
Frank