Soft and hard X-ray variability from the accretion disk of NGC 5548