本帖最后由 solly 于 2023-12-30 14:34 编辑
前面看错了,就是前面有人説的字符转换功能,大小写互换,所以逆向时这个大小写转换也不用改动。
其实v2可以不要了:
[C++] 纯文本查看 复制代码 #include <iostream>
#include <string.h>
char s[] ="GONDPHyGjPEKruv{{pj]X@rF";
unsigned char byte_4420B0[]=
{
0x0D,0x13,0x17,0x11,0x02,0x01,0x20,0x1D,0x0C,0x02,
0x19,0x2F,0x17,0x2B,0x24,0x1F,0x1E,0x16,0x09,0x0F,
0x15,0x27,0x13,0x26,0x0A,0x1E,0x1A,0x2D,0x0C,0x2F,
0x22,0x04
};
int __cdecl sub_4013C0(int al)
{
return (al - 72) ^ 0x55;
}
int main() {
char v7[128] = "";
for (int i = 0; i < strlen(s); i++) {
v7[i] = sub_4013C0(s[i] ^ byte_4420B0[i]);
if (v7[i] >= 97 && v7[i] <= 122) {
v7[i] -= 32;
} else if (v7[i] >= 65 && v7[i] <= 90) {
v7[i] += 32;
}
}
std::cout << v7 << std::endl;
return 0;
}
|