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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
jne 0x40ba45
lea eax, [ebp - 8]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40bc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40bcbd
mov eax, dword [ebp - 0xc]
jmp 0x40bccc
cmp dword [ebp - 4], 4
je 0x40bcca
mov eax, 0xd
jmp 0x40bccc
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40bce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 8
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40bd1d
mov eax, dword [ebp - 0xc]
jmp 0x40bd2c
cmp dword [ebp - 4], 0xb
je 0x40bd2a
mov eax, 0xd
jmp 0x40bd2c
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40bd40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bd76
mov eax, dword [ebp - 8]
jmp 0x40bd85
cmp dword [ebp - 4], 3
je 0x40bd83
mov eax, 0xd
jmp 0x40bd85
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0xc], 0
je 0x40bde3
mov eax, dword [ebp - 0xc]
jmp 0x40bdf8
cmp dword [ebp - 4], 1
je 0x40bdf6
cmp dword [ebp - 4], 2
je 0x40bdf6
mov eax, 0xd
jmp 0x40bdf8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40be00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40be49
mov eax, dword [ebp - 0xc]
jmp 0x40be62
cmp dword [ebp - 4], 7
je 0x40be56
mov eax, 0xd
jmp 0x40be62
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40be70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 0x425fa4
mov dword [ebp - 8], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
xor eax, eax
je 0x40bed1
mov ecx, dword [ebp - 0x1c]
mov dword [0], ecx
cmp dword [ebp - 0x18], 0
jne 0x40beeb
mov edx, dword [ebp - 8]
lea ecx, [ebp - 8]
mov eax, dword [edx + 0x54]
call eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x40bf1f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x24], 0
cmp dword [ebp - 4], 0
je 0x40bf4d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40bf90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40bfae
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40bfae
mov eax, 0x57
jmp 0x40bff6
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40bfc4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp + 0x14], eax
movzx edx, byte [ebp + 0x10]
neg edx
sbb edx, edx
and edx, 6
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x40c116
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x40c1d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x14], 0x425fa4
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], 0
lea edx, [ebp - 0x228]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x40c255
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x54]
call eax
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x40c2a6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x234], 0
cmp dword [ebp - 0x10], 0
je 0x40c29b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x21c]
jmp 0x40c3b0
mov dword [ebp - 4], pe_nt_image_headers32
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40c338
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c1d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40c32c
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x10], 0
je 0x40c321
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x220]
jmp 0x40c3b0
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x40c2ad
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x10], 0
je 0x40c35f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x244]
mov edx, dword [eax + 0x70]
call edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x10], 0
je 0x40c3aa
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x224]
mov esp, ebp
pop ebp
ret 4
Function at 0x40f3f0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x13c8
call fcn.0041b270
mov eax, dword [0x42c4fc]
xor eax, esp
mov dword [esp + 0x13c4], eax
mov eax, dword [esp + 0x13cc]
push ebp
xor ebp, ebp
push 0xf9c
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0xfc6]
push ebp
push edx
mov dword [esp + 0x1c], ebp
mov word [esp + 0xfcc], bp
call sub.MSVCR80.dll_memset
add esp, 0x18
lea eax, [esp + 4]
push eax
push 0xfa0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40f5d1
mov eax, dword [esp + 4]
cmp eax, ebp
je 0x40f5d1
push ebx
push esi
shr eax, 2
push edi
mov dword [esp + 0x1c], eax
mov edi, ebp
je 0x40f544
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edx, dword [esp + edi*4 + 0x20]
push edx
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x40f537
push 0x208
lea eax, [esp + 0xfc4]
push ebp
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40f530
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0xfc4]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x40f530
push str.QQPCMgr.exe
lea edx, [esp + 0xfc4]
push edx
call ebx
test eax, eax
je 0x40f55f
push str.QQPCTray.exe
lea eax, [esp + 0xfc4]
push eax
call ebx
test eax, eax
je 0x40f55f
push str.QQPCRTP.exe
lea ecx, [esp + 0xfc4]
push ecx
call ebx
test eax, eax
je 0x40f55f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x40f490
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x13c4]
xor ecx, esp
call fcn.00416e92
add esp, 0x13c8
ret
push 0x208
lea edx, [esp + 0x11ce]
push ebp
push edx
mov word [esp + 0x11d4], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x11cc]
push eax
push ebp
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [esp + 0x11c8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x11c8]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x4221f4
mov ecx, esi
call dword [0x41d224]
mov eax, 1
jmp 0x40f546
mov ecx, dword [esp + 0x13c8]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00416e92
add esp, 0x13c8
ret
Function at 0x40f5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c4fc]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov esi, ecx
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
test esi, esi
mov edi, 0x80004005
je 0x40f68d
movzx eax, word [esi]
test ax, ax
je 0x40f68d
cmp ax, 0x5c
jne 0x40f640
cmp word [esi + 2], ax
jne 0x40f68d
cmp ax, 0x2f
je 0x40f68d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40f68d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40f678
push 0x103
lea ecx, [esp + 0xc]
push esi
push ecx
call dword [sym.imp.MSVCR80.dll__wfullpath]
add esp, 0xc
test eax, eax
je 0x40f68d
lea esi, [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f68b
test eax, 0x400
jne 0x40f68d
xor edi, edi
push edi
mov ecx, esi
call fcn.0040f6c0
mov ecx, dword [esp + 0x218]
add esp, 4
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00416e92
add esp, 0x214
ret
Function at 0x40f9e0
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42c4fc]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0xa]
push edi
push eax
mov word [esp + 0x10], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 8]
push ecx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fa44
push edi
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x40fa5d
lea ecx, [esp + 4]
push ecx
push 0x104
push esi
mov edi, 1
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00416e92
add esp, 0x20c
ret

