When you reset, you will lose all your data, passwords, and content stored on the Tablet, but not the latest version of Android installed during use. If there is a malware or dangerous file, it will be removed. Of course, you should make a backup of your data before proceeding with such a drastic deletion.