How do i add a executable to a snap

that wont work, you would need classic confinement for using ccextractor from the host but “just calling an external binary” is not a criteria to get classic confinement granted:

you will need to ship it inside your snap one way or the other …