joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bfd
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x439cdd
call fcn.00436b26
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x220], edi
mov word [edi + 4], bx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.0041be10
mov al, byte [ebp + 8]
add esp, 0xc
neg al
push esi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408ccd
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.004090e0
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.00409540
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00409471
cmp byte [ebp + 8], bl
je 0x408ca5
push str.TencentDeskUpdate
jmp 0x408caa
push str.TencentDesktop
push edi
call fcn.0040911b
mov ecx, edi
call fcn.00408cd5
test al, al
jne 0x408cc2
mov ecx, edi
call fcn.00408d9f
push str.Global.db
push edi
call fcn.0040911b
mov eax, edi
call fcn.00436ba9
ret

Function at 0x409aed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x409b02
push 0x80004005
call fcn.0040198f
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x409b5a
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x409b57
cmp dword [ebp - 4], ebx
jbe 0x409b54
cmp dword [ebp - 4], 2
jbe 0x409b5f
cmp dword [ebp - 4], 7
jne 0x409b54
test cl, 1
jne 0x409b54
shr ecx, 1
cmp ecx, 1
jb 0x409b54
cmp word [esi + ecx*2 - 2], bx
jne 0x409b54
cmp ecx, 1
jbe 0x409b5a
cmp word [esi + ecx*2 - 4], bx
je 0x409b5a
push 0xd
pop eax
mov word [esi], bx
pop ebx
leave
ret 8
test cl, 1
jne 0x409b54
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jmp 0x409b52

Function at 0x409b92
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409ba5
push 0x80004005
call fcn.0040198f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc
Function at 0x409c09
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041be10
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x409c5d
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x409c6e
cmp dword [ebp - 0x7c], 6
jne 0x409c6e
cmp dword [ebp - 0x78], 0
jne 0x409c6e
xor eax, eax
inc eax
jmp 0x409c70
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041bf18
add ebp, 0xa0
leave
ret

Function at 0x409c86
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041be10
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x409cda
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x409ce8
cmp dword [ebp - 0x7c], 6
jne 0x409ce8
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x409cea
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041bf18
add ebp, 0xa0
leave
ret
Function at 0x40a363
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x43a338
call fcn.00436b26
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.00409c09
test eax, eax
jne 0x40a3e8
call fcn.00409c86
test eax, eax
jne 0x40a3e8
lea eax, [ebp - 0x30]
push eax
push 0x20019
push edi
push str.SOFTWARETencentQQPCMgrDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a4be
push 4
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push edi
push str.ProductID
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, edi
sete al
jmp 0x40a4c0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.00409d00
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409274
push edi
push 1
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00409471
push 0x43d960
lea eax, [ebp - 0x2c]
push eax
call fcn.0040911b
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp - 0x2c]
push eax
call fcn.0040911b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a44c
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
push 0x2001f
push edi
push eax
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a4b3
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
call fcn.00409ab3
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], eax
je 0x40a48e
push esi
call ebx
mov dword [ebp - 0x30], edi
xor eax, eax
cmp dword [ebp - 0x34], edi
push edi
sete al
push 1
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00409471
cmp dword [ebp - 0x30], edi
je 0x40a4ae
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
jmp 0x40a4c0
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00409471
xor eax, eax
call fcn.00436ba9
ret
Function at 0x40a671
Capabilities:
Delete registry value

Disassembly:
push 0x44
mov eax, 0x43a2b8
call fcn.00436b26
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.00409c09
test eax, eax
jne 0x40a6f8
call fcn.00409c86
test eax, eax
jne 0x40a6f8
lea eax, [ebp - 0x30]
push eax
push 0x2001f
push edi
push str.SOFTWARETencentQQPCMgrDownloader
push closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a7cc
mov esi, dword [ebp - 0x30]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x30], eax
je 0x40a6de
push esi
call ebx
xor esi, esi
xor eax, eax
cmp dword [ebp - 0x30], edi
sete al
cmp esi, edi
mov dword [ebp - 0x30], eax
je 0x40a6f0
push esi
call ebx
mov eax, dword [ebp - 0x30]
jmp 0x40a7ce
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.00409d00
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409274
push edi
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00409471
push 0x43d960
lea eax, [ebp - 0x2c]
push eax
call fcn.0040911b
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp - 0x2c]
push eax
call fcn.0040911b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a75c
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
push 0x2001f
push edi
push eax
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a7c1
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], eax
je 0x40a79c
push esi
call ebx
mov dword [ebp - 0x30], edi
xor eax, eax
cmp dword [ebp - 0x34], edi
push edi
sete al
push 1
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00409471
cmp dword [ebp - 0x30], edi
je 0x40a7bc
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
jmp 0x40a7ce
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00409471
xor eax, eax
call fcn.00436ba9
ret
Function at 0x40a7d4
Capabilities:
Delete registry key

