Код:
//call @convert_string 1 1@
:convert_string
var
1@: int
2@: int
3@: int
4@: int
5@: int
end
0C17: 1@ = strlen 0@
dec(1@)
for 2@ = 0 to 1@
0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0
if and
3@ > 191
3@ < 256
then
3@ -= 192
0AC6: 5@ = label @chars offset
0C0C: 4@ = struct 5@ offset 3@ size 1
0A8C: write_memory 0@ size 1 value 4@ virtual_protect 0
else if 3@ == 168
then 0A8C: write_memory 0@ size 1 value 69 virtual_protect 0
else if 3@ == 184
then 0A8C: write_memory 0@ size 1 value 101 virtual_protect 0
else if 3@ == 97
then 0A8C: write_memory 0@ size 1 value 97 virtual_protect 0
end
end
end
end
inc(0@)
end
ret 0
:chars
hex
41 80 8B 82 83 45 84 88 85 86 4B 87 4D AD 4F 8C 50 43 8F 59 81 58 89 8D 8E 8A 90 91 92 93 94 95 61 97 A2 99 9A 65 9B 9F 9C 9D 6B 9E AF AE 6F A3 70 63 A6 79 98 78 A0 A4 A5 A1 A7 A8 A9 AA AB AC 00
end