You need to use directly a FileStream or:
byte[] buffer = File.ReadAllBytes(@"c:\1.exe");
string base64Encoded = Convert.ToBase64String(buffer);
buffer = Convert.FromBase64String(base64Encoded);
File.WriteAllBytes(@"c:\2.exe", buffer);
---------------Encryption and Decryption-----------
Concept is, we can do encrypt files using AesCryptoServiceProvider(that configure Keys with encoding) and Encoding(That encrypt file based on that key and same way decryption).
Please review the following Link:
File Encryption and Decryption in C#[
^]