Passwords are stored in the cloud. After you reinstall avast, you can again access them via PW manager. Simply sign in and you’ll have access to the saved passwords. All versions of Avast come with a PW manager. Yes, there is also a paid version. (I’ve never used it.)