Skip to content

Instantly share code, notes, and snippets.

@najashark
Last active June 5, 2016 09:37
Show Gist options
  • Save najashark/3a1e25a12752647d7083bea45ead9674 to your computer and use it in GitHub Desktop.
Save najashark/3a1e25a12752647d7083bea45ead9674 to your computer and use it in GitHub Desktop.
//re400.c by najashark
//ihack2016
#include "stdafx.h"
#include "stdint.h"
int main(void)
{
char arr[23] = { 0xFA,0x5A,0x32,0x8A,0x32,0xE3,0x52,0x82,0x40,0xBA,0x5A,0x32,0x48,0x52,0x5A,0x12,0x02,0x42,0x70,0x42,0x32,0xD2,0xFA };
char c;
for (int i = 0; i < 23; i++)
{
c = arr[i];
__asm { mov al, c
rol al, 0x05
xor al, 0x23
mov c, al}
printf("%c", c);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment