joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d7b
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x44
mov eax, 0x43d5a8
call fcn.0043a128
xor ebx, ebx
push ebx
lea edi, [ebp - 0x48]
mov byte [ebp - 0x49], bl
call fcn.00408f9d
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x408da5
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x408e50
push 1
lea edi, [ebp - 0x2c]
call fcn.00408f9d
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.0040942e
test al, al
pop ecx
jne 0x408e23
mov eax, edi
push eax
call fcn.0040942e
test al, al
pop ecx
je 0x408e23
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x408df7
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x408e03
lea eax, [ebp - 0x28]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x408e23
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x408e1c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x408e2f
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.00409826
cmp edi, 0xffffffff
je 0x408e85
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jb 0x408e7e
push ebx
lea eax, [ebp - 0x50]
push eax
push esi
push 0x44e2d4
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408e7e
cmp dword [ebp - 0x50], esi
jne 0x408e7e
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.00409826
mov al, byte [ebp - 0x49]
call fcn.0043a1ab
ret

Function at 0x408e99
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x43d5a8
call fcn.0043a128
xor esi, esi
push esi
lea edi, [ebp - 0x48]
mov byte [ebp - 0x49], 0
call fcn.00408f9d
pop ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x408ec4
lea eax, [ebp - 0x44]
push esi
push esi
push 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
mov ebx, 0x40000000
push ebx
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x408f18
push 1
lea edi, [ebp - 0x2c]
call fcn.00408f9d
cmp dword [ebp - 0x14], 8
pop ecx
mov ecx, dword [ebp - 0x28]
jae 0x408ef8
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push ebx
push ecx
call esi
push 0
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.00409826
cmp edi, 0xffffffff
je 0x408f41
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10
push 0x44e2d4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408f3a
cmp dword [ebp - 0x50], 0x10
jne 0x408f3a
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00409826
mov al, byte [ebp - 0x49]
call fcn.0043a1ab
ret
Function at 0x408f9d
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x43d56d
call fcn.0043a128
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.0041ef10
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 0x40906d
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.00409482
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.004098f5
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00409826
cmp byte [ebp + 8], bl
je 0x409045
push 0x4429cc
jmp 0x40904a
push 0x4429f4
push edi
call fcn.004094c7
mov ecx, edi
call fcn.00409075
test al, al
jne 0x409062
mov ecx, edi
call fcn.00409141
push 0x442a18
push edi
call fcn.004094c7
mov eax, edi
call fcn.0043a1ab
ret

Function at 0x409ebd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x409ed2
push 0x80004005
call fcn.004019c3
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 0x409f2a
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x409f27
cmp dword [ebp - 4], ebx
jbe 0x409f24
cmp dword [ebp - 4], 2
jbe 0x409f2f
cmp dword [ebp - 4], 7
jne 0x409f24
test cl, 1
jne 0x409f24
shr ecx, 1
cmp ecx, 1
jb 0x409f24
cmp word [esi + ecx*2 - 2], bx
jne 0x409f24
cmp ecx, 1
jbe 0x409f2a
cmp word [esi + ecx*2 - 4], bx
je 0x409f2a
push 0xd
pop eax
mov word [esi], bx
pop ebx
leave
ret 8
test cl, 1
jne 0x409f24
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jmp 0x409f22

Function at 0x409f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409f73
push 0x80004005
call fcn.004019c3
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 0x409fd7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x44b074]
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.0041ef10
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 0x40a02b
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x40a03c
cmp dword [ebp - 0x7c], 6
jne 0x40a03c
cmp dword [ebp - 0x78], 0
jne 0x40a03c
xor eax, eax
inc eax
jmp 0x40a03e
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041f018
add ebp, 0xa0
leave
ret

Function at 0x40a054
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x44b074]
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.0041ef10
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 0x40a0a8
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x40a0b6
cmp dword [ebp - 0x7c], 6
jne 0x40a0b6
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x40a0b8
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041f018
add ebp, 0xa0
leave
ret
Function at 0x40a731
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x43da88
call fcn.0043a128
mov esi, ecx
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.00409fd7
test eax, eax
jne 0x40a7b7
call fcn.0040a054
test eax, eax
jne 0x40a7b7
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 0x40a890
push 4
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push edi
push esi
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 0x40a892
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.0040a0ce
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409620
push edi
push 1
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00409826
push 0x441990
lea eax, [ebp - 0x2c]
push eax
call fcn.004094c7
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp - 0x2c]
push eax
call fcn.004094c7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a81b
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 0x40a885
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
call fcn.00409e85
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], eax
je 0x40a860
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.00409826
cmp dword [ebp - 0x30], edi
je 0x40a880
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
jmp 0x40a892
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00409826
xor eax, eax
call fcn.0043a1ab
ret
Function at 0x40aa4f
Capabilities:
Delete registry value

Disassembly:
push 0x44
mov eax, 0x43da48
call fcn.0043a128
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.00409fd7
test eax, eax
jne 0x40aad6
call fcn.0040a054
test eax, eax
jne 0x40aad6
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 0x40abaa
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 0x40aabc
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 0x40aace
push esi
call ebx
mov eax, dword [ebp - 0x30]
jmp 0x40abac
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.0040a0ce
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409620
push edi
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00409826
push 0x441990
lea eax, [ebp - 0x2c]
push eax
call fcn.004094c7
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp - 0x2c]
push eax
call fcn.004094c7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40ab3a
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 0x40ab9f
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 0x40ab7a
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.00409826
cmp dword [ebp - 0x30], edi
je 0x40ab9a
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
jmp 0x40abac
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00409826
xor eax, eax
call fcn.0043a1ab
ret
Function at 0x40abb2
Capabilities:
Delete registry key

