what medicine is prescribed for its cure?
Administering potassium or a non-selective beta-blocker.
Thyrotoxic periodic paralysis
In the acute phase of an attack, administration of potassium will quickly restore muscle strength and prevent complications. However, caution is advised as the total amount of potassium in the body is not decreased, and it is possible for potassium levels to overshoot ("rebound hyperkalemia"); slow infusions of potassium chloride are therefore recommended while other treatment is commenced.

The effects of excess thyroid hormone typically respond to the administration of a non-selective beta blocker, such as propranolol
what is thyrotoxic periodic paralysis? It is a condition featuring attacks of muscle weakness in the presence of hyperthyroidism. what are the symptoms of it? An attack often begins with muscle pain, cramping, and stiffness. This is followed by weakness or paralysis. is it genetically caused? Genetic mutations in the L-type calcium channel α1-subunit have been described in Southern Chinese with TPP.
wiki:6760417
Thyrotoxic periodic paralysis [SEP] Treatment
In the acute phase of an attack, administration of potassium will quickly restore muscle strength and prevent complications. However, caution is advised as the total amount of potassium in the body is not decreased, and it is possible for potassium levels to overshoot ("rebound hyperkalemia"); slow infusions of potassium chloride are therefore recommended while other treatment is commenced. The effects of excess thyroid hormone typically respond to the administration of a non-selective beta blocker, such as propranolol (as most of the symptoms are driven by increased levels of adrenaline and its effect on the β-adrenergic receptors). Subsequent attacks may be prevented by avoiding known precipitants, such as high salt or carbohydrate intake, until the thyroid disease has been adequately treated.