Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

xoring speed

Featured Replies

  • Author
  • Localization

chrrox, posted Sat Mar 30, 2019 9:00 pm (46216)


what is the fastest way to implement this in quickbms.
void DLL_EXPORT do_decrypt(char* data_r,int len_r,int seek)
{
char* data = &data_r[seek];
int len = len_r - seek;

for(int i=0;i {
char simu = data[i];
char toXo = key[i%0x180];

if(simu!=0&&simu!=toXo)
data[i] = simu^toXo;
}
}

mainly the
if(simu!=0&&simu!=toXo)
data[i] = simu^toXo;
part
  • Author
  • Localization

aluigi, posted Sat Mar 30, 2019 10:05 pm (46218)


It's a conditional xor, better to use the function as-is:
Code:
set MEMORY_FILE10 string "
void do_decrypt(char *key, char* data,int len)
{
    for(int i=0;i    {
        char simu = data[i];
        char toXo = key[i%0x180];

        if(simu!=0&&simu!=toXo)
            data[i] = simu^toXo;
    }
}
"

set KEY binary "..."
encryption calldll "MEMORY_FILE10 do_decrypt tcc RET KEY #INPUT# #INPUT_SIZE#"

log "dump.dat" OFFSET SIZE
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.