joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x628]
lea ecx, [ebp - 0x41c]
call fcn.00401ad0
add esp, 0x2c
xor esi, esi
xor ecx, ecx
xor edx, edx
cmp si, word [ebp - 0x210]
mov eax, 1
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x838], edx
pop esi
je 0x4018b3
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x210]
call fcn.00401de0
add esp, 8
test eax, eax
jne 0x4018a1
xor ecx, ecx
mov eax, 1
xor edx, edx
jmp 0x4018b3
mov edx, dword [ebp - 0x838]
mov ecx, dword [ebp - 0x83c]
mov eax, dword [ebp - 0x840]
push 0xffffffffffffffff
push 0
push 0x804
push 1
push 1
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
push str.QQPCMgr
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::InitBugReport_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__unsigned_short_int__unsigned_long_int__int__int__unsigned_long_int__unsigned_long_int__int____stdcall___struct_TXBugReport::tagBugReportInfo___char_const___char_const___wchar_t_const___wchar_t_const___void____unsigned_long_int___void___]
add esp, 0x30
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::ValidateBugReport_void_]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
Function at 0x4029b0
Capabilities:
Check if file exists
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402ae4
push str.riched20.dll
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ae4
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x624]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402ae4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.riched20.dll.bk
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.riched20.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ae4
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x402ae6
push 4
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret

Function at 0x402b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402b9c
push str.riched20.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x14], eax
call fcn.004029b0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00425e27
mov esp, ebp
pop ebp
ret
Function at 0x40d500
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ecx + 0x48]
push str.LastException.dat
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040ddc0
add esp, 8
test eax, eax
jne 0x40d53c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d571
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 8
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x218], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d5ac
cmp dword [ebp - 0x210], 8
je 0x40d5b7
xorps xmm0, xmm0
movlpd qword [ebp - 0x218], xmm0
push ebx
push edi
xor edi, edi
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [ebp - 0x214]
mov ebx, eax
mov eax, dword [ebp - 0x218]
add esp, 4
add eax, 0xa8c0
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], edx
adc ecx, edi
cmp edx, ecx
jl 0x40d629
jg 0x40d5f0
cmp ebx, eax
jb 0x40d629
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x210]
push eax
push 8
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d629
cmp dword [ebp - 0x210], 8
mov eax, 1
cmove edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00425e27
mov esp, ebp
pop ebp
ret

Function at 0x40db10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.IsWow64Process
xor esi, esi
mov dword [ebp - 0xc], ecx
push str.kernel32
mov ebx, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40db5b
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 4]
jmp 0x40db5e
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
test ecx, ecx
push eax
mov edx, 0x201
mov eax, 1
cmovne eax, edx
push eax
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dbb8
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x208
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dbaf
mov word [edi + 0x206], ax
lea esi, [eax + 1]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x10]
shr ecx, 1
mov dword [esi], ecx
pop esi
test eax, eax
jne 0x40e2b1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40e2af
cmp eax, 2
je 0x40e2af
mov eax, 0xd
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc

Function at 0x40e2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e30a
cmp dword [ebp + 0xc], 7
je 0x40e301
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x40e310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40e36a
mov edi, dword [ebp - 4]
test esi, esi
jne 0x40e36a
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x40e375
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e3b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov bl, byte [ebp + 0x10]
push edi
mov edi, ecx
test bl, bl
je 0x40e3d1
cmp eax, 0xffffffff
jne 0x40e3e0
pop edi
mov eax, 0x57
pop ebx
pop ebp
ret 0x10
cmp eax, 0xffffffff
jne 0x40e3e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
mov ecx, 7
push eax
push dword [ebp + 8]
test bl, bl
mov eax, 1
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x40e550
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x21c]
mov dword [ebp - method.QMRegisterUtils::CQMRegistryHandle.virtual_0], vtable.QMRegisterUtils::CQMRegistryHandle.0
push edx
push 0x2001f
mov eax, ecx
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
push 0
push ecx
push dword [eax + 4]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x40e687
mov eax, dword [ebp - 0x210]
xor esi, esi
test eax, eax
je 0x40e5ce
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
test esi, esi
jne 0x40e687
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x22c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0x100
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x40e659
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040e550
mov esi, eax
test esi, esi
jne 0x40e687
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x218], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x40e612
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40e670
push eax
call ebx
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x224]
push dword [ebp - 0x220]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - method.QMRegisterUtils::CQMRegistryHandle.virtual_0], vtable.QMRegisterUtils::CQMRegistryHandle.0
test eax, eax
je 0x40e69e
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425e27
mov esp, ebp
pop ebp
ret 4
Function at 0x40ef80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4289b8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
test edi, edi
je 0x40f15a
cmp dword [edi + 0x74], 0
jne 0x40f15a
lea esi, [edi + 0x5c]
mov dword [ebp - 0x5c], 1
push esi
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x74], 0
jne 0x40f01a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x3c]
lea eax, [edi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x40f01a
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [ebp - 0x60]
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x40f15c
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x10], 0
jne 0x40f071
lea eax, [ebp - 0x40]
push eax
call fcn.0040f9b0
push 0
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.0040b680
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00410a20
lea ecx, [ebp - 0x58]
call fcn.0040b780
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004089c0
jmp 0x40f0cc
cmp dword [ebx + 0x14], 8
jb 0x40f07b
mov eax, dword [ebx]
jmp 0x40f07d
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f0cc
cmp dword [ebx + 0x14], 8
jb 0x40f092
mov ecx, dword [ebx]
jmp 0x40f094
mov ecx, ebx
call fcn.00412ca0
test eax, eax
je 0x40f0bf
push 0
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040b680
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00410a20
lea ecx, [ebp - 0x40]
call fcn.0040b780
jmp 0x40f0cc
push 0x5e2eb0
lea ecx, [ebp - 0x28]
call fcn.0040b740
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00411550
test al, al
je 0x40f103
mov esi, dword [ebp + 0xc]
test esi, esi
setne al
movzx eax, al
push eax
call dword [0x5f31b4]
mov dword [edi + 0x48], esi
mov ebx, 1
mov dword [edi + 0x3c], 1
jmp 0x40f105
xor ebx, ebx
call fcn.004101f0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.00410180
mov ecx, edi
mov dword [edi + 0x18], eax
call fcn.0040f800
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40f13b
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0040bac0
push dword [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x40f15c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret 8
Function at 0x40f9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.0040e860
push str.dr.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fa67
mov eax, dword [0x5f3460]
test eax, eax
jne 0x40fa34
push str.QMSafeCheckPe
call fcn.00412320
add esp, 4
mov dword [0x5f3460], eax
test eax, eax
je 0x40fa67
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call eax
test eax, eax
je 0x40fa67
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0040d180
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x5f3478]
test eax, eax
jne 0x40fa86
push str.QMGetInstallDir
call fcn.00412320
add esp, 4
mov dword [0x5f3478], eax
test eax, eax
je 0x40fa94
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call eax
push str.dr.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40faec
mov eax, dword [0x5f3460]
test eax, eax
jne 0x40fad6
push str.QMSafeCheckPe
call fcn.00412320
add esp, 4
mov dword [0x5f3460], eax
test eax, eax
je 0x40faec
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call eax
test eax, eax
jne 0x40fa46
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5e2860
mov word [esi], ax
call fcn.004088c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425e27
mov esp, ebp
pop ebp
ret 4

