If you sell you S-corporation's assets- will the difference of physical assets and the sales price be an intangible asset? And will the intangible asset have any basis?

Furthermore, what basis will I use to deduct from the sale of the assets? Would it simply be the original purchase price - depreciation? Or would it be the accumulated basis over the life of s-corp?