Of course there's an understanding that intelligence agencies are all ultimately looking at everything, but there's a degree of cooperation. Even in the current state of affairs Russian and American intel agencies work together on anti-terrorism stuff.
However, if the other group is clearly actively against you, then it's harder to work with them. It's safe to say at this point, given the evidence out ther, that WikiLeaks does work with an objective of embarassing American interests.