Function at 0x4105f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
imul eax, edx
test ebx, ebx
push edi
mov dword [esi + 8], eax
jne 0x410610
mov ebx, ecx
mov eax, dword [esi + 4]
push eax
xor edi, edi
call fcn.0040fd50
add esp, 4
test al, al
je 0x410683
test ecx, ecx
jne 0x410652
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e81
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebx
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0x10
mov ecx, edi
mov ebx, edi
mov edx, dword [esi + 0x1c]
push edx
push ecx
call fcn.0040fd60
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [esi + 0x20]
push eax
call fcn.00414c60
add esp, 0x18
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ecx
push 1
push edx
push ebx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x4106a9
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test bl, bl
je 0x4106ec
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push ecx
push 0x18
push ecx
mov ecx, esp
jb 0x4106c9
mov eax, dword [esi + 0x40]
jmp 0x4106cc
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.00414c60
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.00410420
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x4151f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
test bl, bl
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
je 0x415363
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x415244
mov eax, dword [esi + 0x40]
jmp 0x415247
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.00414c60
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
test edx, edx
mov dword [ebp - 8], edx
je 0x41530d
sub dword [ebp - 8], 1
xor edx, edx
cmp byte [ebp - 2], dl
je 0x41528c
cmp byte [edi], dl
jmp 0x415290
cmp word [edi], 0
sete dl
test edx, edx
je 0x4152bd
test eax, eax
je 0x4152b4
cmp edi, eax
je 0x4152b4
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
add ebx, 1
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x41527d
test eax, eax
je 0x4152e3
cmp edi, eax
je 0x4152e3
mov ecx, dword [esi + 0x18]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
test ebx, ebx
je 0x41530d
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.00414c60
add esp, 0x18
sub dword [esi + 0x1c], ebx
cmp dword [esi + 0x18], 1
jle 0x415357
mov eax, dword [esi + 4]
push eax
call fcn.0040fd50
add esp, 4
test al, al
je 0x415357
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0040fd60
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414c60
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00410420
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416e92
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c4fc]
jne 0x416e9c
repz ret
jmp fcn.00417498
Function at 0x418080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x425fa4
mov dword [ebp - 8], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4180e1
mov edx, dword [ebp - 8]
lea ecx, [ebp - 8]
mov eax, dword [edx + 0x54]
call eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x18], 0
jne 0x41810e
mov dword [ebp - 0x20], 4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.SupplyID
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x28], 0
cmp dword [ebp - 4], 0
je 0x41813c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x418150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b9b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
mov dword [ebp - 0x478], ecx
cmp dword [ebp - 0x478], 0
je 0x418189
mov eax, dword [ebp - 0x478]
cmp dword [eax + 0x7c], 0
je 0x41818e
jmp 0x418364
mov ecx, dword [ebp - 0x478]
cmp dword [ecx + 0x20], 0
jne 0x41819f
jmp 0x418364
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x425fa4
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x45c], 0
lea edx, [ebp - 0x45c]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
jne 0x418217
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov edx, dword [eax + 0x54]
call edx
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x460], 0
jne 0x41831a
mov word [ebp - 0x43c], 0
push 0x410
push 0
lea ecx, [ebp - 0x43a]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0x208
mov edx, dword [ebp - 0x20]
shl edx, 1
mov dword [ebp - 0x468], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x464]
push edx
push 0
push str.Version
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x468]
shr ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x46c], 0
je 0x4182aa
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x470], edx
jmp 0x4182d2
cmp dword [ebp - 0x464], 1
je 0x4182c8
cmp dword [ebp - 0x464], 2
je 0x4182c8
mov dword [ebp - 0x470], 0xd
jmp 0x4182d2
mov dword [ebp - 0x470], 0
cmp dword [ebp - 0x470], 0
jne 0x41831a
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x458]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push ecx
mov ecx, dword [ebp - 0x478]
call fcn.00417d60
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x458]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [ebp - 0x478]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x4c], edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], vtable.QMRegisterUtils::CQMRegistryHandle.0
mov dword [ebp - 0x474], 0
cmp dword [ebp - 0x10], 0
je 0x418364
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret