If I am dismissed due to misconduct, can my employer keep the employer's portion of my accrued benefits and only allow me to transfer the employer's part to the personal account?

No. Your employer cannot withhold your benefits accrued from mandatory contributions. It will be vested fully as your accrued benefits once they are paid to your trustee. However, for voluntary contributions paid by your employers, forfeiture of benefits will be subject to the governing rules of your scheme.