具体实现:
0101CD06 55 push ebp
0101CD07 8BEC mov ebp, esp
0101CD09 8B55 10 mov edx, [ebp+10]
0101CD0C 53 push ebx
0101CD0D 56 push esi
0101CD0E 57 push edi
0101CD0F 8B7D 0C mov edi, [ebp+C]
0101CD12 33F6 xor esi, esi
0101CD14 85D2 test edx, edx
0101CD16 8B0F mov ecx, [edi]
0101CD18 8B47 04 mov eax, [edi+4]
0101CD1B 7E 5E jle short 0101CD7B
0101CD1D 69D2 B979379E imul edx, edx, 9E3779B9
0101CD23 85D2 test edx, edx
0101CD25 8955 10 mov [ebp+10], edx
0101CD28 0F84 A2000000 je 0101CDD0
0101CD2E 8B55 08 mov edx, [ebp+8]
0101CD31 8BF8 mov edi, eax
0101CD33 8BD8 mov ebx, eax
0101CD35 C1EF 05 shr edi, 5
0101CD38 C1E3 04 shl ebx, 4
0101CD3B 33FB xor edi, ebx
0101CD3D 8BDE mov ebx, esi
0101CD3F 83E3 03 and ebx, 3
0101CD42 033C9A add edi, [edx+ebx*4]
0101CD45 8BDE mov ebx, esi
0101CD47 33D8 xor ebx, eax
0101CD49 81EE 4786C861 sub esi, 61C88647
0101CD4F 03D9 add ebx, ecx
0101CD51 8D0C3B lea ecx, [ebx+edi]
0101CD54 8BF9 mov edi, ecx
0101CD56 8BD9 mov ebx, ecx
0101CD58 C1EF 05 shr edi, 5
0101CD5B C1E3 04 shl ebx, 4
0101CD5E 33FB xor edi, ebx
0101CD60 8BDE mov ebx, esi
0101CD62 C1EB 0B shr ebx, 0B
0101CD65 83E3 03 and ebx, 3
0101CD68 033C9A add edi, [edx+ebx*4]
0101CD6B 8BDE mov ebx, esi
0101CD6D 33D9 xor ebx, ecx
0101CD6F 03D8 add ebx, eax
0101CD71 3B75 10 cmp esi, [ebp+10]
0101CD74 8D043B lea eax, [ebx+edi]
0101CD77 ^ 75 B8 jnz short 0101CD31
0101CD79 EB 52 jmp short 0101CDCD
0101CD7B 69D2 4786C861 imul edx, edx, 61C88647
0101CD81 85D2 test edx, edx
0101CD83 74 4B je short 0101CDD0
0101CD85 8B75 08 mov esi, [ebp+8]
0101CD88 8BF9 mov edi, ecx
0101CD8A 8BD9 mov ebx, ecx
0101CD8C C1EF 05 shr edi, 5
0101CD8F C1E3 04 shl ebx, 4
0101CD92 33FB xor edi, ebx
0101CD94 8BDA mov ebx, edx
0101CD96 C1EB 0B shr ebx, 0B
0101CD99 83E3 03 and ebx, 3
0101CD9C 033C9E add edi, [esi+ebx*4]
0101CD9F 8BDA mov ebx, edx
0101CDA1 33D9 xor ebx, ecx
0101CDA3 81C2 4786C861 add edx, 61C88647
0101CDA9 03FB add edi, ebx
0101CDAB 2BC7 sub eax, edi
0101CDAD 8BF8 mov edi, eax
0101CDAF 8BD8 mov ebx, eax
0101CDB1 C1EF 05 shr edi, 5
0101CDB4 C1E3 04 shl ebx, 4
0101CDB7 33FB xor edi, ebx
0101CDB9 8BDA mov ebx, edx
0101CDBB 83E3 03 and ebx, 3
0101CDBE 033C9E add edi, [esi+ebx*4]
0101CDC1 8BDA mov ebx, edx
0101CDC3 33D8 xor ebx, eax
0101CDC5 03FB add edi, ebx
0101CDC7 2BCF sub ecx, edi
0101CDC9 85D2 test edx, edx
0101CDCB ^ 75 BB jnz short 0101CD88
0101CDCD 8B7D 0C mov edi, [ebp+C]
0101CDD0 890F mov [edi], ecx
0101CDD2 8947 04 mov [edi+4], eax
0101CDD5 5F pop edi
0101CDD6 5E pop esi
0101CDD7 5B pop ebx
0101CDD8 5D pop ebp
0101CDD9 C3 retn
/**********************************************************
TEA - Tiny Encryption Algorithm
Feistel cipher by David Wheeler & Roger M. Needham
(extended version)
**********************************************************/