ENB saves to JPG

Just a little script. Works with ENB with size 237 568 bytes.
{$CLEO}
0AA7: call_function 0x81E406 num_params 1 pop 0 "d3d9.dll" 2@

2@ += 0x19A89
0A8C: write_memory 2@ size 4 value 0x0067706A virtual_protect true
2@ -=
0x19A89
0085: 3@ = 2@
2@ += 0x54E7
3@ += 0x54EC
0AC6: 0@ = label @inj offset
0AC6: 1@ = label
@jmp offset
0AB1: call @asmdef 4 0@ 2@ 3@ 1@
0A93: terminate_this_script

:inj
hex
6A 01 // push D3DXIFF_JPG
8D 4C 24 58 // lea ecx, [esp+160h+BMPfileName]
end
:jmp
hex
E9 00 00 00 00
end
:asmdef
0A8C: write_memory 1@ size 1 value 0xE9 virtual_protect true
0085: 4@ = 1@
4@ += 5
0062: 0@ -= 4@
1@ += 1
0A8C: write_memory 1@ size 4 value 0@ virtual_protect true
0085: 4@ = 3@
4@ += 5
0062: 2@ -= 4@
3@ += 1
0A8C: write_memory 3@ size 4 value 2@ virtual_protect true
0AB2: ret 0

1 comment:

  1. what button to take the Screenshot? im noob at cleo :p

    ReplyDelete