Disassembly:
push 0x44
mov eax, 0x43a2b8
call fcn.00436b26
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.00409c09
test eax, eax
jne 0x40a85a
call fcn.00409c86
test eax, eax
jne 0x40a85a
lea eax, [ebp - 0x30]
push eax
push 0x2001f
push edi
push 0x43d93c
push closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a930
mov ebx, dword [ebp - 0x30]
push str.SOFTWARETencentQQPCMgrDownloader
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp ebx, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x30], eax
je 0x40a840
push ebx
call esi
xor ebx, ebx
xor eax, eax
cmp dword [ebp - 0x30], edi
sete al
cmp ebx, edi
mov dword [ebp - 0x30], eax
je 0x40a852
push ebx
call esi
mov eax, dword [ebp - 0x30]
jmp 0x40a932
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.00409d00
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409274
push edi
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00409471
push 0x43d960
lea eax, [ebp - 0x2c]
push eax
call fcn.0040911b
push 0x43d93c
lea eax, [ebp - 0x2c]
push eax
call fcn.0040911b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a8be
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
push 0x2001f
push edi
push eax
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a925
mov esi, dword [ebp - 0x30]
push str.SOFTWARETencentQQPCMgrDownloader
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], eax
je 0x40a900
push esi
call ebx
mov dword [ebp - 0x30], edi
xor eax, eax
cmp dword [ebp - 0x34], edi
push edi
sete al
push 1
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00409471
cmp dword [ebp - 0x30], edi
je 0x40a920
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
jmp 0x40a932
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00409471
xor eax, eax
call fcn.00436ba9
ret
Function at 0x40abde
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test byte [0x449528], 1
mov dword [ebp - 0x214], esi
jne 0x40ac2a
mov eax, dword [0x4482cc]
or dword [0x449528], 1
mov ecx, 0x4482cc
call dword [eax + 0xc]
add eax, 0x10
push 0x43ae4b
mov dword [0x449510], eax
call fcn.0041c04b
pop ecx
mov eax, dword [0x449510]
cmp dword [eax - 0xc], esi
jne 0x40acaf
push edi
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0041be10
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x449510
push edi
call fcn.004015aa
mov eax, dword [0x449510]
cmp dword [eax - 0xc], esi
jle 0x40acae
call fcn.00409bcb
mov eax, 0x43ea10
mov ecx, edi
call fcn.004019e7
push dword [0x449510]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40acae
push esi
push dword [0x449510]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, dword [0x449510]
add eax, 0xfffffff0
call fcn.0040163d
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.0041bf18
leave
ret

Function at 0x40ebb1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push dword [edi + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ebec
push 0x43d93c
push dword [ebp + 8]
call fcn.004015aa
mov eax, ebx
jmp 0x40ec36
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
push 0x104
mov dword [ebp - 8], 0x208
mov dword [ebp - 0xc], ebx
call fcn.00401878
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea esi, [edi + 0xc]
call fcn.0040f860
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 8]
mov edi, eax
call fcn.0040acd0
test edi, edi
pop esi
jne 0x40ebdb
push 2
pop eax
pop edi
pop ebx
leave
ret 4

