Skip to content

rvrsh3ll/Cronos

 
 

Repository files navigation

Cronos

c assembly windows

This project was co-authored by

idov31 YXEL

Description

PoC for a new sleep obfuscation technique (based on Ekko) leveraging waitable timers to RC4 encrypt the current process and change the permissions from RW to RX to evade memory scanners.

A more detailed explanation will be available in the blog post.

POC

Usage

To use it, all you have to do is to include Cronos in your project and use it like so:

#include "Cronos.h"

int main() {
    int timesToExecute = 1337;
    int seconds = 10;

    for (int i = 0; i < timesToExecute; i++) {
        CronosSleep(seconds);

        // YOUR CODE HERE!
    }
}

Setup

To compile it you will need:

After you have all of the above, navigate to the project's directory and build it with the makefile, the EXE will be in the bin directory.

Visual Studio Setup

  • VSNASM

    • Run install_script.bat
  • Add NASMPATH environment variable

    • NASMPATH=C:\Users<user>\AppData\Local\bin\NASM\
  • Open Visual Studio & Configure Settings

    • Tools > Options > Projects and Solutions > VC++ Project Settings > Build Customization Search Path
    • Set to %NASMPATH%;0
  • You can also install the AsmDude extension for syntax highlighting into .asm files.

Contributors

Thanks a lot to those people that contributed to this project:

Resources

About

PoC for a new sleep obfuscation technique leveraging waitable timers to evade memory scanners.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 75.1%
  • Assembly 11.5%
  • YARA 10.3%
  • Makefile 3.1%