Copyright Act Article 59

The owner of a legal copy of a computer program may alter the program where necessary for utilization on a machine used by such owner, or may reproduce the program as necessary for backup; provided, this is limited to the owner's personal use.If the owner referred to in the preceding paragraph loses ownership of the original copy for any reason other than the destruction of the copy, all altered and backup copies shall be destroyed unless the economic rights holder grants its consent otherwise.
中文原文 著作權法第59條
合法電腦程式著作重製物之所有人得因配合其所使用機器之需要,修改其程式,或因備用存檔之需要重製其程式。
但限於該所有人自行使用。
前項所有人因滅失以外之事由,喪失原重製物之所有權者,除經著作財產權人同意外,應將其修改或重製之程式銷燬之。

English translation for reference only; the Chinese text prevails. Not legal advice.