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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
| int __thiscall generateKey(char *this, int a2, char a3, int a4, int a5, int a6, int a7, int a8)
{
int v8; // eax
int v9; // edx
int v11; // [esp+8h] [ebp-37Ch]
char *v12; // [esp+20h] [ebp-364h]
int len_username_b_MonthDay; // [esp+24h] [ebp-360h]
char *v14; // [esp+28h] [ebp-35Ch]
int len_bUsernameMonthDay; // [esp+2Ch] [ebp-358h]
char *v16; // [esp+30h] [ebp-354h]
char *mem_17; // [esp+34h] [ebp-350h]
int v18; // [esp+38h] [ebp-34Ch]
int lenMonthDay; // [esp+3Ch] [ebp-348h]
int lenUsername; // [esp+40h] [ebp-344h]
int v21; // [esp+44h] [ebp-340h]
int v22; // [esp+48h] [ebp-33Ch]
int *v23; // [esp+4Ch] [ebp-338h]
int v24; // [esp+50h] [ebp-334h]
const char *v25; // [esp+54h] [ebp-330h]
int len_HbKeyGa; // [esp+58h] [ebp-32Ch]
int lenHbKeyGa; // [esp+5Ch] [ebp-328h]
char *pMem_64_a; // [esp+60h] [ebp-324h]
int len_HbKeyGb; // [esp+64h] [ebp-320h]
int lenHbKeyGb; // [esp+68h] [ebp-31Ch]
char *pMem_64_b; // [esp+6Ch] [ebp-318h]
int v32; // [esp+70h] [ebp-314h]
int v33; // [esp+74h] [ebp-310h]
int v34; // [esp+78h] [ebp-30Ch]
int v35; // [esp+7Ch] [ebp-308h]
int len_monthDay_Username_b; // [esp+80h] [ebp-304h]
char *v37; // [esp+84h] [ebp-300h]
int len_username_MonthDay_b; // [esp+88h] [ebp-2FCh]
LPVOID lp_mix_md5_1; // [esp+8Ch] [ebp-2F8h]
size_t v40; // [esp+90h] [ebp-2F4h]
int v41; // [esp+94h] [ebp-2F0h]
LPVOID v42; // [esp+98h] [ebp-2ECh]
LPVOID v43; // [esp+9Ch] [ebp-2E8h]
LPVOID v44; // [esp+A0h] [ebp-2E4h]
int index3; // [esp+A4h] [ebp-2E0h]
int index2; // [esp+A8h] [ebp-2DCh]
char *pHbKeyGa; // [esp+ACh] [ebp-2D8h]
int index6; // [esp+B0h] [ebp-2D4h]
int index5; // [esp+B4h] [ebp-2D0h]
_DWORD *md5_monthDay_Username_b; // [esp+B8h] [ebp-2CCh]
_DWORD *md5_username_b_MonthDay; // [esp+BCh] [ebp-2C8h]
_DWORD *md5_username_MonthDay_b; // [esp+C0h] [ebp-2C4h]
void *mix_md5_1; // [esp+C4h] [ebp-2C0h]
int md5_1_pLus3remainder4; // [esp+C8h] [ebp-2BCh]
int md5_bUsernameMonthDay; // [esp+CCh] [ebp-2B8h]
char *pHbKeyGb; // [esp+D0h] [ebp-2B4h]
void *v57; // [esp+D4h] [ebp-2B0h]
void *v58; // [esp+D8h] [ebp-2ACh]
int md5_4_plus5remainer4; // [esp+DCh] [ebp-2A8h]
void *mix_md5_2; // [esp+E0h] [ebp-2A4h]
const char *userName; // [esp+E4h] [ebp-2A0h]
char *monthDay; // [esp+E8h] [ebp-29Ch]
char *bUsernameMonthDay; // [esp+ECh] [ebp-298h]
char *username_b_MonthDay; // [esp+F0h] [ebp-294h]
char *username_MonthDay_b; // [esp+F4h] [ebp-290h]
char *monthDay_Username_b; // [esp+F8h] [ebp-28Ch]
char *p_HbKeyGb; // [esp+FCh] [ebp-288h]
char *p_HbKeyGa; // [esp+100h] [ebp-284h]
const char *username; // [esp+104h] [ebp-280h]
_DWORD *md5_2; // [esp+108h] [ebp-27Ch]
_DWORD *md5_3; // [esp+10Ch] [ebp-278h]
int index1; // [esp+114h] [ebp-270h]
int index4; // [esp+118h] [ebp-26Ch]
int temp1; // [esp+11Ch] [ebp-268h]
int temp2; // [esp+120h] [ebp-264h]
_DWORD *md5_4; // [esp+124h] [ebp-260h]
int md5_1; // [esp+128h] [ebp-25Ch]
size_t SizeInBytes; // [esp+134h] [ebp-250h]
char *DstBuf; // [esp+138h] [ebp-24Ch]
char *pThis; // [esp+13Ch] [ebp-248h]
int v81; // [esp+140h] [ebp-244h]
int v82; // [esp+144h] [ebp-240h]
int v83; // [esp+148h] [ebp-23Ch]
int v84; // [esp+14Ch] [ebp-238h]
int v85; // [esp+150h] [ebp-234h]
int v86; // [esp+154h] [ebp-230h]
int v87; // [esp+158h] [ebp-22Ch]
int v88; // [esp+15Ch] [ebp-228h]
char hbKey; // [esp+160h] [ebp-224h]
char v90; // [esp+161h] [ebp-223h]
char hbKeyGa; // [esp+1E4h] [ebp-1A0h]
char mem_64_a; // [esp+1E5h] [ebp-19Fh]
char hbKeyGb; // [esp+228h] [ebp-15Ch]
char mem_64_b; // [esp+229h] [ebp-15Bh]
char v95; // [esp+22Fh] [ebp-155h]
char v96[4]; // [esp+26Ch] [ebp-118h]
char v97[5]; // [esp+270h] [ebp-114h]
int v98; // [esp+275h] [ebp-10Fh]
int v99; // [esp+279h] [ebp-10Bh]
int v100; // [esp+27Dh] [ebp-107h]
int v101; // [esp+281h] [ebp-103h]
int v102; // [esp+285h] [ebp-FFh]
__int16 v103; // [esp+289h] [ebp-FBh]
char v104; // [esp+28Bh] [ebp-F9h]
char v105[4]; // [esp+28Ch] [ebp-F8h]
char v106[5]; // [esp+290h] [ebp-F4h]
int v107; // [esp+295h] [ebp-EFh]
int v108; // [esp+299h] [ebp-EBh]
int v109; // [esp+29Dh] [ebp-E7h]
int v110; // [esp+2A1h] [ebp-E3h]
int v111; // [esp+2A5h] [ebp-DFh]
__int16 v112; // [esp+2A9h] [ebp-DBh]
char v113; // [esp+2ABh] [ebp-D9h]
char v114[4]; // [esp+2ACh] [ebp-D8h]
char v115[5]; // [esp+2B0h] [ebp-D4h]
int v116; // [esp+2B5h] [ebp-CFh]
int v117; // [esp+2B9h] [ebp-CBh]
int v118; // [esp+2BDh] [ebp-C7h]
int v119; // [esp+2C1h] [ebp-C3h]
int v120; // [esp+2C5h] [ebp-BFh]
__int16 v121; // [esp+2C9h] [ebp-BBh]
char v122; // [esp+2CBh] [ebp-B9h]
char v123[4]; // [esp+2CCh] [ebp-B8h]
char v124[5]; // [esp+2D0h] [ebp-B4h]
int v125; // [esp+2D5h] [ebp-AFh]
int v126; // [esp+2D9h] [ebp-ABh]
int v127; // [esp+2DDh] [ebp-A7h]
int v128; // [esp+2E1h] [ebp-A3h]
int v129; // [esp+2E5h] [ebp-9Fh]
__int16 v130; // [esp+2E9h] [ebp-9Bh]
char v131; // [esp+2EBh] [ebp-99h]
char char_array_29_2[29]; // [esp+2ECh] [ebp-98h]
__int16 v133; // [esp+309h] [ebp-7Bh]
char v134; // [esp+30Bh] [ebp-79h]
char char_array_29_1[29]; // [esp+30Ch] [ebp-78h]
__int16 v136; // [esp+329h] [ebp-5Bh]
char v137; // [esp+32Bh] [ebp-59h]
char char_array_29_3[29]; // [esp+32Ch] [ebp-58h]
__int16 v139; // [esp+349h] [ebp-3Bh]
char v140; // [esp+34Bh] [ebp-39h]
char char_array_29_4[29]; // [esp+34Ch] [ebp-38h]
__int16 v142; // [esp+369h] [ebp-1Bh]
char v143; // [esp+36Bh] [ebp-19h]
char month_day; // [esp+36Ch] [ebp-18h]
int v145; // [esp+36Dh] [ebp-17h]
int v146; // [esp+380h] [ebp-4h]
pThis = this;
v41 = 0;
v146 = 0;
username = 0;
v40 = sub_421680("@hbxy", 0);
if ( v40 != -1 )
{
v33 = sub_421630((int)&v11, 0, v40);
std::basic_string<char,std::char_traits<char>,std::allocator<char>>::operator=(v33);
std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>>(&v11);
}
username = (const char *)get_username(&a3);
userName = username;
v25 = username + 1;
userName += strlen(userName);
v24 = ++userName - (username + 1);
lenUsername = userName - (username + 1);
month_day = 0;
v145 = 0;
strftime(&month_day, 5u, "%m%d", (const struct tm *)(pThis + 8));
monthDay = &month_day;
v23 = &v145;
monthDay += strlen(monthDay);
v21 = ++monthDay - (char *)&v145;
lenMonthDay = monthDay - (char *)&v145;
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(pThis, ">>> GetHBKey: %s >>>", &month_day);
v18 = 1;
SizeInBytes = lenMonthDay + lenUsername + 2;
mem_17 = (char *)malloc(SizeInBytes);
DstBuf = mem_17;
memset(mem_17, 0, SizeInBytes);
sprintf_s(DstBuf, SizeInBytes, "%c%s%s", pThis[4], username, &month_day);// "b177628979080516"
bUsernameMonthDay = DstBuf;
v16 = DstBuf + 1;
bUsernameMonthDay += strlen(bUsernameMonthDay);
len_bUsernameMonthDay = ++bUsernameMonthDay - (DstBuf + 1);
md5_bUsernameMonthDay = md5_StrWithLength(DstBuf, bUsernameMonthDay - (DstBuf + 1));// 5e64fdaa6449e2abb9693f2757c11652
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(
pThis,
"[HBKEY] mdata1: %s [%s]",
DstBuf,
md5_bUsernameMonthDay);
memset(DstBuf, 0, SizeInBytes);
sprintf_s(DstBuf, SizeInBytes, "%s%c%s", username, pThis[4], &month_day);// "17762897908b0516"
username_b_MonthDay = DstBuf;
v14 = DstBuf + 1;
username_b_MonthDay += strlen(username_b_MonthDay);
len_username_b_MonthDay = ++username_b_MonthDay - (DstBuf + 1);
md5_username_b_MonthDay = (_DWORD *)md5_StrWithLength(DstBuf, username_b_MonthDay - (DstBuf + 1));// 16dffe496172e2fb1bdb9b2002bfb5a5
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(
pThis,
"[HBKEY] mdata2: %s [%s]",
DstBuf,
md5_username_b_MonthDay);
memset(DstBuf, 0, SizeInBytes);
sprintf_s(DstBuf, SizeInBytes, "%s%s%c", username, &month_day, pThis[4]);// "177628979080516b"
username_MonthDay_b = DstBuf;
v12 = DstBuf + 1;
username_MonthDay_b += strlen(username_MonthDay_b);
len_username_MonthDay_b = ++username_MonthDay_b - (DstBuf + 1);
md5_username_MonthDay_b = (_DWORD *)md5_StrWithLength(DstBuf, username_MonthDay_b - (DstBuf + 1));// 6614da7943beed0e7baafc0be7fb624c
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(
pThis,
"[HBKEY] mdata3: %s [%s]",
DstBuf,
md5_username_MonthDay_b);
memset(DstBuf, 0, SizeInBytes);
sprintf_s(DstBuf, SizeInBytes, "%s%s%c", &month_day, username, pThis[4]);// "051617762897908b"
monthDay_Username_b = DstBuf;
v37 = DstBuf + 1;
monthDay_Username_b += strlen(monthDay_Username_b);
len_monthDay_Username_b = ++monthDay_Username_b - (DstBuf + 1);
md5_monthDay_Username_b = (_DWORD *)md5_StrWithLength(DstBuf, monthDay_Username_b - (DstBuf + 1));// 2b28feebb48c0cb98b9f3da404fff646
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(
pThis,
"[HBKEY] mdata4: %s [%s]",
DstBuf,
md5_monthDay_Username_b);
md5_1 = 0;
md5_2 = 0;
md5_3 = 0;
md5_4 = 0;
if ( *(char *)(md5_bUsernameMonthDay + 1) % 2 )
{
md5_1 = md5_bUsernameMonthDay;
md5_2 = md5_username_MonthDay_b;
md5_3 = md5_username_b_MonthDay;
md5_4 = md5_monthDay_Username_b;
}
else
{
md5_1 = md5_bUsernameMonthDay;
md5_2 = md5_monthDay_Username_b;
md5_3 = md5_username_b_MonthDay;
md5_4 = md5_username_MonthDay_b;
}
hbKeyGa = 0;
memset(&mem_64_a, 0, 0x40u);
md5_1_pLus3remainder4 = *(char *)(md5_1 + 3) % 4;
// 以下一连串的赋值是使 char_array_29_1 = md5_1, char_array_29_2 = md5_2
char_array_29_1[0] = 0;
*(_DWORD *)&char_array_29_1[1] = 0;
*(_DWORD *)&char_array_29_1[5] = 0;
*(_DWORD *)&char_array_29_1[9] = 0;
*(_DWORD *)&char_array_29_1[13] = 0;
*(_DWORD *)&char_array_29_1[17] = 0;
*(_DWORD *)&char_array_29_1[21] = 0;
*(_DWORD *)&char_array_29_1[25] = 0;
v136 = 0;
v137 = 0;
char_array_29_2[0] = 0;
*(_DWORD *)&char_array_29_2[1] = 0;
*(_DWORD *)&char_array_29_2[5] = 0;
*(_DWORD *)&char_array_29_2[9] = 0;
*(_DWORD *)&char_array_29_2[13] = 0;
*(_DWORD *)&char_array_29_2[17] = 0;
*(_DWORD *)&char_array_29_2[21] = 0;
*(_DWORD *)&char_array_29_2[25] = 0;
v133 = 0;
v134 = 0;
*(_DWORD *)char_array_29_1 = *(_DWORD *)md5_1;
*(_DWORD *)&char_array_29_1[4] = *(_DWORD *)(md5_1 + 4);
*(_DWORD *)&char_array_29_1[8] = *(_DWORD *)(md5_1 + 8);
*(_DWORD *)&char_array_29_1[12] = *(_DWORD *)(md5_1 + 12);
*(_DWORD *)&char_array_29_1[16] = *(_DWORD *)(md5_1 + 16);
*(_DWORD *)&char_array_29_1[20] = *(_DWORD *)(md5_1 + 20);
*(_DWORD *)&char_array_29_1[24] = *(_DWORD *)(md5_1 + 24);
*(_DWORD *)&char_array_29_1[28] = *(_DWORD *)(md5_1 + 28);
*(_DWORD *)char_array_29_2 = *md5_2;
*(_DWORD *)&char_array_29_2[4] = md5_2[1];
*(_DWORD *)&char_array_29_2[8] = md5_2[2];
*(_DWORD *)&char_array_29_2[12] = md5_2[3];
*(_DWORD *)&char_array_29_2[16] = md5_2[4];
*(_DWORD *)&char_array_29_2[20] = md5_2[5];
*(_DWORD *)&char_array_29_2[24] = md5_2[6];
*(_DWORD *)&char_array_29_2[28] = md5_2[7];
v81 = md5_1_pLus3remainder4; // 0
v82 = abs(md5_1_pLus3remainder4 - 5) % 4; // 1
v8 = (md5_1_pLus3remainder4 + 2) % 4; // 2
v83 = (md5_1_pLus3remainder4 + 2) % 4; // 2
v84 = abs(md5_1_pLus3remainder4 - 3); // 3
v96[0] = 0;
*(_DWORD *)&v96[1] = 0;
*(_DWORD *)&v97[1] = 0;
v98 = 0;
v99 = 0;
v100 = 0;
v101 = 0;
v102 = 0;
v103 = 0;
v104 = 0;
v105[0] = 0;
*(_DWORD *)&v105[1] = 0;
*(_DWORD *)&v106[1] = 0;
v107 = 0;
v108 = 0;
v109 = 0;
v110 = 0;
v111 = 0;
v112 = 0;
v113 = 0;
*(_DWORD *)v96 = *(_DWORD *)&char_array_29_1[8 * md5_1_pLus3remainder4];
*(_DWORD *)v97 = *(_DWORD *)&char_array_29_1[8 * md5_1_pLus3remainder4 + 4];
*(_DWORD *)&v97[4] = *(_DWORD *)&char_array_29_2[8 * v82];
*(int *)((char *)&v98 + 3) = *(_DWORD *)&char_array_29_2[8 * v82 + 4];
*(int *)((char *)&v99 + 3) = *(_DWORD *)&char_array_29_1[8 * v8];
*(int *)((char *)&v100 + 3) = *(_DWORD *)&char_array_29_1[8 * v8 + 4];
*(int *)((char *)&v101 + 3) = *(_DWORD *)&char_array_29_2[8 * v84];
*(int *)((char *)&v102 + 3) = *(_DWORD *)&char_array_29_2[8 * v84 + 4];
*(_DWORD *)v105 = *(_DWORD *)&char_array_29_2[8 * md5_1_pLus3remainder4];
*(_DWORD *)v106 = *(_DWORD *)&char_array_29_2[8 * md5_1_pLus3remainder4 + 4];
*(_DWORD *)&v106[4] = *(_DWORD *)&char_array_29_1[8 * v82];
*(int *)((char *)&v107 + 3) = *(_DWORD *)&char_array_29_1[8 * v82 + 4];
*(int *)((char *)&v108 + 3) = *(_DWORD *)&char_array_29_2[8 * v8];
*(int *)((char *)&v109 + 3) = *(_DWORD *)&char_array_29_2[8 * v8 + 4];
*(int *)((char *)&v110 + 3) = *(_DWORD *)&char_array_29_1[8 * v84];
*(int *)((char *)&v111 + 3) = *(_DWORD *)&char_array_29_1[8 * v84 + 4];
mix_md5_1 = (void *)md5_StrWithLength(v96, 32);// 第一个参数 5e64fdaa43beed0eb9693f27e7fb624c6614da796449e2ab7baafc0b57c11652
// 返回值 5008ef506febfc228802dd43b99c1869
// 为 5e64fdaa43beed0eb9693f27e7fb624c 的 md5
mix_md5_2 = (void *)md5_StrWithLength(v105, 32);// 第一个参数 6614da796449e2ab7baafc0b57c11652
// 返回值 46e4a9da513469a20da82e3136f46951
sprintf_s(&hbKeyGa, 0x41u, "%s%s", mix_md5_1, mix_md5_2);// hbKeyGa = "5008ef506febfc228802dd43b99c186946e4a9da513469a20da82e3136f46951"
lp_mix_md5_1 = mix_md5_1;
j_j___free_base(mix_md5_1);
if ( lp_mix_md5_1 )
{
mix_md5_1 = (void *)33059;
v35 = 33059;
}
else
{
v35 = 0;
}
v44 = mix_md5_2;
j_j___free_base(mix_md5_2);
if ( v44 )
{
mix_md5_2 = (void *)33059;
v34 = 33059;
}
else
{
v34 = 0;
}
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(pThis, "[HBKEY] ga: %s", &hbKeyGa);
hbKeyGb = 0;
memset(&mem_64_b, 0, 0x40u);
md5_4_plus5remainer4 = *((char *)md5_4 + 5) % 4;
// 以下一连串的赋值是使 char_array_29_3 = md5_3, char_array_29_4 = md5_4
char_array_29_3[0] = 0;
*(_DWORD *)&char_array_29_3[1] = 0;
*(_DWORD *)&char_array_29_3[5] = 0;
*(_DWORD *)&char_array_29_3[9] = 0;
*(_DWORD *)&char_array_29_3[13] = 0;
*(_DWORD *)&char_array_29_3[17] = 0;
*(_DWORD *)&char_array_29_3[21] = 0;
*(_DWORD *)&char_array_29_3[25] = 0;
v139 = 0;
v140 = 0;
char_array_29_4[0] = 0;
*(_DWORD *)&char_array_29_4[1] = 0;
*(_DWORD *)&char_array_29_4[5] = 0;
*(_DWORD *)&char_array_29_4[9] = 0;
*(_DWORD *)&char_array_29_4[13] = 0;
*(_DWORD *)&char_array_29_4[17] = 0;
*(_DWORD *)&char_array_29_4[21] = 0;
*(_DWORD *)&char_array_29_4[25] = 0;
v142 = 0;
v143 = 0;
*(_DWORD *)char_array_29_3 = *md5_3;
*(_DWORD *)&char_array_29_3[4] = md5_3[1];
*(_DWORD *)&char_array_29_3[8] = md5_3[2];
*(_DWORD *)&char_array_29_3[12] = md5_3[3];
*(_DWORD *)&char_array_29_3[16] = md5_3[4];
*(_DWORD *)&char_array_29_3[20] = md5_3[5];
*(_DWORD *)&char_array_29_3[24] = md5_3[6];
*(_DWORD *)&char_array_29_3[28] = md5_3[7];
*(_DWORD *)char_array_29_4 = *md5_4;
*(_DWORD *)&char_array_29_4[4] = md5_4[1];
*(_DWORD *)&char_array_29_4[8] = md5_4[2];
*(_DWORD *)&char_array_29_4[12] = md5_4[3];
*(_DWORD *)&char_array_29_4[16] = md5_4[4];
*(_DWORD *)&char_array_29_4[20] = md5_4[5];
*(_DWORD *)&char_array_29_4[24] = md5_4[6];
*(_DWORD *)&char_array_29_4[28] = md5_4[7];
v85 = md5_4_plus5remainer4; // 1
v86 = abs(md5_4_plus5remainer4 - 5) % 4; // 0
v9 = (md5_4_plus5remainer4 + 2) % 4; // 3
v87 = (md5_4_plus5remainer4 + 2) % 4; // 3
v88 = abs(md5_4_plus5remainer4 - 3); // 2
v114[0] = 0;
*(_DWORD *)&v114[1] = 0;
*(_DWORD *)&v115[1] = 0;
v116 = 0;
v117 = 0;
v118 = 0;
v119 = 0;
v120 = 0;
v121 = 0;
v122 = 0;
v123[0] = 0;
*(_DWORD *)&v123[1] = 0;
*(_DWORD *)&v124[1] = 0;
v125 = 0;
v126 = 0;
v127 = 0;
v128 = 0;
v129 = 0;
v130 = 0;
v131 = 0;
*(_DWORD *)v114 = *(_DWORD *)&char_array_29_3[8 * md5_4_plus5remainer4];
*(_DWORD *)v115 = *(_DWORD *)&char_array_29_3[8 * md5_4_plus5remainer4 + 4];
*(_DWORD *)&v115[4] = *(_DWORD *)&char_array_29_4[8 * v86];
*(int *)((char *)&v116 + 3) = *(_DWORD *)&char_array_29_4[8 * v86 + 4];
*(int *)((char *)&v117 + 3) = *(_DWORD *)&char_array_29_3[8 * v9];
*(int *)((char *)&v118 + 3) = *(_DWORD *)&char_array_29_3[8 * v9 + 4];
*(int *)((char *)&v119 + 3) = *(_DWORD *)&char_array_29_4[8 * v88];
*(int *)((char *)&v120 + 3) = *(_DWORD *)&char_array_29_4[8 * v88 + 4];
*(_DWORD *)v123 = *(_DWORD *)&char_array_29_4[8 * md5_4_plus5remainer4];
*(_DWORD *)v124 = *(_DWORD *)&char_array_29_4[8 * md5_4_plus5remainer4 + 4];
*(_DWORD *)&v124[4] = *(_DWORD *)&char_array_29_3[8 * v86];
*(int *)((char *)&v125 + 3) = *(_DWORD *)&char_array_29_3[8 * v86 + 4];
*(int *)((char *)&v126 + 3) = *(_DWORD *)&char_array_29_4[8 * v9];
*(int *)((char *)&v127 + 3) = *(_DWORD *)&char_array_29_4[8 * v9 + 4];
*(int *)((char *)&v128 + 3) = *(_DWORD *)&char_array_29_3[8 * v88];
*(int *)((char *)&v129 + 3) = *(_DWORD *)&char_array_29_3[8 * v88 + 4];
v58 = (void *)md5_StrWithLength(v114, 32); // 返回值 1ed63dc9a269d8705e297c03dcda7cf0
// 为 6172e2fb2b28feeb02bfb5a58b9f3da4 的 md5
v57 = (void *)md5_StrWithLength(v123, 32); // 返回值 25928da86463ce9beba8110d2d514464
// 为 b48c0cb916dffe4904fff6461bdb9b20 的 md5
sprintf_s(&hbKeyGb, 0x41u, "%s%s", v58, v57); // hbKeyGb = "1ed63dc9a269d8705e297c03dcda7cf025928da86463ce9beba8110d2d514464"
v43 = v58;
j_j___free_base(v58);
if ( v43 )
{
v58 = (void *)33059;
v22 = 33059;
}
else
{
v22 = 0;
}
v42 = v57;
j_j___free_base(v57);
if ( v42 )
{
v57 = (void *)33059;
v32 = 33059;
}
else
{
v32 = 0;
}
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(pThis, "[HBKEY] gb: %s", &hbKeyGb);
if ( v95 % 2 ) // 从反汇编中可看到 v95 为 hbkey_gb[7]
{
temp1 = 0;
p_HbKeyGa = &hbKeyGa;
pMem_64_a = &mem_64_a;
p_HbKeyGa += strlen(p_HbKeyGa);
lenHbKeyGa = ++p_HbKeyGa - &mem_64_a;
len_HbKeyGa = p_HbKeyGa - &mem_64_a;
while ( temp1 < len_HbKeyGa ) // 把 HbKeyGa 里面的小写字母全替换为大写
{
if ( *(&hbKeyGa + temp1) >= 97 && *(&hbKeyGa + temp1) <= 122 )
*(&hbKeyGa + temp1) -= 32;
++temp1;
}
}
else
{
temp2 = 0;
p_HbKeyGb = &hbKeyGb;
pMem_64_b = &mem_64_b;
p_HbKeyGb += strlen(p_HbKeyGb);
lenHbKeyGb = ++p_HbKeyGb - &mem_64_b;
len_HbKeyGb = p_HbKeyGb - &mem_64_b;
while ( temp2 < len_HbKeyGb ) // 把 HbKeyGb 里面的小写字母全替换为大写
{
if ( *(&hbKeyGb + temp2) >= 97 && *(&hbKeyGb + temp2) <= 122 )
*(&hbKeyGb + temp2) -= 32;
++temp2;
}
}
pHbKeyGa = &hbKeyGa;
pHbKeyGb = &hbKeyGb;
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(pThis, "[HBKEY] sga: %s", &hbKeyGa);
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(pThis, "[HBKEY] sgb: %s", pHbKeyGb);
hbKey = 0;
memset(&v90, 0, 0x80u);
if ( pHbKeyGb[9] % 2 )
{
index1 = 0;
index2 = 0;
index3 = 63;
while ( index1 < 128 )
{
*(&hbKey + index1++) = pHbKeyGa[index2++];
*(&hbKey + index1++) = pHbKeyGb[index3--];
}
}
else
{
index4 = 0;
index5 = 63;
index6 = 0;
while ( index4 < 128 )
{
*(&hbKey + index4++) = pHbKeyGa[index5--];
*(&hbKey + index4++) = pHbKeyGb[index6++];
}
}
(*(void (**)(char *, const char *, ...))(*(_DWORD *)pThis + 4))(pThis, "[HBKEY] key: %s", &hbKey);// hbKey = &"115e9d6643Fd6c391a32E6298dA8D70025Ae9269473c1053AdDc9dAa47Ec6f4092658912C89d9aB83644D6D32c0e898b2e2bCaF8B1E1F06d025dF5E184040654"
sub_40EC40((void *)a2, &hbKey);
v41 |= 1u;
v146 = -1;
std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>>(&a3);
return a2;
}
|