In this work we use the N-body resimulation technique to address aspects of structure formation. In the first chapter we study the influence of the local environment of DM haloes on their properties. In the second chapter we address the so-called "substructure problem" which is one of the major challenges of the CDM model of cosmology. We perform ultra-high resolution simulations of the assembly of a Milky Way type dark matter halo within its full cosmological context and propose a new analytical fitting formula (SWTS) which provides a better fit to the simulated Milky Way halo than the NFW or Moore profiles do. In the third chapter we use our ultra-high resolution simulations to study the possible -ray signal from dark matter annihilation. If such a signal was detected, the nature of the dark matter, the answer to one of the most important questions of modern cosmology, would be known. (urn:nbn:de:bvb:19-16446)