joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b450
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10048145
call fcn.100464e0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call sub.MFC42u.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 3
call fcn.1000b56a
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0xd
call sub.MFC42u.DLL_CString::CString_1
mov edi, 0x10060aec
lea ecx, [esi + 4]
push edi
mov byte [ebp - 4], 0xe
mov dword [esi], ebx
mov dword [esi + 0x34], 1
call sub.MFC42u.DLL_CString::operator
push edi
lea ecx, [esi + 8]
call sub.MFC42u.DLL_CString::operator
push edi
lea ecx, [esi + 0xc]
call sub.MFC42u.DLL_CString::operator
push edi
lea ecx, [esi + 0x10]
call sub.MFC42u.DLL_CString::operator
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x58], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000b5c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10048202
call fcn.100464e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0xd
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1000b803
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x1000b82e
lea eax, [esi + 0x6c]
push eax
push 0
push esi
push 0x1000b7ef
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x68], eax
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
ret

Function at 0x1000c593
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
mov byte [ebp - 0x66], 0x5f
mov byte [ebp - 0x65], 0x59
mov byte [ebp - 0x64], 0x58
mov byte [ebp - 0x63], 0x4c
mov byte [ebp - 0x62], 0x41
mov byte [ebp - 0x61], 0x7d
mov byte [ebp - 0x60], 0x5f
mov byte [ebp - 0x5f], 0x42
mov byte [ebp - 0x5e], 0x59
mov byte [ebp - 0x5d], 0x48
mov byte [ebp - 0x5c], 0x4e
mov byte [ebp - 0x5b], 0x59
mov byte [ebp - 0x5a], 0x2d
call fcn.1000c1f0
push eax
push edi
push dword [ebp + 8]
call fcn.1000c1a5
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0x4e
mov byte [ebp - 0x3f], 0x6d
mov byte [ebp - 0x3e], 0x63
mov byte [ebp - 0x3d], 0x66
mov byte [ebp - 0x3c], 0x4e
mov byte [ebp - 0x3b], 0x6b
mov byte [ebp - 0x3a], 0x60
mov byte [ebp - 0x39], 0x70
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x37], 0x70
mov byte [ebp - 0x36], 0x7b
mov byte [ebp - 0x35], 0x43
mov byte [ebp - 0x34], 2
call fcn.1000c1f0
push eax
push edi
push dword [ebp + 8]
jne 0x1000c634
Function at 0x1000ec16
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x1000f8ef
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x1000f929
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x1000f926
push 0x10
xor eax, eax
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 0x10]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
add ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add dword [ebp + 8], edx
dec ecx
jne 0x1000f93d
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000f997
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov dword [ebp + 8], eax
call esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x1000f9d1
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x1000f9ce
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
sub ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add eax, 0x61c88647
sub dword [ebp + 8], edx
dec ecx
jne 0x1000f9e8
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011c41
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov edi, 0x20019
xor ebx, ebx
push eax
push edi
push ebx
push 0x1005cc6c
push SysStringLen
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x10011daf
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x1005cc5c
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x11c]
push ebx
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x10011da6
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1005cc4c
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10011d9d
push 1
lea eax, [ebp - 0x11c]
pop edi
mov dword [ebp - 8], 0x103
push 0x104
push ebx
push eax
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1005cc3c
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10011d9d
cmp dword [ebp - 0x10], edi
jne 0x10011d8b
mov esi, 0x1005cc38
push esi
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x10011d64
mov dword [ebp - 0xc], ebx
jmp 0x10011d9d
cmp dword [ebp - 0x10], 1
jne 0x10011d8b
push esi
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
je 0x10011d8b
mov dword [ebp - 0xc], 2
jmp 0x10011d9d
xor eax, eax
cmp dword [ebp - 0x10], 2
setne al
dec eax
and al, 0xfe
add eax, 3
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012293
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10048685
call fcn.100464e0
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.100123ae
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x100122c3
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
mov edi, 0x40000000
push 1
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10012319
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.100123ae
mov eax, dword [ebp - 0x20]
pop ecx
cmp eax, ebx
pop ecx
jne 0x100122fa
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push 2
push ebx
push 1
push edi
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x14], 0xffffffff
je 0x10012343
lea eax, [ebp + 8]
push ebx
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001233a
cmp dword [ebp + 8], 0x10
jne 0x1001233a
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10012bf1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x10012c0d
or eax, 0xffffffff
jmp 0x10012d30
cmp dword [ebp + 0xc], esi
jg 0x10012c16
push 0xfffffffffffffffe
jmp 0x10012c43
cmp dword [ebp + 0x10], esi
jne 0x10012c1f
push 0xfffffffffffffffd
jmp 0x10012c43
cmp dword [ebp + 0x14], esi
jg 0x10012c28
push 0xfffffffffffffffc
jmp 0x10012c43
cmp dword [ebp + 0x18], esi
jne 0x10012c31
push 0xfffffffffffffffb
jmp 0x10012c43
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jg 0x10012c3c
push 0xfffffffffffffffa
jmp 0x10012c43
cmp dword [ebp + 0x14], eax
jge 0x10012c49
push 0xfffffffffffffff9
pop eax
jmp 0x10012d30
push ebx
xor ebx, ebx
mov ecx, 0x100
mov al, byte [esi + edi]
mov byte [ebp + ebx - 0x100], bl
mov byte [ebp + ebx - 0x200], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
inc ebx
cmp ebx, ecx
mov esi, edx
jl 0x10012c51
xor edi, edi
mov dword [ebp + 0x14], edi
movzx edx, byte [ebp + edi - 0x200]
movzx eax, byte [ebp + edi - 0x100]
mov ebx, dword [ebp + 0x14]
lea esi, [ebp + edi - 0x100]
add ebx, edx
add eax, ebx
mov ebx, ecx
cdq
idiv ebx
mov bl, byte [ebp + edx - 0x100]
inc edi
cmp edi, ecx
mov dword [ebp + 0x14], edx
lea eax, [ebp + edx - 0x100]
mov dl, byte [esi]
mov byte [eax], dl
mov byte [esi], bl
jl 0x10012c75
xor eax, eax
cmp dword [ebp + 0x1c], eax
mov dword [ebp + 0x14], eax
jle 0x10012d2d
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
sub edx, edi
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], edx
jmp 0x10012cd4
mov eax, dword [ebp + 0xc]
inc eax
mov esi, ecx
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x100]
add eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp + 0xc], edx
lea esi, [ebp + edx - 0x100]
cdq
idiv ebx
mov bl, byte [esi]
mov dword [ebp + 0x14], edx
lea eax, [ebp + edx - 0x100]
mov dl, byte [ebp + edx - 0x100]
mov byte [eax], bl
mov byte [esi], dl
mov esi, ecx
movzx eax, byte [eax]
movzx edx, dl
add eax, edx
cdq
idiv esi
mov al, byte [ebp + edx - 0x100]
mov edx, dword [ebp + 0x10]
xor al, byte [edx + edi]
mov byte [edi], al
inc edi
dec dword [ebp + 0x1c]
jne 0x10012cd1
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x10012d4c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10012d9d
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
push eax
call esi
test eax, eax
je 0x10012db4
cmp dword [ebp - 0x118], 6
jne 0x10012db4
cmp dword [ebp - 0x114], 0
jne 0x10012db4
push 1
pop eax
jmp 0x10012db6
xor eax, eax
pop esi
leave
ret
Function at 0x10012db9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10012e0a
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
push eax
call esi
test eax, eax
je 0x10012e1e
cmp dword [ebp - 0x118], 6
jne 0x10012e1e
push 1
pop eax
cmp dword [ebp - 0x114], eax
jae 0x10012e20
xor eax, eax
pop esi
leave
ret
Function at 0x10014742
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
xor ebx, ebx
test byte [0x10060cc0], 1
push esi
push edi
mov dword [ebp - 4], ebx
mov esi, 0x10060cc4
jne 0x1001477a
or byte [0x10060cc0], 1
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
push 0x10014860
call fcn.100463d2
pop ecx
mov eax, dword [0x10060cc4]
cmp dword [eax - 8], ebx
jne 0x1001482c
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x214]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::operator
mov eax, dword [0x10060cc4]
cmp dword [eax - 8], ebx
jle 0x1001482c
push esi
call fcn.1001483d
mov ecx, esi
mov dword [esp], str.TencentQQPCMgr_
call sub.MFC42u.DLL_CString::operator_1
push dword [0x10060cc4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001482c
mov ecx, esi
call fcn.100026db
sub esp, 0x10
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xb]
mov edi, esp
mov dword [ebp - 8], esp
push ebx
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
mov ecx, edi
push dword [ebp - 4]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
call fcn.10001682
add esp, 0x10
mov ecx, dword [ebp + 8]
push esi
call fcn.100460c4
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100148d4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10048908
call fcn.100464e0
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.10014896
mov edi, eax
cmp edi, esi
je 0x1001491e
cmp dword [ebp - 0x10], esi
je 0x10014917
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100149bb
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1001498f
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.100148d4
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x1001497c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x10014941
cmp dword [ebp - 0x10], esi
je 0x1001498a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x100149bb
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100149a2
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x100149b9
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10014c42
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and word [ebp - 0x20], 0
push edi
mov edx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1e]
push dword [edx]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
push 0xf
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
pop edi
je 0x10014c8d
lea eax, [ebp + 0x10]
push 0xa
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_wcstoul]
add esp, 0xc
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
leave
ret 0xc
Function at 0x10015263
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41a]
mov word [ebp - 0x41c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x212]
cmp dword [ebp + 8], esi
mov word [ebp - 0x214], si
mov dword [ebp - 8], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0x208
stosw word es:[edi], ax
je 0x10015447
mov eax, dword [ebp + 0xc]
cmp eax, 0x104
jl 0x10015447
add eax, eax
push ebx
push eax
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
mov dword [ebp + 0xc], 1
mov ebx, SysStringLen
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push str.SOFTWARETencentPlatForm_Type_List_d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x41c]
push esi
push eax
push ebx
call edi
test eax, eax
jne 0x100153a0
cmp dword [ebp - 4], esi
je 0x100153a0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push str.TypePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10015392
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10015368
lea eax, [ebp - 0x214]
push str.BinQQ.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015392
lea eax, [ebp - 0x214]
mov dword [ebp - 8], 1
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x100153a3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 5
jle 0x100152e5
cmp dword [ebp - 8], esi
jne 0x10015441
lea eax, [ebp - 4]
push eax
push 1
push esi
push str.SOFTWARETencentQQ2009
push ebx
call edi
cmp eax, esi
jne 0x10015433
cmp dword [ebp - 4], esi
je 0x100153f7
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x10015433
lea eax, [ebp - 0x214]
push str.BinQQ.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015433
lea eax, [ebp - 0x214]
mov dword [ebp - 8], 1
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x10015441
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
jmp 0x10015449
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10015497
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x10015507
push dword [0x1004d9d4]
call dword [sym.imp.MSVCRT.dll_wcslen]
sub esi, eax
pop ecx
cmp edi, esi
ja 0x10015507
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MFC42u.DLL_CString::operator
push dword [0x1004d9d4]
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CString::operator_1
push 1
pop eax
jmp 0x10015509
xor eax, eax
pop edi
pop esi
leave
ret