Function at 0x41010a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
xor ebx, ebx
inc ebx
push ebx
push 0
mov dword [ebp - 4], 0x100
call fcn.0040f860
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41016c
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
call fcn.0040f860
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41016c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret 0x10
mov esi, dword [ebp + 0x10]
call fcn.0040acd0
mov esi, dword [ebp + 0xc]
call fcn.0040acd0
xor bl, bl
jmp 0x41015b
Function at 0x410180
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x439918
call fcn.00436abd
mov edi, dword [ebp + 0x10]
call fcn.00411354
mov eax, dword [ebp + 0xc]
push 4
pop esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], esi
mov ebx, 0x208
jmp 0x4101ad
mov eax, dword [ebp + 0xc]
push 4
pop esi
mov ecx, dword [eax]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
xor eax, eax
dec ecx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x4101e9
dec ecx
je 0x4101da
dec ecx
dec ecx
jne 0x4101fd
push esi
call fcn.0041c1be
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
jmp 0x4101f9
push ebx
call fcn.0041c1be
mov dword [ebp - 0x2c], 2
jmp 0x4101f6
push ebx
call fcn.0041c1be
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], ebx
pop ecx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x28]
call fcn.0041be10
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x410245
cmp dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
je 0x410245
push dword [ebp - 0x28]
call fcn.0041be06
pop ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.004090e0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], esi
call fcn.00411253
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x28]
push esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x48]
mov dword [eax], ecx
call fcn.00409471
add dword [ebp + 0xc], 8
dec dword [ebp - 0x10]
jne 0x4101a7
xor eax, eax
inc eax
call fcn.00436b95
ret 0xc

Function at 0x410411
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.0041be10
add esp, 0xc
cmp dword [esi + 4], edi
jne 0x4104c4
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
push 0x43f5d8
lea eax, [ebp - 0x20c]
jb 0x41046a
push str..Global_s
jmp 0x41046f
push str.._s
push 0x104
push eax
call fcn.0041cbdd
add esp, 0x10
push edi
push 0x80
push 3
push edi
xor edi, edi
inc edi
push edi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4104ac
push eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4104c4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
je 0x4104c1
call ebx
cmp eax, 0x1f
jne 0x4104c3
mov dword [esi], edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041bf18
leave
ret
Function at 0x410b79
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
jne 0x410b8e
xor eax, eax
jmp 0x410c0b
push esi
mov esi, closesocket
push esi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x410bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x410c07
push ebx
push esi
push str.QQPCRTP
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
jne 0x410bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x410c01
lea eax, [ebp - 8]
push eax
push 0x24
push dword [ebp + 8]
mov dword [ebp - 8], edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x410bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call ebx
push dword [ebp - 0xc]
call ebx
pop ebx
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret 8

Function at 0x410fa9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411010
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.SVCStart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x411010
xor eax, eax
cmp dword [ebp - 8], esi
sete al
jmp 0x411012
xor al, al
pop esi
leave
ret

Function at 0x413857
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
push dword [esi + 0x34]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ebx, 0x80
push ebx
push dword [esi + 4]
call edi
push dword [esi + 0x38]
push 0
push ebx
push dword [esi + 4]
call edi
cmp dword [esi + 0x30], 0
pop edi
pop ebx
jne 0x41388a
call fcn.004147da
mov dword [esi + 0x30], eax
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
mov ecx, dword [esi + 0x30]
call fcn.00414eab
mov eax, dword [esp + 4]
and dword [eax], 0
xor eax, eax
inc eax
ret 4
Function at 0x413928
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
push ebx
push edi
push dword [ebp + 0xc]
call dword [eax + 0xc]
cmp dword [ebp + 8], 0
jne 0x4139a1
push dword [esi + 0x30]
call fcn.00414bee
test eax, eax
je 0x4139a8
mov eax, dword [esi + 0x30]
push dword [eax + 0x38]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41398c
mov eax, dword [esi + 0x30]
push dword [eax + 0x38]
mov ecx, dword [eax + 0x34]
call fcn.0041507b
test eax, eax
je 0x41398c
cmp dword [esi + 0x20], 0
je 0x413982
mov ecx, dword [esi + 0x30]
call fcn.0041488c
jmp 0x4139a8
mov edi, dword [esi + 0x30]
call fcn.004152c7
jmp 0x4139a8
mov edi, dword [esi + 0x30]
call fcn.004152c7
push dword [esi + 4]
mov ebx, dword [esi + 0x30]
call fcn.004151ce
jmp 0x4139b1
mov byte [0x4491e7], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x413f28
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x43f808
xor esi, esi
push 0x8c
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x413f60
xor eax, eax
jmp 0x413fac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x413f5c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x413f5c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x413fa9
push esi
push 0x80
push 2
push esi
push 1
push 0x10000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413fba
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf18
leave
ret
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413fd9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x413fab
xor esi, esi
inc esi
jmp 0x413fce