If ABC is a company name, then it is normally fine to say "an agreement with ABC". If you specifically need to also say that ABC is a joint stock company (and haven't already mentioned this), then you can say "an agreement with ABC, a joint stock company". "an agreement with the ABC joint stock company" is not terribly natural, or sounds as if you are trying to say something more complicated than simply that ABC is a joint stock company.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.