Disassembly:
push 0x44
mov eax, 0x43da48
call fcn.0043a128
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.00409fd7
test eax, eax
jne 0x40ac38
call fcn.0040a054
test eax, eax
jne 0x40ac38
lea eax, [ebp - 0x30]
push eax
push 0x2001f
push edi
push 0x44196c
push closesocket
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40ad0e
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 0x40ac1e
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 0x40ac30
push ebx
call esi
mov eax, dword [ebp - 0x30]
jmp 0x40ad10
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.0040a0ce
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409620
push edi
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00409826
push 0x441990
lea eax, [ebp - 0x2c]
push eax
call fcn.004094c7
push 0x44196c
lea eax, [ebp - 0x2c]
push eax
call fcn.004094c7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40ac9c
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 0x40ad03
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 0x40acde
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.00409826
cmp dword [ebp - 0x30], edi
je 0x40acfe
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
jmp 0x40ad10
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00409826
xor eax, eax
call fcn.0043a1ab
ret
Function at 0x40afbc
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test byte [0x44e590], 1
mov dword [ebp - 0x214], esi
jne 0x40b008
mov eax, dword [0x44d32c]
or dword [0x44e590], 1
mov ecx, 0x44d32c
call dword [eax + 0xc]
add eax, 0x10
push 0x43e7db
mov dword [0x44e578], eax
call fcn.0041f14b
pop ecx
mov eax, dword [0x44e578]
cmp dword [eax - 0xc], esi
jne 0x40b08d
push edi
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0041ef10
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, 0x44e578
push edi
call fcn.004015de
mov eax, dword [0x44e578]
cmp dword [eax - 0xc], esi
jle 0x40b08c
call fcn.00409f99
mov eax, 0x442a40
mov ecx, edi
call fcn.00401a1b
push dword [0x44e578]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b08c
push esi
push dword [0x44e578]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, dword [0x44e578]
add eax, 0xfffffff0
call fcn.00401671
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.0041f018
leave
ret

Function at 0x40b6e8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x24], 0
push edi
push 7
pop ecx
push dword [edx]
xor eax, eax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
push 0xf
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
push 0
push str.LastFailTime
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
pop edi
je 0x40b73a
push 0xa
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00422eec
add esp, 0xc
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.0041f018
leave
ret 4

Function at 0x410627
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 0x410662
push 0x44196c
push dword [ebp + 8]
call fcn.004015de
mov eax, ebx
jmp 0x4106ac
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.004018ac
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea esi, [edi + 0xc]
call fcn.0040ff41
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 8]
mov edi, eax
call fcn.0040b0ae
test edi, edi
pop esi
jne 0x410651
push 2
pop eax
pop edi
pop ebx
leave
ret 4
Function at 0x412238
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], pe_nt_image_headers32
call fcn.0040ff41
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41229a
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.0040ff41
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41229a
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.0040b0ae
mov esi, dword [ebp + 0xc]
call fcn.0040b0ae
xor bl, bl
jmp 0x412289

Function at 0x4122ae
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x43d0f8
call fcn.0043a0bf
mov edi, dword [ebp + 0x10]
call fcn.00413485
mov eax, dword [ebp + 0xc]
push 4
pop esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], esi
mov ebx, 0x208
jmp 0x4122db
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 0x412317
dec ecx
je 0x412308
dec ecx
dec ecx
jne 0x41232b
push esi
call fcn.0041f2be
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
jmp 0x412327
push ebx
call fcn.0041f2be
mov dword [ebp - 0x2c], 2
jmp 0x412324
push ebx
call fcn.0041f2be
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.0041ef10
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 0x412373
cmp dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
je 0x412373
push dword [ebp - 0x28]
call fcn.0041ef0a
pop ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00409482
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], esi
call fcn.00413384
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.00409826
add dword [ebp + 0xc], 8
dec dword [ebp - 0x10]
jne 0x4122d5
xor eax, eax
inc eax
call fcn.0043a197
ret 0xc
Function at 0x41253f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44b074]
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.0041ef10
add esp, 0xc
cmp dword [esi + 4], edi
jne 0x4125f2
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
push 0x443640
lea eax, [ebp - 0x20c]
jb 0x412598
push str..Global_s
jmp 0x41259d
push str.._s
push 0x104
push eax
call fcn.0041fcdd
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 0x4125da
push eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4125f2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
je 0x4125ef
call ebx
cmp eax, 0x1f
jne 0x4125f1
mov dword [esi], edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041f018
leave
ret

Function at 0x412ca7
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 0x412cbc
xor eax, eax
jmp 0x412d39
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 0x412cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x412d35
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 0x412d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x412d2f
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 0x412d2c
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 0x4130d7
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 0x41313e
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 0x41313e
xor eax, eax
cmp dword [ebp - 8], esi
sete al
jmp 0x413140
xor al, al
pop esi
leave
ret