SGXRay: Automating Vulnerability Detection for SGX Apps