Every person who, after mortgaging or encumbering by deed of trust any real property, and during the existence of such mortgage or deed of trust, or after such mortgaged or encumbered property shall have been sold under an order and decree of foreclosure or at trustee’s sale, and with intent to defraud or injure the mortgagee or the beneficiary or trustee, under such deed of trust, his representatives, successors or assigns, or the purchaser of such mortgaged or encumbered premises at such foreclosure or trustee’s sale, his representatives, successors or assigns, takes, removes or carries away from such mortgaged or encumbered premises, or otherwise disposes of or permits the
taking, removal or carrying away or otherwise disposing of any house, barn, windmill, water tank, pump, engine or other part of the freehold that is attached or affixed to such premises as an improvement thereon, without the written consent of the mortgagee or beneficiary, under deed of trust, his representatives, successors or assigns, or the purchaser at such foreclosure or trustee’s sale, his representatives, successors or assigns, is guilty of larceny and shall be punished accordingly.