00404ECC 53 push ebx
00404ECD 56 push esi
00404ECE 57 push edi
00404ECF 89C6 mov esi,eax
00404ED1 89D7 mov edi,edx
00404ED3 39D0 cmp eax,edx
00404ED5 0F84 8F000000 je unpacked.00404F6A
00404EDB 85F6 test esi,esi
00404EDD 74 68 je short unpacked.00404F47
00404EDF 85FF test edi,edi
00404EE1 74 6B je short unpacked.00404F4E
00404EE3 8B46 FC mov eax,dword ptr ds:[esi-4]
00404EE6 8B57 FC mov edx,dword ptr ds:[edi-4]
00404EE9 29D0 sub eax,edx
00404EEB 77 02 ja short unpacked.00404EEF
00404EED 01C2 add edx,eax
00404EEF 52 push edx
00404EF0 C1EA 02 shr edx,2
00404EF3 74 26 je short unpacked.00404F1B
00404EF5 8B0E mov ecx,dword ptr ds:[esi]
00404EF7 8B1F mov ebx,dword ptr ds:[edi]
00404EF9 39D9 cmp ecx,ebx
00404EFB 75 58 jnz short unpacked.00404F55
00404EFD 4A dec edx
00404EFE 74 15 je short unpacked.00404F15
00404F00 8B4E 04 mov ecx,dword ptr ds:[esi+4]
00404F03 8B5F 04 mov ebx,dword ptr ds:[edi+4]
00404F06 39D9 cmp ecx,ebx
00404F08 75 4B jnz short unpacked.00404F55
00404F0A 83C6 08 add esi,8
00404F0D 83C7 08 add edi,8
00404F10 4A dec edx
00404F11 ^ 75 E2 jnz short unpacked.00404EF5
00404F13 EB 06 jmp short unpacked.00404F1B
00404F15 83C6 04 add esi,4
00404F18 83C7 04 add edi,4
00404F1B 5A pop edx
00404F1C 83E2 03 and edx,3
00404F1F 74 22 je short unpacked.00404F43
00404F21 8B0E mov ecx,dword ptr ds:[esi]
00404F23 8B1F mov ebx,dword ptr ds:[edi]
00404F25 38D9 cmp cl,bl
00404F27 75 41 jnz short unpacked.00404F6A
00404F29 4A dec edx
00404F2A 74 17 je short unpacked.00404F43
00404F2C 38FD cmp ch,bh
00404F2E 75 3A jnz short unpacked.00404F6A
00404F30 4A dec edx
00404F31 74 10 je short unpacked.00404F43
00404F33 81E3 0000FF00 and ebx,0FF0000
00404F39 81E1 0000FF00 and ecx,0FF0000
00404F3F 39D9 cmp ecx,ebx
00404F41 75 27 jnz short unpacked.00404F6A
00404F43 01C0 add eax,eax
00404F45 EB 23 jmp short unpacked.00404F6A
00404F47 8B57 FC mov edx,dword ptr ds:[edi-4]
00404F4A 29D0 sub eax,edx
00404F4C EB 1C jmp short unpacked.00404F6A
00404F4E 8B46 FC mov eax,dword ptr ds:[esi-4]
00404F51 29D0 sub eax,edx
00404F53 EB 15 jmp short unpacked.00404F6A
00404F55 5A pop edx
00404F56 38D9 cmp cl,bl
00404F58 75 10 jnz short unpacked.00404F6A
00404F5A 38FD cmp ch,bh
00404F5C 75 0C jnz short unpacked.00404F6A
00404F5E C1E9 10 shr ecx,10
00404F61 C1EB 10 shr ebx,10
00404F64 38D9 cmp cl,bl
00404F66 75 02 jnz short unpacked.00404F6A
00404F68 38FD cmp ch,bh
00404F6A 5F pop edi
00404F6B 5E pop esi
00404F6C 5B pop ebx
00404F6D C3 retn
哪位大虾能解释一下这段算法(最好能细一些)
兄弟先在这里谢过了!~~~
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)