Function at 0x410180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 1
xor esi, esi
push esi
push str.SOFTWARETencentQQPCMgr
push SysStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4101d3
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.SupplyID
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 8]
test esi, esi
je 0x4101e1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4101f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xe
xor eax, eax
mov dword [ebp - 0x428], 7
push 0x5e32ec
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], ax
call fcn.004088c0
lea eax, [ebp - 0x43c]
push eax
call fcn.0040fe80
mov ecx, dword [ebp - 0x428]
mov esi, eax
mov edi, edx
cmp ecx, 8
jb 0x410275
inc ecx
push ecx
push dword [ebp - 0x43c]
call fcn.00408a00
mov dword [ebp - method.QMRegisterUtils::CQMRegistryHandle.virtual_0], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x460], 0
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push SysStringLen
mov dword [ebp - 0x458], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410364
mov ebx, dword [ebp - 0x458]
push 0x412
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x460], ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x458], 0x410
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x45c]
push eax
push 0
push str.Version
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410359
mov eax, dword [ebp - 0x45c]
cmp eax, 1
je 0x41031f
cmp eax, 2
jne 0x410359
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x454]
call fcn.0040d180
lea eax, [ebp - 0x454]
push eax
call fcn.0040fe80
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x440]
cmp eax, 8
jb 0x410359
inc eax
push eax
push dword [ebp - 0x454]
call fcn.00408a00
test ebx, ebx
je 0x410364
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
Function at 0x412960
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13c8
call fcn.00425f90
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xfa0
lea eax, [ebp - 0x13b8]
mov dword [ebp - 0x13c8], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x13bc], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x13c0], 0
lea eax, [ebp - 0x13bc]
xor esi, esi
push eax
push 0xfa0
lea eax, [ebp - 0x13b8]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x412b6b
mov eax, dword [ebp - 0x13bc]
test eax, eax
je 0x412b6b
push ebx
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x13c4], eax
push edi
test eax, eax
je 0x412ae1
push dword [ebp + ebx*4 - 0x13b8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x412ad4
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x13c0], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13bc]
push eax
push 4
lea eax, [ebp - 0x13c0]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x412acd
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x13c0]
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x412acd
push str.QQPCMgr.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412a92
lea esi, [eax + 1]
jmp 0x412ac9
push str.QQPCTray.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412aad
lea esi, [eax + 1]
jmp 0x412ac9
push str.QQPCRTP.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, 1
cmove esi, eax
test esi, esi
jne 0x412af4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x13c4]
jb 0x412a01
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x418]
push ecx
mov ecx, dword [ebp - 0x13c8]
call fcn.00408030
mov ecx, dword [ebp - 0x13c8]
push 0x5e29ac
call fcn.00408190
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00425e27
mov esp, ebp
pop ebp
ret
Function at 0x415560
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00425f90
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test dword [esi], edi
je 0x415627
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.00402620
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
add esp, 0x20
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
push dword [ebp + 0x14]
push ebx
push edi
call fcn.004150c0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x46b984
push 0x3ff
lea eax, [ebp - 0x1004]
push 0x400
push eax
call fcn.00402670
add esp, 0x24
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425e27
mov esp, ebp
pop ebp
ret