joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bcc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e0600
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [edi + 0x90]
sub eax, 0x10
call fcn.004012e0
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
push str.OpenSelfProtect:_Begin__Run_QQPCRTP__e
mov ecx, 0x5158b0
mov dword [esp + 0x24], 0
call fcn.00489840
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.QQPCRTP.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40bdba
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.QQPCRTP.exe
call fcn.00413a60
push 0
mov byte [esp + 0x2c], 1
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
xor ecx, ecx
mov edx, 0x4f072c
call fcn.00422000
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 1
mov ecx, edi
call fcn.00411b40
push str.OpenSelfProtect:_End
mov ecx, 0x5158b0
call fcn.00489840
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40c460
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e4edb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x32]
push 0
push eax
mov word [esp + 0x38], 0
call fcn.004be240
mov ecx, dword [0x515718]
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x40]
push 0x105
push edx
call fcn.004b9b37
add esp, 0x1c
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.0048c3f0
mov ecx, str.QMPacket.dat
mov edx, edi
mov dword [esp + 0x244], 0
call fcn.0048b280
push 0x208
lea eax, [esp + 0x30]
push eax
mov ecx, eax
push 0x208
push ecx
mov ecx, 0x26
mov edx, str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
call fcn.0046b830
add esp, 0x10
test eax, eax
mov edi, 8
jne 0x40c56e
cmp dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
jae 0x40c52f
lea eax, [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c56e
push 0
lea eax, [esp + 0x10]
push eax
push 0x208
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], edi
jb 0x40c581
mov edx, dword [esp + 0x14]
push edx
call fcn.004b83e9
add esp, 4
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x23c
ret
Function at 0x40c5b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4dce28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x515718]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x40c632
lea ecx, [esp + 0xc]
push ecx
lea ecx, [eax + 1]
call fcn.00410810
mov edi, 0x515718
mov dword [esp + 0x18], 0
call fcn.00401410
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x515718]
cmp dword [ecx - 0xc], 0
je 0x40c677
push 0x4f08a8
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push 0x4f08b4
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
cmp dword [0x5156e4], 0
je 0x40c68b
mov esi, 0x515688
call fcn.0040df70
test eax, eax
jne 0x40c6a8
mov dword [0x515690], 9
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0
push 0
push 0x515688
push 0x40df50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5157b0], eax
mov edx, dword [0x515718]
push edx
push str.silent_install_path:_ws
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
mov esi, 1
call fcn.0040cc30
test eax, eax
je 0x40c677
cmp dword [0x5156b4], 8
jne 0x40c6e2
mov eax, dword [0x5156b8]
call fcn.00411f50
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40c700
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4e22f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp]
sub eax, 0x10
call fcn.004012e0
lea esi, [eax + 0x10]
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 0
mov eax, dword [esi - 0xc]
cmp eax, 3
jle 0x40c795
mov eax, 3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
call fcn.00409ac0
lea edi, [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.00401410
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c791
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40c7b3
xor ecx, ecx
jmp 0x40c7cd
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov eax, dword [esp + 0x14]
jg 0x40c7cd
jl 0x40c7c5
test eax, eax
jae 0x40c7cd
or eax, 0xffffffff
mov ecx, SysReAllocString
push 0
push 0x100000
push ecx
push eax
call fcn.004c6030
cmp eax, 0xf5
jge 0x40c820
lea eax, [esi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c806
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret 4
cmp dword [0x5156e8], 0
jne 0x40c88c
mov eax, dword [ebp]
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.004012e0
add eax, 0x10
mov ecx, 0x515688
mov dword [edi], eax
call fcn.004136b0
test eax, eax
jne 0x40c88c
lea eax, [esi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c872
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret 4
Function at 0x40cc30
Capabilities:
Create thread

Disassembly:
push edi
push str.StartInstall
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [0x515718]
xor edi, edi
add esp, 4
mov dword [0x5156e4], esi
cmp dword [eax - 0xc], edi
je 0x40ccb5
test esi, esi
je 0x40cc62
call fcn.0040c8d0
test eax, eax
je 0x40ccb5
call fcn.00468f60
mov edx, dword [0x515718]
mov ecx, eax
call fcn.00468610
cmp dword [0x5156e4], edi
je 0x40cc8d
mov ecx, 0x515688
call fcn.0040eda0
mov eax, 1
pop edi
ret
push 0
push 0
push 0x515688
push 0x40e340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x5156f4], eax
je 0x40ccb5
mov eax, 1
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x40dc00
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4e3abb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dc66
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea esi, [esp + 0x18]
call fcn.00402530
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x40dcac
push ebx
mov ecx, 0x4ef7d8
call fcn.00409c00
cmp dword [esp + 0x28], 8
jb 0x40dd22
mov edx, dword [esp + 0x14]
push edx
jmp 0x40dd1a
lea esi, [eax - 1]
cmp eax, esi
ja 0x40dcb8
call fcn.004b7425
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x40dccb
lea eax, [esp + 0x14]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x40dceb
cmp ax, 0x2f
je 0x40dceb
push 1
push 0x4f09a4
lea ecx, [esp + 0x18]
call fcn.00403580
push 0x19
push 0x4f09d8
lea ecx, [esp + 0x18]
call fcn.00403580
cmp dword [esp + 0x28], edi
mov ecx, dword [esp + 0x14]
jae 0x40dd09
lea ecx, [esp + 0x14]
push ebx
call fcn.00409c00
cmp dword [esp + 0x28], edi
jb 0x40dd22
mov eax, dword [esp + 0x14]
push eax
call fcn.004b83e9
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004b83ee
add esp, 0x238
ret
Function at 0x40dd50
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e4136
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor esi, esi
push 0x206
lea eax, [esp + 0x2a]
push esi
push eax
mov dword [esp + 0x24], esi
mov word [esp + 0x30], si
call fcn.004be240
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5143cc
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x24]
push ecx
push 0x104
mov dword [esp + 0x240], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
je 0x40deeb
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40ddf1
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, 0x51571c
call fcn.00401470
push 0x10
push str.TencentQQPCMgr_
push 0x51571c
call fcn.004060a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4f0a30
lea edi, [esp + 0x24]
call fcn.00406130
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 8
push eax
push ebp
push 0x51571c
call fcn.004060a0
mov edx, dword [0x51571c]
push edx
call fcn.00421df0
add esp, 4
test eax, eax
jne 0x40deb6
lea ebx, [esp + 0x20]
call fcn.0040dc00
mov edi, 0x51571c
mov byte [esp + 0x238], 1
call fcn.00401410
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x51571c]
push ecx
call fcn.00421df0
add esp, 4
test eax, eax
je 0x40deeb
mov edx, dword [0x51571c]
push edx
push str.temp_:__ws
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
call fcn.00468f60
mov edx, dword [0x51571c]
mov ecx, eax
call fcn.00468bc0
mov dword [esp + 0x18], 1
jmp 0x40def5
mov esi, 0x51571c
call fcn.00401510
add ebp, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df1d
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004b83ee
add esp, 0x228
ret
Function at 0x40e350
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
test eax, eax
push edi
je 0x40e389
lea edx, [eax - 1]
test edx, edx
jl 0x40e40f
cmp edx, eax
jg 0x40e40f
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x40e389
cmp ax, 0x2f
je 0x40e389
mov edx, 0x4f09a4
mov edi, esi
call fcn.004139a0
push 5
push str.avira
push esi
call fcn.004060a0
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40e3c6
lea edx, [eax - 1]
test edx, edx
jl 0x40e40f
cmp edx, eax
jg 0x40e40f
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x40e3c6
cmp ax, 0x2f
je 0x40e3c6
mov edx, 0x4f09a4
mov edi, ebx
call fcn.004139a0
push 5
push str.avira
push ebx
call fcn.004060a0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e408
mov eax, dword [ebx]
mov ecx, dword [esi]
push eax
push ecx
push str.MoveOrCopyAvira_from__ws__to__ws
mov ecx, 0x5158b0
call fcn.00489840
mov edx, dword [ebx]
mov eax, dword [esi]
add esp, 0xc
push 0
push edx
push eax
call fcn.004216c0
add esp, 0xc
mov eax, 1
pop edi
ret
push 0x80070057
call fcn.00401350
int3
Function at 0x40f640
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e4dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40f801
cmp dword [esi + 0x40], ebx
jne 0x40f67f
push esi
call fcn.0040f870
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x134]
mov dword [esi + 0xec], eax
cmp dword [0x515648], ebx
je 0x40f69e
call fcn.00407db0
mov eax, dword [0x5157fc]
cmp eax, ebx
je 0x40f6da
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x4a
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xf4]
cmp eax, ebx
je 0x40f6f8
mov ecx, dword [esi + 0x98]
push ecx
push 0x4f1060
push ebx
push 0x64
call eax
add esp, 0x10
mov edx, dword [esi + 0xec]
push edx
push str.install_success__install_cost_time:_dms
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARETencentQQPCMgr
mov dword [esp + 0x50], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f771
lea ecx, [esp + 0x10]
push ecx
push str.ConvertConfig2Hive
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.004098d0
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edx, dword [esp + 0x10]
mov dword [0x515504], edx
je 0x40f771
push str.ConvertConfig2Hive
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [esi + 0x48], ebx
je 0x40f7eb
mov eax, dword [esi + 0x90]
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00421520
lea ecx, [esp + 0x10]
call fcn.00468100
lea eax, [esp + 0x10]
call fcn.004214e0
push 0x18
push str.PluginsPluginsSetupBak_
lea eax, [esp + 0x18]
push eax
call fcn.004060a0
mov esi, dword [esp + 0x10]
push ebx
mov edx, esi
call fcn.0048c020
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004076c0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40f852
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f852
push 0x4f10f0
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [0x5157fc]
mov esi, dword [esi + 8]
add esp, 4
cmp eax, ebx
je 0x40f852
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x4a
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x4103a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4de3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov dword [esp + 0x224], 0
mov esi, dword [esp + 0x22c]
cmp dword [esi - 0xc], 0
jne 0x410411
lea eax, [esi - 0x10]
mov dword [esp + 0x224], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4104c8
push 0x206
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call fcn.004be240
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4103f1
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x410450
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410450
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4104ad
cmp dword [esi - 0xc], eax
jl 0x4104ad
lea ecx, [esp + 0xc]
lea edx, [esp + 0x22c]
call fcn.00409ac0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004b9d0f
add esp, 8
test eax, eax
lea ecx, [esp + 0xc]
sete bl
call fcn.004016d0
test bl, bl
je 0x4104ad
lea ecx, [esp + 0x22c]
call fcn.004016d0
mov eax, 1
jmp 0x4104d6
lea eax, [esi - 0x10]
mov dword [esp + 0x224], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4104d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x21c
ret 4
Function at 0x411b40
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4e053b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [esp + 0x238]
push eax
mov ebx, ecx
push str.UpdateSelfProtect__Enter__bEnable_d
mov ecx, 0x5158b0
call fcn.00489840
xor esi, esi
push 0x208
lea ecx, [esp + 0x22]
push esi
push ecx
mov word [esp + 0x28], si
call fcn.004be240
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
push str.TSKSP
jb 0x411bd3
push str..Global_s
push 0x104
lea edx, [esp + 0x20]
push edx
jmp 0x411be2
push str.._s
push 0x104
lea eax, [esp + 0x20]
push eax
call fcn.004b937c
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411c3c
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 4
lea eax, [esp + 0x24c]
push eax
push 0x22e05c
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
push esi
push ecx
push str.UpdateSelfProtect__Leave__bEnable_d__bResult_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 0xc
cmp dword [esp + 0x238], 0
je 0x411cd3
cmp dword [esp + 0x23c], 0
je 0x411cd3
mov edx, dword [ebx + 0x64]
cmp dword [edx - 0xc], 0
lea eax, [ebx + 0x64]
je 0x411cd3
push eax
lea eax, [esp + 0x14]
push eax
mov ebx, str.QQPCRTP.exe
call fcn.00413a60
push 0
mov dword [esp + 0x23c], 0
mov eax, dword [eax]
push 0
push eax
xor ecx, ecx
mov edx, 0x4f072c
call fcn.00422000
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411cd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004b83ee
add esp, 0x224
ret 8
Function at 0x411d00
Capabilities:
Check if file exists
Delete registry value
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4e0508
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x70]
xor ebx, ebx
cmp eax, ebx
je 0x411edb
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x411d52
xor eax, eax
jmp 0x411ee0
mov eax, dword [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x70], ebx
lea ecx, [esp + 0x14]
push ecx
push str.SOFTWARETencentQQPCMgr
mov dword [esp + 0x2c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
jne 0x411ecc
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.IsShow
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.00409930
test eax, eax
je 0x411ea8
add ebp, 0x90
lea edx, [esp + 0x2c]
push ebp
push edx
mov ebx, str.QQPCmgrInstallGuide.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004016d0
test esi, esi
je 0x411e92
push 0x4f1600
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea esi, [esp + 0x2c]
call fcn.004016f0
mov bl, 2
mov byte [esp + 0x24], bl
mov esi, dword [esp + 0x30]
push esi
push str.__h_d
lea edi, [esp + 0x34]
call fcn.00406130
lea eax, [esp + 0x38]
push str._sp__show
push eax
mov ecx, edi
call fcn.00416c70
add esp, 0x10
mov byte [esp + 0x24], 3
call fcn.00401410
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.004016d0
lea ecx, [esp + 0x30]
push ebp
push ecx
mov ebx, str.QQPCmgrInstallGuide.exe
call fcn.00413a60
mov byte [esp + 0x2c], 4
mov eax, dword [eax]
mov edx, dword [esp + 0x34]
push 0
push 0xffffffffffffffff
push eax
xor ecx, ecx
call fcn.00422000
add esp, 0x14
lea ecx, [esp + 0x30]
call fcn.004016d0
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004016d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411ea6
push str.IsShow
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ebx, ebx
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ecc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x411edb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8