Actually, dry brining doesn't work through osmosis like wet brining does. And it's not really a rub, it's just salt (Kosher salt is best). I suppose you could do it with a salt based rub.
The way it works is the salt draws a lot of the moisture out of the meat to the surface, the moisture...