首页
社区
课程
招聘
未解决 [求助] 100雪币
发表于: 2024-8-20 15:10 1431

未解决 [求助] 100雪币

2024-8-20 15:10
1431

最近在看一个化学软件,是一个比较古老的软件,看怎么绕过。

用ida 调试了,找到了 关键的那个key比较的函数,但是不知道下边怎么继续了。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
char LPInit()
{
  int v0; // eax
  int v1; // eax
  int v2; // eax
  int v3; // eax
  int v4; // eax
  int v5; // eax
  char *v6; // eax
  char *v7; // eax
  _BYTE timesthru[528]; // [esp+0h] [ebp-210h] BYREF
 
  memset(timesthru, 0xCCu, sizeof(timesthru));
  dwVersion = GetVersion();
  gOnline = 1;
  gOnlineTHOR = 1;
  gOnlineQSAR = 1;
  gOtherOnline = 1;
  idosversion = HIBYTE(dwVersion) + BYTE2(dwVersion) / 10;
  GetModuleFileNameA(hInst, szAppFileName, 0x400u);
  strncpy(&driveletter, szAppFileName, 1u);
  *(_DWORD *)&timesthru[12] = &driveletter;
  idrivenumber = (driveletter & 0x7F) - 65;
  *(_DWORD *)&timesthru[16] = 0;
  *(_DWORD *)timesthru = 0;
  gNewLicense = 0;
  OpenLPfile();
  ReadLPfile();
  *(_DWORD *)&timesthru[8] = byte_588E95;
  if ( !strstr(byte_588E95, aThor) )
    gOnlineTHOR = 0;
  if ( !strstr(*(const char **)&timesthru[8], aQsar) )
    gOnlineQSAR = 0;
  if ( !strstr(*(const char **)&timesthru[8], aOtheronline) )
    gOtherOnline = 0;
  if ( !strstr(*(const char **)&timesthru[8], aNohardid) )
  {
    *(_DWORD *)&timesthru[12] = gHardID;
    *(_DWORD *)&timesthru[4] = byte_58948F;
    if ( memcmp(gHardID, byte_58948F, 0xAu) )
      LPerror(5);
  }
  if ( !strstr(*(const char **)&timesthru[8], aNodosid) && (double)idosversion >= dbl_4ECF38 )
    LPerror(13);
  CopyLicenseToGlobals();
  strcpy(gPCExpire, gExpire);
  *(_DWORD *)&timesthru[12] = strstr(gPCExpire, asc_4ECE70);
  if ( *(_DWORD *)&timesthru[12] )
  {
    **(_BYTE **)&timesthru[12] = 0;
    strcpy(gOnlineExpire, (const char *)(*(_DWORD *)&timesthru[12] + 1));
  }
  else
  {
    strcpy(gOnlineExpire, byte_4ECE74);
  }
  while ( 1 )
  {
    while ( 1 )
    {
      if ( !*(_DWORD *)timesthru )
      {
        if ( *(_DWORD *)&timesthru[16] && LicenseOnCB() )
        {
          CopyClipboardToGlobals();
          CopyGlobalsToLicense();
          *(_DWORD *)&timesthru[16] = 0;
          *(_DWORD *)timesthru = 1;
        }
        else if ( LicenseOnCB() && (!gOwner || !gSite || !gPhone || !gExpire[0] || !gKey) )
        {
          *(_DWORD *)timesthru = 1;
        }
      }
      if ( *(_DWORD *)&timesthru[16] || !gOwner || !gSite || !gPhone || !gExpire[0] || !gKey )
      {
        GetRegistration();
        *(_DWORD *)timesthru = 2;
      }
      *(_DWORD *)&timesthru[16] = 0;
      MD5Init((int)&timesthru[424]);
      *(_DWORD *)&timesthru[4] = License;
      v0 = strlen(License);
      MD5Update((int)&timesthru[424], *(int *)&timesthru[4], v0);
      *(_DWORD *)&timesthru[4] = byte_588C97;
      v1 = strlen(byte_588C97);
      MD5Update((int)&timesthru[424], *(int *)&timesthru[4], v1);
      *(_DWORD *)&timesthru[4] = byte_588D96;
      v2 = strlen(byte_588D96);
      MD5Update((int)&timesthru[424], *(int *)&timesthru[4], v2);
      *(_DWORD *)&timesthru[4] = byte_588F94;
      v3 = strlen(byte_588F94);
      MD5Update((int)&timesthru[424], *(int *)&timesthru[4], v3);
      *(_DWORD *)&timesthru[4] = byte_588E95;
      v4 = strlen(byte_588E95);
      MD5Update((int)&timesthru[424], *(int *)&timesthru[4], v4);
      *(_DWORD *)&timesthru[4] = byte_589093;
      v5 = strlen(byte_589093);
      MD5Update((int)&timesthru[424], *(int *)&timesthru[4], v5);
      MD5Final((int)&timesthru[424]);
      *(_DWORD *)&timesthru[12] = &timesthru[412];
      *(_DWORD *)&timesthru[4] = byte_589390;
      *(_DWORD *)&timesthru[20] = 0;
      while ( *(int *)&timesthru[20] < 5 )
      {
        sprintf(
          (char *const)(*(_DWORD *)&timesthru[12] + 2 * *(_DWORD *)&timesthru[20]),
          "%02x",
          (unsigned __int8)timesthru[*(_DWORD *)&timesthru[20] + 512]);
        ++*(_DWORD *)&timesthru[20];
      }
      if ( !memcmp(*(const void **)&timesthru[12], *(const void **)&timesthru[4], 0xAu) )
        break;
      if ( *(_DWORD *)timesthru )
      {
        LPerror(-1);
        ++*(_DWORD *)timesthru;
      }
      *(_DWORD *)&timesthru[16] = 1;
    }
    if ( *(_DWORD *)timesthru == 1 )
    {
      gNewLicense = 1;
      SaveLP();
    }
    if ( !memcmp(gPCExpire, aNone_0, 4u) )
      break;
    time((__time32_t *const)&timesthru[152]);
    sscanf(gPCExpire, "%d/%d/%d", &timesthru[36], &timesthru[28], &timesthru[32]);
    *(_DWORD *)&timesthru[124] = *(_DWORD *)&timesthru[28] - 1;
    *(_DWORD *)&timesthru[120] = *(_DWORD *)&timesthru[32];
    *(_DWORD *)&timesthru[108] = 0;
    *(_DWORD *)&timesthru[116] = 0;
    *(_DWORD *)&timesthru[112] = 0;
    *(_DWORD *)&timesthru[140] = -1;
    *(_DWORD *)&timesthru[128] = *(_DWORD *)&timesthru[36] - 1900;
    *(_DWORD *)&timesthru[148] = mktime((struct tm *const)&timesthru[108]);
    if ( *(int *)&timesthru[152] <= *(int *)&timesthru[148] )
    {
      if ( *(int *)&timesthru[152] < *(_DWORD *)&timesthru[148] + 2592000 )
      {
        v6 = ctime((const __time32_t *const)&timesthru[148]);
        strcpy(&timesthru[40], v6);
        *(_DWORD *)&timesthru[20] = 11;
        while ( *(int *)&timesthru[20] < 15 )
        {
          timesthru[*(_DWORD *)&timesthru[20] + 40] = timesthru[*(_DWORD *)&timesthru[20] + 49];
          ++*(_DWORD *)&timesthru[20];
        }
        timesthru[55] = 0;
        sprintf(&timesthru[156], "%s\r\n\t%s\r\n\r\n%s", aBioLoomPeriodE, &timesthru[40], aPleaseContactB);
        SimpErrMesg((int)&timesthru[156]);
      }
      break;
    }
    LPerror(-3);
    *(_DWORD *)&timesthru[16] = 1;
  }
  if ( strlen(gOnlineExpire) )
  {
    if ( memcmp(gOnlineExpire, aNone_0, 4u) )
    {
      time((__time32_t *const)&timesthru[152]);
      sscanf(gOnlineExpire, "%d/%d/%d", &timesthru[36], &timesthru[28], &timesthru[32]);
      *(_DWORD *)&timesthru[88] = *(_DWORD *)&timesthru[28] - 1;
      *(_DWORD *)&timesthru[84] = *(_DWORD *)&timesthru[32];
      *(_DWORD *)&timesthru[72] = 0;
      *(_DWORD *)&timesthru[80] = 0;
      *(_DWORD *)&timesthru[76] = 0;
      *(_DWORD *)&timesthru[104] = -1;
      *(_DWORD *)&timesthru[92] = *(_DWORD *)&timesthru[36] - 1900;
      *(_DWORD *)&timesthru[144] = mktime((struct tm *const)&timesthru[72]);
      if ( *(int *)&timesthru[152] <= *(int *)&timesthru[144] )
      {
        if ( *(int *)&timesthru[152] < *(_DWORD *)&timesthru[144] + 2592000 )
        {
          gOnline = 1;
          v7 = ctime((const __time32_t *const)&timesthru[144]);
          strcpy(&timesthru[40], v7);
          *(_DWORD *)&timesthru[20] = 11;
          while ( *(int *)&timesthru[20] < 15 )
          {
            timesthru[*(_DWORD *)&timesthru[20] + 40] = timesthru[*(_DWORD *)&timesthru[20] + 49];
            ++*(_DWORD *)&timesthru[20];
          }
          timesthru[55] = 0;
          sprintf(&timesthru[156], "%s\r\n\t%s\r\n\r\n%s", aOnlineSubscrip, &timesthru[40], aPleaseContactB);
          SimpErrMesg((int)&timesthru[156]);
        }
      }
      else
      {
        gOnline = 0;
      }
    }
  }
  else
  {
    gOnline = 0;
  }
  return 0;
}

看大佬们指导一下。


[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

上传的附件:
收藏
免费 0
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回
//