/// <summary> /// Reads a S4 encrypted string from the processes' memory. /// </summary> /// <param name="address">Memory Address</param> /// <param name="bufferSize">Buffer Read Size</param> /// <returns>Resulting String</returns> public string ReadS4EncryptedString(long address, int bufferSize = 3072, bool nullCheck = false) { string decrypted = Decryption.DecryptStringS4(ReadBytes(address, bufferSize)); if (nullCheck == true) { if (decrypted == "") { return(null); } } return(decrypted); }