-
-
[旧帖] [求助]请教此反汇编函数功能~麻烦各位大虾 0.00雪花
-
发表于: 2009-9-26 11:59 1108
-
CODE:0040229C ; int __fastcall string1(LPCSTR lpString2, LPCSTR lpString)
CODE:0040229C string1 proc near ; CODE XREF: sub_402F40+50p
CODE:0040229C ; sub_402F40+71p ...
CODE:0040229C
CODE:0040229C var_834 = dword ptr -834h
CODE:0040229C String2 = byte ptr -830h
CODE:0040229C String1 = byte ptr -810h
CODE:0040229C var_410 = byte ptr -410h
CODE:0040229C
CODE:0040229C push ebx
CODE:0040229D push esi
CODE:0040229E push edi
CODE:0040229F push ebp
CODE:004022A0 add esp, 0FFFFF7DCh
CODE:004022A6 mov edi, ecx
CODE:004022A8 mov ebp, edx
CODE:004022AA mov esi, eax
CODE:004022AC push esi ; lpString
CODE:004022AD call lstrlenA
CODE:004022B2 mov ebx, eax
CODE:004022B4 push esi ; lpString2
CODE:004022B5 lea eax, [esp+838h+String1]
CODE:004022B9 push eax ; lpString1
CODE:004022BA call lstrcpyA
CODE:004022BF push offset String2 ; lpString2
CODE:004022C4 lea eax, [esp+838h+var_410]
CODE:004022CB push eax ; lpString1
CODE:004022CC call lstrcpyA
CODE:004022D1 mov esi, ebx
CODE:004022D3 dec esi
CODE:004022D4 test esi, esi
CODE:004022D6 jl short loc_402318
CODE:004022D8 inc esi
CODE:004022D9 lea ebx, [esp+834h+String1]
CODE:004022DD
CODE:004022DD loc_4022DD: ; CODE XREF: string1+7Aj
CODE:004022DD xor eax, eax
CODE:004022DF mov al, [ebx]
CODE:004022E1 mov [esp+834h+var_834], eax
CODE:004022E4 push esp ; arglist
CODE:004022E5 push offset a02x ; "%02X"
CODE:004022EA lea eax, [esp+83Ch+String2]
CODE:004022EE push eax ; LPSTR
CODE:004022EF call wvsprintfA
CODE:004022F4 push edi ; lpString2
CODE:004022F5 lea eax, [esp+838h+var_410]
CODE:004022FC push eax ; lpString1
CODE:004022FD call lstrcatA
CODE:00402302 lea eax, [esp+834h+String2]
CODE:00402306 push eax ; lpString2
CODE:00402307 lea eax, [esp+838h+var_410]
CODE:0040230E push eax ; lpString1
CODE:0040230F call lstrcatA
CODE:00402314 inc ebx
CODE:00402315 dec esi
CODE:00402316 jnz short loc_4022DD
CODE:00402318
CODE:00402318 loc_402318: ; CODE XREF: string1+3Aj
CODE:00402318 lea eax, [esp+834h+var_410]
CODE:0040231F push eax ; lpString2
CODE:00402320 push ebp ; lpString1
CODE:00402321 call lstrcpyA
CODE:00402326 push ebp ; lpString
CODE:00402327 call lstrlenA
CODE:0040232C add esp, 824h
CODE:00402332 pop ebp
CODE:00402333 pop edi
CODE:00402334 pop esi
CODE:00402335 pop ebx
CODE:00402336 retn
CODE:00402336 string1 endp
CODE:0040229C string1 proc near ; CODE XREF: sub_402F40+50p
CODE:0040229C ; sub_402F40+71p ...
CODE:0040229C
CODE:0040229C var_834 = dword ptr -834h
CODE:0040229C String2 = byte ptr -830h
CODE:0040229C String1 = byte ptr -810h
CODE:0040229C var_410 = byte ptr -410h
CODE:0040229C
CODE:0040229C push ebx
CODE:0040229D push esi
CODE:0040229E push edi
CODE:0040229F push ebp
CODE:004022A0 add esp, 0FFFFF7DCh
CODE:004022A6 mov edi, ecx
CODE:004022A8 mov ebp, edx
CODE:004022AA mov esi, eax
CODE:004022AC push esi ; lpString
CODE:004022AD call lstrlenA
CODE:004022B2 mov ebx, eax
CODE:004022B4 push esi ; lpString2
CODE:004022B5 lea eax, [esp+838h+String1]
CODE:004022B9 push eax ; lpString1
CODE:004022BA call lstrcpyA
CODE:004022BF push offset String2 ; lpString2
CODE:004022C4 lea eax, [esp+838h+var_410]
CODE:004022CB push eax ; lpString1
CODE:004022CC call lstrcpyA
CODE:004022D1 mov esi, ebx
CODE:004022D3 dec esi
CODE:004022D4 test esi, esi
CODE:004022D6 jl short loc_402318
CODE:004022D8 inc esi
CODE:004022D9 lea ebx, [esp+834h+String1]
CODE:004022DD
CODE:004022DD loc_4022DD: ; CODE XREF: string1+7Aj
CODE:004022DD xor eax, eax
CODE:004022DF mov al, [ebx]
CODE:004022E1 mov [esp+834h+var_834], eax
CODE:004022E4 push esp ; arglist
CODE:004022E5 push offset a02x ; "%02X"
CODE:004022EA lea eax, [esp+83Ch+String2]
CODE:004022EE push eax ; LPSTR
CODE:004022EF call wvsprintfA
CODE:004022F4 push edi ; lpString2
CODE:004022F5 lea eax, [esp+838h+var_410]
CODE:004022FC push eax ; lpString1
CODE:004022FD call lstrcatA
CODE:00402302 lea eax, [esp+834h+String2]
CODE:00402306 push eax ; lpString2
CODE:00402307 lea eax, [esp+838h+var_410]
CODE:0040230E push eax ; lpString1
CODE:0040230F call lstrcatA
CODE:00402314 inc ebx
CODE:00402315 dec esi
CODE:00402316 jnz short loc_4022DD
CODE:00402318
CODE:00402318 loc_402318: ; CODE XREF: string1+3Aj
CODE:00402318 lea eax, [esp+834h+var_410]
CODE:0040231F push eax ; lpString2
CODE:00402320 push ebp ; lpString1
CODE:00402321 call lstrcpyA
CODE:00402326 push ebp ; lpString
CODE:00402327 call lstrlenA
CODE:0040232C add esp, 824h
CODE:00402332 pop ebp
CODE:00402333 pop edi
CODE:00402334 pop esi
CODE:00402335 pop ebx
CODE:00402336 retn
CODE:00402336 string1 endp
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
他的文章
- [原创]病毒分析报告 2707
- [原创][交流]本鸟很菜,学习三个月,分析个病毒看看 1670
- [求助]请教此反汇编函数功能~麻烦各位大虾 1109
看原图
赞赏
雪币:
留言: