joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100443a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f716
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
xor esi, esi
lea eax, [ebp - 0x428]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x430], 0x104
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x42c], 1
push eax
push 1
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100444a8
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
push str.Version
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10044494
cmp dword [ebp - 0x42c], 1
jne 0x10044494
lea ecx, [ebp - 0x428]
call fcn.10043c70
test eax, eax
je 0x10044494
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov esi, 1
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10044596
xor eax, eax
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], eax
call fcn.10043a00
test eax, eax
je 0x10044580
xor eax, eax
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], 0
mov word [ebp - 0x460], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
lea edx, [ebp - 0x460]
cmovae ecx, dword [ebp - 0x448]
call fcn.10043e90
test eax, eax
je 0x10044526
mov esi, 1
jmp 0x1004454b
cmp dword [ebp - 0x434], 8
lea ecx, [ebp - 0x448]
lea edx, [ebp - 0x460]
cmovae ecx, dword [ebp - 0x448]
call fcn.10043f40
mov esi, eax
test esi, esi
je 0x10044575
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x460]
call fcn.10002cc0
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0xffffffff
call fcn.10002cc0
test esi, esi
je 0x100445df
lea ecx, [ebp - 0x21c]
call fcn.10043c70
test eax, eax
je 0x100445df
test esi, esi
je 0x100445df
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call esi
add esp, 8
test eax, eax
je 0x100445df
add eax, 2
push 0x2e
push eax
call esi
add esp, 8
test eax, eax
je 0x100445df
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
jmp 0x100445e1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10044600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f756
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
xor esi, esi
lea eax, [ebp - 0x428]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x430], 0x104
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x42c], 1
push eax
push 1
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10044708
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
push str.Version
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100446f4
cmp dword [ebp - 0x42c], 1
jne 0x100446f4
lea ecx, [ebp - 0x428]
call fcn.10043c70
test eax, eax
je 0x100446f4
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea esi, [edi + 1]
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100447f2
xor eax, eax
mov dword [ebp - 0x438], 7
mov dword [ebp - 0x43c], edi
mov word [ebp - 0x44c], ax
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], eax
call fcn.10043a00
test eax, eax
je 0x100447dc
xor eax, eax
mov dword [ebp - 0x450], 7
mov dword [ebp - 0x454], 0
mov word [ebp - 0x464], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
cmp dword [ebp - 0x438], 8
lea edx, [ebp - 0x464]
cmovae ecx, dword [ebp - 0x44c]
call fcn.10043e90
test eax, eax
je 0x10044782
mov esi, 1
jmp 0x100447a7
cmp dword [ebp - 0x438], 8
lea ecx, [ebp - 0x44c]
lea edx, [ebp - 0x464]
cmovae ecx, dword [ebp - 0x44c]
call fcn.10043f40
mov esi, eax
test esi, esi
je 0x100447d1
cmp dword [ebp - 0x450], 8
lea ecx, [ebp - 0x464]
lea eax, [ebp - 0x21c]
cmovae ecx, dword [ebp - 0x464]
push ecx
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x464]
call fcn.10002cc0
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002cc0
test esi, esi
je 0x10044859
lea ecx, [ebp - 0x21c]
call fcn.10043c70
test eax, eax
je 0x10044859
test esi, esi
je 0x10044859
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x470]
push eax
push str._u._u._u._u
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.1000e490
add esp, 0x1c
cmp eax, 4
jne 0x10044859
mov ecx, dword [ebp - 0x434]
mov eax, 1
add ecx, 0xfffffc18
cmp ecx, 0x3e7
cmovbe edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10044960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f78b
mov eax, dword fs:[0]
push eax
sub esp, 0xb74
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x100449c1
xor eax, eax
jmp 0x10044b4c
push str._ntoskrnl.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100449ba
push 0x800
lea eax, [ebp - 0xa1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea edx, [ebp - 0xa1c]
lea ecx, [ebp - 0x21c]
call fcn.1003a430
add esp, 0x10
test eax, eax
je 0x100449ba
lea eax, [ebp - 0xa1c]
push eax
lea ecx, [ebp - 0xa38]
call fcn.10002d00
push 1
push 0
lea eax, [ebp - 0xa20]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa20], 0x2e
call fcn.1000b060
push eax
push 0
lea eax, [ebp - 0xb68]
push eax
lea ecx, [ebp - 0xa38]
call fcn.10030800
cmp dword [eax + 0x14], 8
jb 0x10044a5d
mov eax, dword [eax]
push 0xa
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 0xb50], eax
lea ecx, [ebp - 0xb68]
call fcn.10002cc0
push 1
push 0
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa20], 0x2e
push eax
lea ecx, [ebp - 0xa38]
call fcn.1000b060
push 1
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa20], 0x2e
lea esi, [eax + 1]
push esi
lea eax, [ebp - 0xa20]
push eax
call fcn.1000b060
sub eax, esi
lea ecx, [ebp - 0xa38]
push eax
push esi
lea eax, [ebp - 0xb80]
push eax
call fcn.10030800
cmp dword [eax + 0x14], 8
jb 0x10044adc
mov eax, dword [eax]
push 0xa
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
lea ecx, [ebp - 0xb80]
mov esi, eax
call fcn.10002cc0
push 0x110
lea eax, [ebp - 0xb48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb4c], 0x114
lea eax, [ebp - 0xb4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0xb50]
cmp dword [ebp - 0xb48], eax
jne 0x10044b3a
cmp dword [ebp - 0xb44], esi
je 0x10044b3f
mov edi, 1
lea ecx, [ebp - 0xa38]
call fcn.10002cc0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10045810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
jne 0x1004583b
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push 0x410
lea eax, [ebp - 0x416]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp - 0x458]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x45c], 0x44
add esp, 0x18
mov word [ebp - 0x42c], ax
mov eax, 0x22
mov dword [ebp - 0x430], 0x81
mov word [ebp - 0x418], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x416]
push 0x104
push eax
push 0
movups xmmword [ebp - 0x46c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1004582a
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
xor ecx, ecx
push 0xffffffffffffffff
push str.QMUpdate_
mov word [eax + 2], cx
lea eax, [ebp - 0x418]
push 0x208
push eax
call esi
push 0xffffffffffffffff
push str.QQPCMgrUpdate.exe
lea eax, [ebp - 0x418]
push 0x208
push eax
call esi
push 0xffffffffffffffff
push 0x1006a208
lea eax, [ebp - 0x418]
push 0x208
push eax
call esi
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x418]
push 0x208
push eax
call esi
add esp, 0x40
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x45c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x10045967
push dword [ebp - 0x46c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x468]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
xor ecx, ebp
pop edi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10045ac0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x80
push 3
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push SysReAllocString
push ecx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10045b19
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1c
jae 0x10045b2a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10045b12
cmp dword [ebp - 8], 0x1c
push esi
jne 0x10045b13
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x17]
xor ecx, ecx
cmp dword [ebp - 0x24], 0x5453564c
pop esi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10046970
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x1c], eax
mov edx, str.04CE0CB6_CDF3_4a4b_8B9D_292A455FAF5B
lea ecx, [esp + 4]
call fcn.1003e7c0
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
cmovae eax, dword [esp + 4]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x100469e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100469e9
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x100469d1
inc eax
push eax
push dword [esp + 8]
call fcn.10003020
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x100469fd
inc eax
push eax
push dword [esp + 8]
call fcn.10003020
mov ecx, dword [esp + 0x1c]
mov eax, 1
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10046b20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x20a
lea eax, [ebp - 0x210]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10046b7c
xor ecx, ecx
mov word [eax + 2], cx
push 0xffffffffffffffff
push str.pluginsFileSmashQMSoftExt.dll
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10046c0f
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10046bdf
mov ecx, str.DllUnregisterServer
test edi, edi
mov eax, str.DllRegisterServer
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10046bf1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10046c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push 1
push esi
push str.AllFileSystemObjectsShellExContextMenuHandlersQMSoftExt
push SysReAllocString
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10046cc9
push 0x208
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x10067498
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046cbd
lea eax, [ebp - 0x20c]
push str.754DF2CE_51E8_4895_B53C_6381418B84AE
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov ecx, 1
test eax, eax
cmove esi, ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10046ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10046d54
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.DebugMode
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10046d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x210]
push 0x20a
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x21c], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x218], 0x104
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x214], 1
mov dword [esi + 0x10], edi
jb 0x10046dc5
mov eax, dword [esi]
jmp 0x10046dc7
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
push 1
push ecx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10046e4d
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.Version
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046e41
cmp dword [ebp - 0x214], 1
jne 0x10046e41
lea ecx, [ebp - 0x210]
call fcn.10043c70
test eax, eax
je 0x10046e41
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.1000c1b0
mov edi, 1
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10049180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push esi
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x218], edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, 0x80004005
test esi, esi
je 0x1004923a
movzx eax, word [esi]
test ax, ax
je 0x1004923a
cmp eax, 0x5c
jne 0x100491d3
cmp word [esi + 2], ax
jne 0x1004923a
cmp eax, 0x2f
je 0x1004923a
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1004923a
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x1004920e
push 0x103
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0xc
test eax, eax
je 0x1004923a
lea esi, [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10049221
test eax, 0x400
jne 0x1004923a
test ebx, ebx
je 0x10049238
cmp word [ebx], 0
je 0x10049238
mov edx, ebx
mov ecx, esi
call fcn.10049270
test eax, eax
je 0x1004923a
xor edi, edi
cmp dword [ebp + 0x10], 1
je 0x10049255
mov edx, dword [ebp - 0x218]
mov ecx, edi
push ebx
push esi
push dword [ebp + 8]
call fcn.10049370
add esp, 0xc
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x100496a0
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10049708
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10049732
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1004a8c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10073798
push 0x1005c7db
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1007b00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
test ebx, ebx
je 0x1004aab0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1004aab0
test esi, esi
je 0x1004aab0
cmp dword [esi], 0
je 0x1004aab0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push 0x10061820
push 1
push edi
push 0x10061840
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004a982
mov ecx, dword [ebp - 0x20]
test eax, eax
jne 0x1004aa8e
test ecx, ecx
je 0x1004aa9f
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
push 0x10061850
push ecx
call dword [eax]
test eax, eax
jne 0x1004aa8b
cmp dword [ebp - 0x24], eax
je 0x1004aa8b
test byte [esi], 4
je 0x1004a9ce
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
push ecx
call dword [edx + 0x50]
test eax, eax
jne 0x1004aa8b
test byte [esi], 0x10
je 0x1004a9eb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
lea eax, [esi + 0x20c]
push eax
push ecx
call dword [edx + 0x24]
test eax, eax
jne 0x1004aa8b
test byte [esi], 2
je 0x1004aa08
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
lea eax, [esi + 0x414]
push eax
push ecx
call dword [edx + 0x1c]
test eax, eax
jne 0x1004aa8b
test byte [esi], 0x20
je 0x1004aa21
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
lea eax, [esi + 0xc14]
push eax
push ecx
call dword [edx + 0x2c]
test eax, eax
jne 0x1004aa8b
test byte [esi], 0x40
je 0x1004aa40
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push dword [esi + 0x1824]
lea eax, [esi + 0x161c]
push eax
push ecx
call dword [edx + 0x44]
test eax, eax
jne 0x1004aa8b
test byte [esi], 0x80
je 0x1004aa5a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
movzx eax, word [esi + 0x1828]
push eax
push ecx
call dword [edx + 0x34]
test eax, eax
jne 0x1004aa8b
test dword [esi], 0x100
je 0x1004aa75
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push dword [esi + 0x182c]
push eax
call dword [ecx + 0x3c]
test eax, eax
jne 0x1004aa8b
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
push 1
push ebx
push edx
call dword [eax + 0x18]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1004aa9f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x1004aaac
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, edi
jmp 0x1004aab2
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret