I have a problem to use Client internal function in C# for SRO, my source doesnt work at the moment and i dont know why. Here is my source:
And function in Olly
where is the problem?
Code:
#region WriteChatText
uint chatFunc = VirtualAllocEx(SroProcessHandle, IntPtr.Zero, 26, 0x1000, 0x4);
//uint message = VirtualAllocEx(SroProcessHandle, IntPtr.Zero, 47, 0x1000, 0x4);
byte[] Text = { 0x60, //Pushad
0x8B, 0x0D, //mov ecx, dword ptr ds:
0x01, 0x0D, 0x89, 0x8C, //0x010D898C
0x6A, 0x01, //Push 1
0x68, //Push
0xFF, 0x00, 0x00, 0x00, //Color
0x68, //Push
0x23, 0x55, 0x12, //Test Text
0x6A, 0x03, //Push 3
0xE8, //Call
0x76, 0xB2, 0x15, //Adress-5
0x61, //Popad
0xC3 //Retn
};
WriteProcessMemory(SroProcessHandle, chatFunc, Text, 26, ByteArray);
#endregion
Code:
00533395 |> \8B0D 8C890D01 MOV ECX,DWORD PTR DS:[10D898C] 0053339B |. 55 PUSH EBP 0053339C |. 68 0000FFFF PUSH FFFF0000 005333A1 |. 50 PUSH EAX 005333A2 |. 55 PUSH EBP 005333A3 |. E8 787E2300 CALL sro_clie.0076B220