-
-
未解决 [求助] 100雪币
-
发表于: 2024-8-20 15:10 1423
-
最近在看一个化学软件,是一个比较古老的软件,看怎么绕过。
用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 * )×thru[ 12 ] = &driveletter; idrivenumber = (driveletter & 0x7F ) - 65 ; * (_DWORD * )×thru[ 16 ] = 0 ; * (_DWORD * )timesthru = 0 ; gNewLicense = 0 ; OpenLPfile(); ReadLPfile(); * (_DWORD * )×thru[ 8 ] = byte_588E95; if ( !strstr(byte_588E95, aThor) ) gOnlineTHOR = 0 ; if ( !strstr( * (const char * * )×thru[ 8 ], aQsar) ) gOnlineQSAR = 0 ; if ( !strstr( * (const char * * )×thru[ 8 ], aOtheronline) ) gOtherOnline = 0 ; if ( !strstr( * (const char * * )×thru[ 8 ], aNohardid) ) { * (_DWORD * )×thru[ 12 ] = gHardID; * (_DWORD * )×thru[ 4 ] = byte_58948F; if ( memcmp(gHardID, byte_58948F, 0xAu ) ) LPerror( 5 ); } if ( !strstr( * (const char * * )×thru[ 8 ], aNodosid) && (double)idosversion > = dbl_4ECF38 ) LPerror( 13 ); CopyLicenseToGlobals(); strcpy(gPCExpire, gExpire); * (_DWORD * )×thru[ 12 ] = strstr(gPCExpire, asc_4ECE70); if ( * (_DWORD * )×thru[ 12 ] ) { * * (_BYTE * * )×thru[ 12 ] = 0 ; strcpy(gOnlineExpire, (const char * )( * (_DWORD * )×thru[ 12 ] + 1 )); } else { strcpy(gOnlineExpire, byte_4ECE74); } while ( 1 ) { while ( 1 ) { if ( ! * (_DWORD * )timesthru ) { if ( * (_DWORD * )×thru[ 16 ] && LicenseOnCB() ) { CopyClipboardToGlobals(); CopyGlobalsToLicense(); * (_DWORD * )×thru[ 16 ] = 0 ; * (_DWORD * )timesthru = 1 ; } else if ( LicenseOnCB() && (!gOwner || !gSite || !gPhone || !gExpire[ 0 ] || !gKey) ) { * (_DWORD * )timesthru = 1 ; } } if ( * (_DWORD * )×thru[ 16 ] || !gOwner || !gSite || !gPhone || !gExpire[ 0 ] || !gKey ) { GetRegistration(); * (_DWORD * )timesthru = 2 ; } * (_DWORD * )×thru[ 16 ] = 0 ; MD5Init(( int )×thru[ 424 ]); * (_DWORD * )×thru[ 4 ] = License; v0 = strlen(License); MD5Update(( int )×thru[ 424 ], * ( int * )×thru[ 4 ], v0); * (_DWORD * )×thru[ 4 ] = byte_588C97; v1 = strlen(byte_588C97); MD5Update(( int )×thru[ 424 ], * ( int * )×thru[ 4 ], v1); * (_DWORD * )×thru[ 4 ] = byte_588D96; v2 = strlen(byte_588D96); MD5Update(( int )×thru[ 424 ], * ( int * )×thru[ 4 ], v2); * (_DWORD * )×thru[ 4 ] = byte_588F94; v3 = strlen(byte_588F94); MD5Update(( int )×thru[ 424 ], * ( int * )×thru[ 4 ], v3); * (_DWORD * )×thru[ 4 ] = byte_588E95; v4 = strlen(byte_588E95); MD5Update(( int )×thru[ 424 ], * ( int * )×thru[ 4 ], v4); * (_DWORD * )×thru[ 4 ] = byte_589093; v5 = strlen(byte_589093); MD5Update(( int )×thru[ 424 ], * ( int * )×thru[ 4 ], v5); MD5Final(( int )×thru[ 424 ]); * (_DWORD * )×thru[ 12 ] = ×thru[ 412 ]; * (_DWORD * )×thru[ 4 ] = byte_589390; * (_DWORD * )×thru[ 20 ] = 0 ; while ( * ( int * )×thru[ 20 ] < 5 ) { sprintf( (char * const)( * (_DWORD * )×thru[ 12 ] + 2 * * (_DWORD * )×thru[ 20 ]), "%02x" , (unsigned __int8)timesthru[ * (_DWORD * )×thru[ 20 ] + 512 ]); + + * (_DWORD * )×thru[ 20 ]; } if ( !memcmp( * (const void * * )×thru[ 12 ], * (const void * * )×thru[ 4 ], 0xAu ) ) break ; if ( * (_DWORD * )timesthru ) { LPerror( - 1 ); + + * (_DWORD * )timesthru; } * (_DWORD * )×thru[ 16 ] = 1 ; } if ( * (_DWORD * )timesthru = = 1 ) { gNewLicense = 1 ; SaveLP(); } if ( !memcmp(gPCExpire, aNone_0, 4u ) ) break ; time((__time32_t * const)×thru[ 152 ]); sscanf(gPCExpire, "%d/%d/%d" , ×thru[ 36 ], ×thru[ 28 ], ×thru[ 32 ]); * (_DWORD * )×thru[ 124 ] = * (_DWORD * )×thru[ 28 ] - 1 ; * (_DWORD * )×thru[ 120 ] = * (_DWORD * )×thru[ 32 ]; * (_DWORD * )×thru[ 108 ] = 0 ; * (_DWORD * )×thru[ 116 ] = 0 ; * (_DWORD * )×thru[ 112 ] = 0 ; * (_DWORD * )×thru[ 140 ] = - 1 ; * (_DWORD * )×thru[ 128 ] = * (_DWORD * )×thru[ 36 ] - 1900 ; * (_DWORD * )×thru[ 148 ] = mktime((struct tm * const)×thru[ 108 ]); if ( * ( int * )×thru[ 152 ] < = * ( int * )×thru[ 148 ] ) { if ( * ( int * )×thru[ 152 ] < * (_DWORD * )×thru[ 148 ] + 2592000 ) { v6 = ctime((const __time32_t * const)×thru[ 148 ]); strcpy(×thru[ 40 ], v6); * (_DWORD * )×thru[ 20 ] = 11 ; while ( * ( int * )×thru[ 20 ] < 15 ) { timesthru[ * (_DWORD * )×thru[ 20 ] + 40 ] = timesthru[ * (_DWORD * )×thru[ 20 ] + 49 ]; + + * (_DWORD * )×thru[ 20 ]; } timesthru[ 55 ] = 0 ; sprintf(×thru[ 156 ], "%s\r\n\t%s\r\n\r\n%s" , aBioLoomPeriodE, ×thru[ 40 ], aPleaseContactB); SimpErrMesg(( int )×thru[ 156 ]); } break ; } LPerror( - 3 ); * (_DWORD * )×thru[ 16 ] = 1 ; } if ( strlen(gOnlineExpire) ) { if ( memcmp(gOnlineExpire, aNone_0, 4u ) ) { time((__time32_t * const)×thru[ 152 ]); sscanf(gOnlineExpire, "%d/%d/%d" , ×thru[ 36 ], ×thru[ 28 ], ×thru[ 32 ]); * (_DWORD * )×thru[ 88 ] = * (_DWORD * )×thru[ 28 ] - 1 ; * (_DWORD * )×thru[ 84 ] = * (_DWORD * )×thru[ 32 ]; * (_DWORD * )×thru[ 72 ] = 0 ; * (_DWORD * )×thru[ 80 ] = 0 ; * (_DWORD * )×thru[ 76 ] = 0 ; * (_DWORD * )×thru[ 104 ] = - 1 ; * (_DWORD * )×thru[ 92 ] = * (_DWORD * )×thru[ 36 ] - 1900 ; * (_DWORD * )×thru[ 144 ] = mktime((struct tm * const)×thru[ 72 ]); if ( * ( int * )×thru[ 152 ] < = * ( int * )×thru[ 144 ] ) { if ( * ( int * )×thru[ 152 ] < * (_DWORD * )×thru[ 144 ] + 2592000 ) { gOnline = 1 ; v7 = ctime((const __time32_t * const)×thru[ 144 ]); strcpy(×thru[ 40 ], v7); * (_DWORD * )×thru[ 20 ] = 11 ; while ( * ( int * )×thru[ 20 ] < 15 ) { timesthru[ * (_DWORD * )×thru[ 20 ] + 40 ] = timesthru[ * (_DWORD * )×thru[ 20 ] + 49 ]; + + * (_DWORD * )×thru[ 20 ]; } timesthru[ 55 ] = 0 ; sprintf(×thru[ 156 ], "%s\r\n\t%s\r\n\r\n%s" , aOnlineSubscrip, ×thru[ 40 ], aPleaseContactB); SimpErrMesg(( int )×thru[ 156 ]); } } else { gOnline = 0 ; } } } else { gOnline = 0 ; } return 0 ; } |
看大佬们指导一下。
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
他的文章
- [求助] 1424
- [求助] rlm 14 客户端的一个dll,请教如何替换pubkey或者爆破 6994
- [求助]flexlm 11.15 daemon 64位寻找seed1/2 9477
- [分享]RLM新版本公钥替换的方法 14905
看原图
赞赏
雪币:
留言: