吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1646|回复: 0
收起左侧

[易语言 转载] 取crc16 易语言汇编置入代码

[复制链接]
cf2006a 发表于 2021-9-8 15:48
.版本 2

.子程序 汇编_取CRC16, 文本型, , 非查表法 翻译论坛发布的源码改写而成  作者cf2006a
.参数 数据, 字节集
.局部变量 缓存, 文本型

缓存 = 取重复文本 (8, “F”)
' 置入代码 ({ 139, 117, 8, 139, 54, 131, 198, 4, 139, 14, 131, 198, 3, 187, 255, 255, 0, 0, 70, 49, 192, 49, 210, 138, 6, 49, 195, 137, 216, 66, 131, 227, 1, 131, 251, 1, 117, 9, 209, 232, 53, 1, 160, 0, 0, 235, 2, 209, 232, 137, 195, 131, 250, 7, 118, 227, 226, 216, 201, 194, 4, 0 })'这个是返回短整数 没有转成十六进制文本
置入代码 ({ 139, 117, 8, 139, 54, 131, 198, 4, 139, 14, 131, 198, 3, 187, 255, 255, 0, 0, 70, 49, 192, 49, 210, 138, 6, 49, 195, 137, 216, 66, 131, 227, 1, 131, 251, 1, 117, 9, 209, 232, 53, 1, 160, 0, 0, 235, 2, 209, 232, 137, 195, 131, 250, 7, 118, 227, 226, 216, 137, 194, 139, 125, 252, 79, 49, 201, 177, 8, 136, 208, 36, 15, 60, 9, 119, 4, 4, 48, 235, 2, 4, 55, 136, 4, 57, 193, 234, 4, 116, 2, 226, 232, 141, 4, 57, 137, 69, 252, 201, 194, 4, 0 })
返回 (“”)
' *** 缩略程序块 ***
' mov esi, dword [ebp+0x08]
' mov esi, dword [esi]
' add esi, 0x04
' mov ecx, dword [esi]
' add esi, 0x03
' mov ebx, 0x0000FFFF
' label1:
' inc esi
' xor eax, eax
' xor edx, edx
' mov al, byte [esi]
' xor ebx, eax
' label2:
' mov eax, ebx
' inc edx
' and ebx, 0x01
' cmp ebx, 0x01
' jne label3
' shr eax, 1
' xor eax, 0x0000A001
' jmp label4
' label3:
' shr eax, 1
' label4:
' mov ebx, eax
' cmp edx, 0x07
' jbe label2
' loop label1
' mov edx, eax
' mov edi, dword [ebp-0x04]
' dec edi
' xor ecx, ecx
' mov cl, 0x08
' label5:
' mov al, dl
' and al, 0x0F
' cmp al, 0x09
' jnbe label6
' add al, 0x30
' jmp label7
' label6:
' add al, 0x37
' label7:
' mov byte [ecx+edi], al
' shr edx, 0x04
' je label8
' loop label5
' label8:
' lea eax, dword [ecx+edi]
' mov dword [ebp-0x04], eax
' leave
' retn 0x0004

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-3 01:34

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表