What is the oscillator used for on HT12E/D?
There is an internal RC oscillator (the capacitor is inside, and connected to OSC1). The external resistor forms part of the oscillator. 

see the datasheet: http://www.holtek.com/pdf/consumer/2_12ev120.pdf Page 9 gives the oscillator frequency vs. the resistor value.