From 悪(わる) (waru) + 知恵(ちえ) (chie). The chie changes to jie as an instance of rendaku (連濁).
悪(わる)知(ぢ)恵(え) • (warujie) ←わるぢゑ (warudiwe)?