Mediates the reversible addition of palmitate to target proteins, thereby regulating their membrane association and biological function. hexadecanoyl-CoA + L-cysteinyl-[protein] = CoA + S-hexadecanoyl-L-cysteinyl-[protein] The DHHC domain is required for palmitoyltransferase activity. Belongs to the DHHC palmitoyltransferase family. PFA4 subfamily.