开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1092|回复: 5
收起左侧

[已解决] 谁知道图中这个api函数是什么

 关闭 [复制链接]
结帖率:85% (41/48)
发表于 2018-7-25 18:02:39 | 显示全部楼层 |阅读模式   河北省石家庄市
5精币
下图是一个转url编码的程序,其中使用了一个函数,但是是用汇编写的,看起来像是一个win的api,大家谁见过呢?
QQ图片20180725175925.png
{ 51, 192, 86, 57, 69, 8, 15, 132, 229, 0, 0, 0, 139, 117, 16, 133, 246, 15, 132, 218, 0, 0, 0, 139, 77, 12, 133, 201, 15, 142, 207, 0, 0, 0, 57, 69, 20, 15, 142, 198, 0, 0, 0, 51, 210, 83, 87, 137, 85, 16, 133, 201, 15, 142, 163, 0, 0, 0, 141, 120, 3, 59, 69, 20, 15, 141, 151, 0, 0, 0, 139, 77, 8, 138, 12, 10, 141, 89, 191, 128, 251, 25, 119, 7, 136, 12, 48, 64, 71, 235, 117, 141, 89, 159, 128, 251, 25, 119, 7, 136, 12, 48, 64, 71, 235, 102, 141, 89, 208, 128, 251, 9, 119, 7, 136, 12, 48, 64, 71, 235, 87, 128, 249, 32, 117, 8, 198, 4, 48, 43, 64, 71, 235, 74, 59, 125, 20, 125, 93, 138, 209, 192, 234, 4, 198, 4, 48, 37, 136, 84, 48, 1, 128, 250, 9, 15, 182, 210, 119, 5, 131, 194, 48, 235, 3, 131, 194, 55, 128, 225, 15, 136, 84, 48, 1, 136, 76, 48, 2, 128, 249, 9, 15, 182, 201, 119, 5, 131, 193, 48, 235, 3, 131, 193, 55, 139, 85, 16, 136, 76, 48, 2, 131, 192, 3, 131, 199, 3, 66, 137, 85, 16, 59, 85, 12, 15, 140, 96, 255, 255, 255, 95, 91, 198, 4, 48, 0, 94, 93, 194, 16, 0, 95, 91, 51, 192, 94, 93, 194, 16, 0, 51, 192, 94, 93, 194, 16, 0 }

如果能找到这个函数,我想直接使用函数,并不想使用汇编代码,因为汇编看不懂,知道函数了,起码以后能记得。
谢谢大家

最佳答案

查看完整内容

不是api.是汇编指令了. xor eax,eax push esi cmp dword ptr [ebp+08h],eax je Label1 mov esi,dword ptr [ebp+10h] test esi,esi je Label1 mov ecx,dword ptr [ebp+0Ch] test ecx,ecx jng Label1 cmp dword ptr [ebp+14h],eax jng Label1 xor edx,edx push ebx push edi mov dword ptr [ebp+10h],edx test ecx,ecx jng Label2 lea edi,dword ptr [eax+03h] Label13: cmp eax,dword ptr [ebp+14h] jnl Label2 mov ecx,dword ptr ...

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
结帖率:100% (11/11)

签到天数: 17 天

发表于 2018-7-25 18:02:40 | 显示全部楼层   陕西省渭南市
不是api.是汇编指令了.

xor eax,eax
push esi
cmp dword ptr [ebp+08h],eax
je Label1
mov esi,dword ptr [ebp+10h]
test esi,esi
je Label1
mov ecx,dword ptr [ebp+0Ch]
test ecx,ecx
jng Label1
cmp dword ptr [ebp+14h],eax
jng Label1
xor edx,edx
push ebx
push edi
mov dword ptr [ebp+10h],edx
test ecx,ecx
jng Label2
lea edi,dword ptr [eax+03h]
Label13:
cmp eax,dword ptr [ebp+14h]
jnl Label2
mov ecx,dword ptr [ebp+08h]
mov cl,byte ptr [edx+ecx]
lea ebx,dword ptr [ecx-41h]
cmp bl,19h
jnbe Label3
mov byte ptr [eax+esi],cl
inc eax
inc edi
jmp Label4
Label3:
lea ebx,dword ptr [ecx-61h]
cmp bl,19h
jnbe Label5
mov byte ptr [eax+esi],cl
inc eax
inc edi
jmp Label4
Label5:
lea ebx,dword ptr [ecx-30h]
cmp bl,09h
jnbe Label6
mov byte ptr [eax+esi],cl
inc eax
inc edi
jmp Label4
Label6:
cmp cl,20h
jne Label7
mov byte ptr [eax+esi],2Bh
inc eax
inc edi
jmp Label4
Label7:
cmp edi,dword ptr [ebp+14h]
jnl Label8
mov dl,cl
shr dl,04h
mov byte ptr [eax+esi],25h
mov byte ptr [eax+esi+01h],dl
cmp dl,09h
movzx edx,dl
jnbe Label9
add edx,30h
jmp Label10
Label9:
add edx,37h
Label10:
and cl,0Fh
mov byte ptr [eax+esi+01h],dl
mov byte ptr [eax+esi+02h],cl
cmp cl,09h
movzx ecx,cl
jnbe Label11
add ecx,30h
jmp Label12
Label11:
add ecx,37h
Label12:
mov edx,dword ptr [ebp+10h]
mov byte ptr [eax+esi+02h],cl
add eax,03h
add edi,03h
Label4:
inc edx
mov dword ptr [ebp+10h],edx
cmp edx,dword ptr [ebp+0Ch]
jl Label13
Label2:
pop edi
pop ebx
mov byte ptr [eax+esi],00h
pop esi
pop ebp
retn 0010h
Label8:
pop edi
pop ebx
xor eax,eax
pop esi
pop ebp
retn 0010h
Label1:
xor eax,eax
pop esi
pop ebp
retn 0010h


评分

参与人数 1荣誉 +1 收起 理由
笨潴 + 1 热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

结帖率:75% (3/4)

签到天数: 8 天

发表于 2018-7-25 18:10:10 | 显示全部楼层   山东省聊城市
这是url编码   途中用的是  asm 汇编方式写的  你可以参考精易模块 编码_URL编码
回复

使用道具 举报

结帖率:100% (15/15)

签到天数: 7 天

发表于 2018-7-25 18:11:08 | 显示全部楼层   福建省福州市
.版本 2

.子程序 编码_URL编码EX, 文本型, 公开, 支持&符号编码 感谢【不想说话的树】提供
.参数 待编码文本, 文本型
.局部变量 JS, 类_脚本组件
.局部变量 局_结果, 文本型

局_结果 = JS.运行 (“encodeURI”, 待编码文本)
返回 (局_结果)


补充内容 (2018-7-25 18:12):
看错了 其实就是精易模块里面的  编码_URL编码
回复

使用道具 举报

结帖率:100% (3/3)

签到天数: 15 天

发表于 2018-7-25 21:14:59 | 显示全部楼层   江苏省苏州市
应该就是URL编码,只不过作者追求一种效率,毕竟汇编最快
回复

使用道具 举报

结帖率:85% (41/48)
 楼主| 发表于 2018-7-26 08:16:22 | 显示全部楼层   河北省石家庄市
我测试,一次转换大量的文本到url编码,还是这个汇编的快。还是懂汇编的厉害。
回复

使用道具 举报

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

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 诚聘英才| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 800073686,邮箱:800073686@b.qq.com
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

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