The Monte Carlo software CASINO has been expanded with new modules for the simulation of complex beam scanning patterns, for the simulation of cathodoluminescence (CL), and for the calculation of electron energy deposition in subregions of a three-dimensional (3D) volume. Two examples are presented of the application of these new capabilities of CASINO. First, the CL emission near threading dislocations in gallium nitride (GaN) was modeled. The CL emission simulation of threading dislocations in GaN demonstrated that a better signal-to-noise ratio was obtained with lower incident electron energy than with higher energy. Second, the capability to simulate the distribution of the deposited energy in 3D was used to determine exposure parameters for polymethylmethacrylate resist using electron-beam lithography (EBL). The energy deposition dose in the resist was compared for two different multibeam EBL schemes by changing the incident electron energy.