Experimenting with my phone made me loose my contacts , but I had a cwm Backup
I placed the backup folder in my win machine, what you need is data.ext4.tar , data.ext4.tar.a, data.ext4.tar.b
under dos : type data.ext4.tar.a data.ext4.tar.b >data_all.ext4.tar ( because data is split ) ( attention include the word "type")
open with Zip7
extract map data/data/com.android.providers.contacts/databases
downloaded dbbrowser for sqlite from sqlitebrowser.org
open from databases : contacts2.db
then export tabel phone_lookup ( this has the phone numbers ) 2nd column is raw_contact_id
then export raw_contacts
Import in excel. I used the function vertical search, and used 2 different excel files.
phone_lookup table 2nd field has to be searched in raw_contacts function ( in Dutch ) =VERT.ZOEKEN(B2;[phone.xlsx]Blad1!$A$2:$G$518;6)
Now you have your contacts in excel or on paper , not in your phone , but you have them!