MCPcopy Create free account
hub / github.com/c2pain/RustPatchlessCLRLoader / decrypt_rc4

Function decrypt_rc4

src/main.rs:358–365  ·  view source on GitHub ↗
(filename: &str)

Source from the content-addressed store, hash-verified

356 }
357
358 fn decrypt_rc4(filename: &str) -> Vec<u8> {
359 let mut buf = read_file(filename);
360 let mut rc4 = Rc4::new(b"C2Pain".into());
361
362 rc4.apply_keystream(&mut buf);
363
364 buf
365 }
366
367fn prepare_args() -> (String, Vec<String>) {
368 let mut args: Vec<String> = env::args().collect();

Callers 1

mainFunction · 0.85

Calls 1

read_fileFunction · 0.85

Tested by

no test coverage detected