Log in

View Full Version : Help Common.arg


Anonymous
September 10th, 2003, 22:53
Please give me sample how to make a common.arg or application.arg another (I was read teerayoot tut but I dont understand yet )

Teerayoot
September 15th, 2003, 03:06
not finished yet but i think it 's will be a sample for a writting function desctiption

//cut here

info "custom function description " collection on Vb strings,Written by Teerayoot(Cr.Jack@bugsgroup.com)
info rename this file to target name(target.arg) then copy to Ollydbg folder

info MSVBVM60.__vbaStrCmp
FUNCTION __vbaStrCmp
"Arg1" UNICODE
"Arg2" UNICODE
END

info MSVBVM60.__vbaStrCat
FUNCTION __vbaStrCat
"Address" HEX
"Strings" UNICODE
END


info __vbaStrCopy (set bp on SysAllocStringByteLen in OLEAUT32 module)
FUNCTION SysAllocStringByteLen
arg1 UNICODE
arg2 HEX
END

info __vbaStrComp (set bp on VarBstrCmp in OLEAUT32 module)
FUNCTION VarBstrCmp
string UNICODE
string UNICODE

END



info MSVBVM60.__vbaVarTstEq(not implement yet)
FUNCTION __vbaVarTstEq
string UNICODE
string UNICODE


END
info MSVBVM60.__vbaVarTstGt

FUNCTION __vbaVarTstGt(not implement yet)
string UNICODE
string UNICODE


END

info MSVBVM60.__vbaVarTstNe

FUNCTION vbaVarTstNe
string UNICODE
string UNICODE


END

info MSVBVM60.__vbaFileOpen
FUNCTION __vbaFileOpen
flag HEX
flag HEX
flag HEX
filename UNICODE



END
info rtcMsgBox(not implement yet)
FUNCTION rtcMsgBox
string FORMAT
string FORMAT
string FORMAT
string FORMAT
string FORMAT



END

// ending cut here

Teerayoot
September 16th, 2003, 00:28
but it's working .

Ricardo Narvaja
September 16th, 2003, 01:34
the functions say NOT IMPLEMENTED YET dont work , I understand well?

Ricardo

BasengBae
September 16th, 2003, 20:41
thank you

Teerayoot
September 16th, 2003, 23:00
Ricardo Narvaja

Yes ,"NOT IMPLEMENTED YET " is a comment written by me.
You should rewritten again in that function.

But anyhow ,it's more powerfull than previous releashed.
such as you can log function argument on
__vbaStrComp
__vbaFileOpen
__vbaStrCat

that __vbastrcmp don't working on some prog.

Anonymous
September 17th, 2003, 10:03
Very nice Teerayoot, thanks for putting that together.

BasengBae
September 17th, 2003, 22:37
make log Arg (Hex=??????? INT=???????? UNICODE=?????? )

I have an idea Try This :

/////Cut Here

info "custom function description " collection on Vb strings,Written by Teerayoot(Cr.Jack@bugsgroup.com)
info "Modify by BasengBae"
info rename this file to target name(target.arg) then copy to Ollydbg folder

info MSVBVM60.__vbaStrCmp
Type Value1
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

Type Value2
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

FUNCTION __vbaStrCmp
"Arg1" Value1
"Arg2" Value1
End


info MSVBVM60.__vbaStrCat
Type Value3
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

Type Value4
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End
FUNCTION __vbaStrCat
"Address" Value3
"Strings" Value4
END


info __vbaStrCopy (set bp on SysAllocStringByteLen in OLEAUT32 module)
Type Value5
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End
Type Value6
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

FUNCTION SysAllocStringByteLen
"arg1" Value5
"arg2" Value6
END

info __vbaStrComp (set bp on VarBstrCmp in OLEAUT32 module)
Type Value7
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

Type Value8
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

FUNCTION VarBstrCmp
"string" Value7
"string" Value8

END



info MSVBVM60.__vbaVarTstEq(not implement yet)
Type Value9
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

Type Value10
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

FUNCTION __vbaVarTstEq
"string" Value9
"string" Value10


END
info MSVBVM60.__vbaVarTstGt
Type Value11
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

Type Value12
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

FUNCTION __vbaVarTstGt(not implement yet)
"string" Value11
"string" Value12


END


Type Value13
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

Type Value14
Text "(Hex="
HEX
Text " INT="
INT
Text " UNICODE="
TRYUNICODE
Text ""
End

info MSVBVM60.__vbaVarTstNe
FUNCTION vbaVarTstNe
"string" Value13
"string" Value14

END

info MSVBVM60.__vbaFileOpen
FUNCTION __vbaFileOpen
"flag" HEX
"flag" HEX
"flag" HEX
"filename" UNICODE



END
info rtcMsgBox(not implement yet)
FUNCTION rtcMsgBox
"string" FORMAT
"string" FORMAT
"string" FORMAT
"string" FORMAT
"string" FORMAT

END

////////End

Teerayoot
September 20th, 2003, 21:54
Good work.