-
Notifications
You must be signed in to change notification settings - Fork 85
/
Add_public.cpp
76 lines (48 loc) · 1.14 KB
/
Add_public.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "PubLic.h"
#include "pch.h"
#include <iostream>
#include "HWeChat.h"
#include "pch.h"
#include "jsonxx/json.hpp"
DWORD getWeChatwinADD();
void Add_Public(std::wstring wx_id) {
DWORD call_1 = getWeChatwinADD() + 0x1D69F0;
WxString wxid;
//std::wstring dddd = L"gh_650586eed01c";
wxid.pstr = (wchar_t*)wx_id.c_str();
wxid.len = wx_id.size();
wxid.maxLen = wx_id.size() * 2;
HWND Hwnd = FindWindow(L"WeChatMainWndForPC", 0);
DWORD dwCore = GetWindowLong(Hwnd, GWLP_USERDATA);
dwCore += 0x610;
char buff[0x500] = { 0 };
__asm {
pushad
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x0
push 0x11
push 0x1
mov edi, dwCore
lea ecx, ds: [edi - 0x5E0]
mov eax, dword ptr ds : [ecx]
push eax
mov ecx, -1
lea eax, ds: [edi + 0x2DC]
and ecx, eax
push ecx
lea esi, wxid
push esi
lea ecx, ds : [edi + 0xD80]
call call_1
popad
}
}