A mall is simply a privately-owned small-town urban core "Main Street". Dead malls are just dead towns, which exist because people move to newer developments when land is cheap. Big box stores still exist.
One way that malls are attempting to survive is by adding living and working environments; It seems obvious - have captive customers for your stores, have the "company town" vibe for employees, all while reducing parking requirements.
Though, it has some issues; particularly with zoning, insurance, and board approvals.