-
-
[旧帖] [求助]汇编代码转C语言(求助) 0.00雪花
-
发表于: 2011-7-14 21:32 4250
-
前几天跟踪一个软件算法,搞了2天,搞不定,
望有人指点指点,最好能用c描述下~
CODE:00434A44
CODE:00434A44 ; =============== S U B R O U T I N E =======================================
CODE:00434A44
CODE:00434A44
CODE:00434A44 sub_434A44 proc near ; CODE XREF: sub_434AA4+259p
CODE:00434A44 push ebx
CODE:00434A45 push esi
CODE:00434A46 push edi
CODE:00434A47 xor ecx, ecx
CODE:00434A49 mov esi, edx
CODE:00434A4B test esi, esi
CODE:00434A4D jle short loc_434A9C
CODE:00434A4F
CODE:00434A4F loc_434A4F: ; CODE XREF: sub_434A44+56j
CODE:00434A4F xor edx, edx
CODE:00434A51 mov dl, [eax]
CODE:00434A53 xor dx, 0A5h
CODE:00434A58 mov ebx, 8
CODE:00434A5D
CODE:00434A5D loc_434A5D: ; CODE XREF: sub_434A44+52j
CODE:00434A5D mov edi, ecx
CODE:00434A5F xor di, dx
CODE:00434A62 test di, 1
CODE:00434A67 jz short loc_434A7A
CODE:00434A69 xor cx, 4184h
CODE:00434A6E movzx ecx, cx
CODE:00434A71 shr ecx, 1
CODE:00434A73 or cx, 8000h
CODE:00434A78 jmp short loc_434A7F
CODE:00434A7A ; ---------------------------------------------------------------------------
CODE:00434A7A
CODE:00434A7A loc_434A7A: ; CODE XREF: sub_434A44+23j
CODE:00434A7A movzx ecx, cx
CODE:00434A7D shr ecx, 1
CODE:00434A7F
CODE:00434A7F loc_434A7F: ; CODE XREF: sub_434A44+34j
CODE:00434A7F test dl, 1
CODE:00434A82 jz short loc_434A90
CODE:00434A84 movzx edx, dx
CODE:00434A87 shr edx, 1
CODE:00434A89 or dx, 80h
CODE:00434A8E jmp short loc_434A95
CODE:00434A90 ; ---------------------------------------------------------------------------
CODE:00434A90
CODE:00434A90 loc_434A90: ; CODE XREF: sub_434A44+3Ej
CODE:00434A90 movzx edx, dx
CODE:00434A93 shr edx, 1
CODE:00434A95
CODE:00434A95 loc_434A95: ; CODE XREF: sub_434A44+4Aj
CODE:00434A95 dec ebx
CODE:00434A96 jnz short loc_434A5D
CODE:00434A98 inc eax
CODE:00434A99 dec esi
CODE:00434A9A jnz short loc_434A4F
CODE:00434A9C
CODE:00434A9C loc_434A9C: ; CODE XREF: sub_434A44+9j
CODE:00434A9C mov eax, ecx
CODE:00434A9E pop edi
CODE:00434A9F pop esi
CODE:00434AA0 pop ebx
CODE:00434AA1 retn
CODE:00434AA1 sub_434A44 endp
CODE:00434AA1
望有人指点指点,最好能用c描述下~
CODE:00434A44
CODE:00434A44 ; =============== S U B R O U T I N E =======================================
CODE:00434A44
CODE:00434A44
CODE:00434A44 sub_434A44 proc near ; CODE XREF: sub_434AA4+259p
CODE:00434A44 push ebx
CODE:00434A45 push esi
CODE:00434A46 push edi
CODE:00434A47 xor ecx, ecx
CODE:00434A49 mov esi, edx
CODE:00434A4B test esi, esi
CODE:00434A4D jle short loc_434A9C
CODE:00434A4F
CODE:00434A4F loc_434A4F: ; CODE XREF: sub_434A44+56j
CODE:00434A4F xor edx, edx
CODE:00434A51 mov dl, [eax]
CODE:00434A53 xor dx, 0A5h
CODE:00434A58 mov ebx, 8
CODE:00434A5D
CODE:00434A5D loc_434A5D: ; CODE XREF: sub_434A44+52j
CODE:00434A5D mov edi, ecx
CODE:00434A5F xor di, dx
CODE:00434A62 test di, 1
CODE:00434A67 jz short loc_434A7A
CODE:00434A69 xor cx, 4184h
CODE:00434A6E movzx ecx, cx
CODE:00434A71 shr ecx, 1
CODE:00434A73 or cx, 8000h
CODE:00434A78 jmp short loc_434A7F
CODE:00434A7A ; ---------------------------------------------------------------------------
CODE:00434A7A
CODE:00434A7A loc_434A7A: ; CODE XREF: sub_434A44+23j
CODE:00434A7A movzx ecx, cx
CODE:00434A7D shr ecx, 1
CODE:00434A7F
CODE:00434A7F loc_434A7F: ; CODE XREF: sub_434A44+34j
CODE:00434A7F test dl, 1
CODE:00434A82 jz short loc_434A90
CODE:00434A84 movzx edx, dx
CODE:00434A87 shr edx, 1
CODE:00434A89 or dx, 80h
CODE:00434A8E jmp short loc_434A95
CODE:00434A90 ; ---------------------------------------------------------------------------
CODE:00434A90
CODE:00434A90 loc_434A90: ; CODE XREF: sub_434A44+3Ej
CODE:00434A90 movzx edx, dx
CODE:00434A93 shr edx, 1
CODE:00434A95
CODE:00434A95 loc_434A95: ; CODE XREF: sub_434A44+4Aj
CODE:00434A95 dec ebx
CODE:00434A96 jnz short loc_434A5D
CODE:00434A98 inc eax
CODE:00434A99 dec esi
CODE:00434A9A jnz short loc_434A4F
CODE:00434A9C
CODE:00434A9C loc_434A9C: ; CODE XREF: sub_434A44+9j
CODE:00434A9C mov eax, ecx
CODE:00434A9E pop edi
CODE:00434A9F pop esi
CODE:00434AA0 pop ebx
CODE:00434AA1 retn
CODE:00434AA1 sub_434A44 endp
CODE:00434AA1
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)
赞赏
他的文章
- [求助]汇编代码转C语言(求助) 4251
- [求助]问个很痛苦的问题 6374
- 谁有Visual Localize的破解版阿? 2659
- [下载]ASProtect 2.1x补区段动画 5691
- [求助]关于OD超级字符串参考的问题 8919
看原图
赞赏
雪币:
留言: