Writing of cryptographic code

Source: Internet
Author: User

Cryptographic Code Writing

004a1e6f push EAX
004a1e70-Push EBX
004A1E71 push ECX
004a1e72-Push edx
004A1E73-Push ESP
004a1e74. Ebp
004a1e75-i-push ESI
004a1e76 Push EDI
004a1e77 E8 00000000 Call server.004a1e7c
004a1e7c 5D Pop Ebp
004a1e7d 81ED 7c1e4a00 Sub ebp,server.004a1e7c
004a1e83 BB 00104000 mov ebx,server.00401000
004a1e88 03DD Add EBX,EBP
004a1e8a B9 00010000 mov ecx,100
004a1e8f 8033 98 xor byte ptr ds:[ebx],98
004a1e92 Inc. ebx
004a1e93 Dec ecx
004a1e94 ^ F9 jnz short server.004a1e8f
004a1e96 5F Pop EDI
004a1e97 5E pop ESI
004a1e98 5D Pop Ebp
004a1e99 5C Pop ESP
004a1e9a 5A pop edx
004a1e9b ecx Pop
004a1e9c 5B pop ebx
004a1e9d eax

Pk:

004A1E4A Pushad
004A1E4B E8 00000000 Call Server.004a1e50
004a1e50 5D Pop Ebp
004a1e51 81ED 501e4a00 Sub Ebp,server.004a1e50
004a1e57 BB 00104000 mov ebx,server.00401000 encrypted from 00401000
004A1E5C 03DD Add EBX,EBP
004a1e5e B9 00010000 mov ecx,100 size is 100
004a1e63 8033 98 xor byte ptr ds:[ebx],98
004a1e66 Inc. ebx
004a1e67 Dec ecx
004a1e68 ^ F9 jnz short Server.004a1e63
004A1E6A Popad
-------------------------------Satin Split-line--------------------------------------------

double Word encryption I:

0049305B > EBX push
0049305C push ECX
0049305D BB 00104000 mov ebx, 00401000
00493062 B9 2cd10100 mov ecx, 0x1d12c
00493067 8133 07090900 xor dword ptr [EBX], 0x90907
0049306D 83c3 add ebx, 0x4
00493070 ^ E2 F5 loopd Short 00493067
00493072 ecx Pop
00493073 5B pop ebx
00493074 E8 00000000 Call 00493079
00493079 832c24 3E sub dword ptr [ESP], 0x3e
0049307D C3 RETN

Word encryption section:
0049303B Pushad
0049303C BB 00104000 mov ebx, 00401000
00493041 B9 59a20300 mov ecx, 0x3a259
00493046 66:8133 2301 xor word ptr [ebx], 0x123
0049304B 83c3 add ebx, 0x2
0049304E Dec ecx
0049304F F5 jnz Short 00493046
00493051 Popad
00493052-NOP
00493053 00304900 Push 00493000
00493058 C3 RETN

Writing of cryptographic code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.