Implement authenticode verification

Update to fit new codebase.