The process in which a relatively unspecialized cell acquires the specialized features of an oenocyte. Oenocytes are large secretory cells found in clusters underlying the epidermis of larval abdominal segments.