两段汇编代码是分别独立的,请那位高手做一个在DELHI中调用的例子,谢谢 ( 积分: 88 )

  • 主题发起人 主题发起人 冬月
  • 开始时间 开始时间

冬月

Unregistered / Unconfirmed
GUEST, unregistred user!
以下两段汇编代码是分别独立的,请那位高手做一个在DELHI中调用的例子,谢谢
代码一:
sub_47DC30 proc near
CODE XREF: sub_46E620+80p
mov al, [ecx+3]
push ebx
mov bl, byte ptr dword_749B04+2
push esi
push edi
mov edi, edx
mov dl, al
mov esi, 1
xor dl, bl
mov [ecx+3], dl
mov dl, [ecx+2]
mov bl, dl
xor bl, byte ptr dword_749B04+3
xor bl, al
mov [ecx+2], bl
mov bl, [ecx+1]
mov al, bl
xor al, byte ptr dword_749B08
xor al, dl
mov [ecx+1], al
mov al, [ecx]
xor al, byte ptr dword_749B08+1
xor al, bl
mov [ecx], al
mov bl, byte ptr dword_749B04
mov dl, al
xor al, bl
cmp edi, esi
mov [ecx], al
jle short loc_47DCA2

loc_47DC86:
CODE XREF: sub_47DC30+70j
mov al, [esi+ecx]
mov ebx, esi
and ebx, 7
mov bl, byte ptr dword_749B04[ebx]
xor bl, al
xor bl, dl
mov dl, al
mov [esi+ecx], bl
inc esi
cmp esi, edi
jl short loc_47DC86

loc_47DCA2:
CODE XREF: sub_47DC30+54j
pop edi
pop esi
pop ebx
retn
sub_47DC30 endp

代码二:
sub_47DCB0 proc near
CODE XREF: sub_47DD60+40p
mov al, byte ptr dword_749B0C
push ebx
mov bl, [ecx]
push esi
xor bl, al
mov esi, edx
mov eax, 1
mov [ecx], bl
cmp esi, eax
jle short loc_47DCE4

loc_47DCC8:
CODE XREF: sub_47DCB0+32j
mov bl, [eax+ecx-1]
mov edx, eax
and edx, 7
xor bl, byte ptr dword_749B0C[edx]
mov dl, [eax+ecx]
xor dl, bl
mov [eax+ecx], dl
inc eax
cmp eax, esi
jl short loc_47DCC8

loc_47DCE4:
CODE XREF: sub_47DCB0+16j
mov al, byte ptr dword_749B0C+2
mov bl, [ecx+3]
mov dl, [ecx+2]
xor bl, al
mov al, bl
mov [ecx+3], bl
mov bl, byte ptr dword_749B0C+3
xor dl, al
mov al, [ecx+1]
xor dl, bl
mov bl, [ecx]
mov [ecx+2], dl
xor al, dl
mov dl, byte ptr dword_749B10
xor al, dl
pop esi
mov [ecx+1], al
mov dl, byte ptr dword_749B10+1
xor al, bl
pop ebx
xor al, dl
mov [ecx], al
retn
sub_47DCB0 endp
 
以下两段汇编代码是分别独立的,请那位高手做一个在DELHI中调用的例子,谢谢
代码一:
sub_47DC30 proc near
CODE XREF: sub_46E620+80p
mov al, [ecx+3]
push ebx
mov bl, byte ptr dword_749B04+2
push esi
push edi
mov edi, edx
mov dl, al
mov esi, 1
xor dl, bl
mov [ecx+3], dl
mov dl, [ecx+2]
mov bl, dl
xor bl, byte ptr dword_749B04+3
xor bl, al
mov [ecx+2], bl
mov bl, [ecx+1]
mov al, bl
xor al, byte ptr dword_749B08
xor al, dl
mov [ecx+1], al
mov al, [ecx]
xor al, byte ptr dword_749B08+1
xor al, bl
mov [ecx], al
mov bl, byte ptr dword_749B04
mov dl, al
xor al, bl
cmp edi, esi
mov [ecx], al
jle short loc_47DCA2

loc_47DC86:
CODE XREF: sub_47DC30+70j
mov al, [esi+ecx]
mov ebx, esi
and ebx, 7
mov bl, byte ptr dword_749B04[ebx]
xor bl, al
xor bl, dl
mov dl, al
mov [esi+ecx], bl
inc esi
cmp esi, edi
jl short loc_47DC86

loc_47DCA2:
CODE XREF: sub_47DC30+54j
pop edi
pop esi
pop ebx
retn
sub_47DC30 endp

代码二:
sub_47DCB0 proc near
CODE XREF: sub_47DD60+40p
mov al, byte ptr dword_749B0C
push ebx
mov bl, [ecx]
push esi
xor bl, al
mov esi, edx
mov eax, 1
mov [ecx], bl
cmp esi, eax
jle short loc_47DCE4

loc_47DCC8:
CODE XREF: sub_47DCB0+32j
mov bl, [eax+ecx-1]
mov edx, eax
and edx, 7
xor bl, byte ptr dword_749B0C[edx]
mov dl, [eax+ecx]
xor dl, bl
mov [eax+ecx], dl
inc eax
cmp eax, esi
jl short loc_47DCC8

loc_47DCE4:
CODE XREF: sub_47DCB0+16j
mov al, byte ptr dword_749B0C+2
mov bl, [ecx+3]
mov dl, [ecx+2]
xor bl, al
mov al, bl
mov [ecx+3], bl
mov bl, byte ptr dword_749B0C+3
xor dl, al
mov al, [ecx+1]
xor dl, bl
mov bl, [ecx]
mov [ecx+2], dl
xor al, dl
mov dl, byte ptr dword_749B10
xor al, dl
pop esi
mov [ecx+1], al
mov dl, byte ptr dword_749B10+1
xor al, bl
pop ebx
xor al, dl
mov [ecx], al
retn
sub_47DCB0 endp
 
你这个代码需要修改
 
后退
顶部