H1 transfer and revoked h1

Im in full time with company A, if i resign here at A and find a job after a month with company B is it still possible for company B to transfer /apply for H1b ?? What if company A revokes my H1b after resignation?? Pls suggest