Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The writing of encryption code

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Encryption code writing

004A1E6F 50 push eax

004A1E70 53 push ebx

004A1E71 51 push ecx

004A1E72 52 push edx

004A1E73 54 push esp

004A1E74 55 push ebp

004A1E75 56 push esi

004A1E76 57 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 43 inc ebx

004A1E93 49 dec ecx

004A1E94 ^ 75 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 59 pop ecx

004A1E9C 5B pop ebx

004A1E9D 58 pop eax

Competition:

004A1E4A 60 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 encryption from 00401000

004A1E5C 03DD add ebx,ebp

004A1E5E B9 00010000 mov ecx,100 size is 100th

004A1E63 8033 98 xor byte ptr ds: [ebx], 98

004A1E66 43 inc ebx

004A1E67 49 dec ecx

004A1E68 ^ 75 F9 jnz short Server.004A1E63

004A1E6A 61 popad

-- the lewd dividing line

Double word encryption I:

0049305B > 53 push ebx

0049305C 51 push ecx

0049305D BB 00104000 mov ebx, 00401000

00493062 B9 2CD10100 mov ecx, 0x1D12C

00493067 8133 07090900 xor dword ptr [ebx], 0x90907

0049306D 83C3 04 add ebx, 0x4

00493070 ^ E2 F5 loopd short 00493067

00493072 59 pop ecx

00493073 5B pop ebx

00493074 E8 00000000 call 00493079

00493079 832C24 3E sub dword ptr [esp], 0x3E

0049307D C3 retn

Word encryption part:

0049303B 60 pushad

0049303C BB 00104000 mov ebx, 00401000

00493041 B9 59A20300 mov ecx, 0x3A259

00493046 66:8133 2301 xor word ptr [ebx], 0x123

0049304B 83C3 02 add ebx, 0x2

0049304E 49 dec ecx

0049304F 75 F5 jnz short 00493046

00493051 61 popad

00493052 90 nop

00493053 68 00304900 push 00493000

00493058 C3 retn

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report