Function at 0x404000
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1074]
mov eax, 0x1074
call fcn.0041d6e0
push 0xffffffffffffffff
push 0x421e14
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x435700]
xor eax, ebp
mov dword [ebp + 0x1070], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x107c]
xor edi, edi
push 0x428ef0
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x14]
push ecx
push str.SoftwareClassesYPager.Messenger_shellopencommand
mov byte [ebp - 4], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
jne 0x404143
mov esi, dword [ebp - 0x14]
cmp esi, edi
je 0x404143
push 0x1000
lea edx, [ebp + 0x70]
push edi
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x70]
push ecx
lea edx, [ebp - 0x20]
push edx
push edi
push 0x428ef0
push esi
mov dword [ebp - 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x40412d
mov edi, dword [ebp - 0x20]
xor bl, bl
xor edx, edx
lea ebx, [ebx]
lea eax, [ebp + 0x70]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4040d6
sub eax, esi
sar eax, 1
cmp edx, eax
jae 0x404110
cmp word [ebp + edx*2 + 0x70], 0x22
lea eax, [ebp + edx*2 + 0x70]
jne 0x40428f
test bl, bl
jne 0x40410b
xor cl, cl
mov bl, 1
lea edi, [ebp + edx*2 + 0x72]
je 0x40428f
xor ecx, ecx
mov word [eax], cx
push edi
call sub.mgcommon.dll__IsFileExist_4
test eax, eax
je 0x40412b
push edi
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x18], 1
call dword [0x4230d4]
xor edi, edi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], edi
jne 0x4042b4
push str.CSIDL_PROGRAM_FILES
lea eax, [ebp]
push eax
call sub.mgcommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_GetShellFolderPath_wchar_t_const__
push str.Yahoo_MessengerYahooMessenger.exe
lea ecx, [ebp]
push ecx
lea edx, [ebp + 0x1c]
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push edx
call esi
add esp, 0xc
push str.Yahoo_MessengerYPager.exe
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x38]
mov bl, 3
push ecx
mov byte [ebp - 4], bl
call esi
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x20]
mov esi, 8
cmp dword [ebp + 0x34], esi
jae 0x404198
lea eax, [ebp + 0x20]
push eax
call sub.mgcommon.dll__IsFileExist_4
cmp eax, edi
je 0x4041b6
lea edx, [ebp + 0x1c]
push edx
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x18], 1
call dword [0x4230c4]
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x4041c1
lea eax, [ebp + 0x3c]
push eax
call sub.mgcommon.dll__IsFileExist_4
cmp eax, edi
je 0x4041df
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x18], 1
call dword [0x4230c4]
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x18], edi
jne 0x4042b4
lea ecx, [ebp - 0x14]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
jne 0x4042d9
mov esi, dword [ebp - 0x14]
cmp esi, edi
je 0x4042d9
push 0x1000
lea edx, [ebp + 0x70]
push edi
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x70]
push ecx
lea edx, [ebp - 0x20]
push edx
push edi
push str.Yahoo__Pager
push esi
mov dword [ebp - 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4042a2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp + 0x70], 0x7e
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 1
jne 0x404295
lea ecx, [ebp + 0x72]
push ecx
jmp 0x404299
inc edx
jmp 0x4040d0
lea edx, [ebp + 0x70]
push edx
lea ecx, [ebp + 0x54]
call dword [0x4230d4]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], edi
je 0x4042d9
cmp dword [ebp + 0x6c], 8
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x58]
mov dword [ecx + 0x2e4], 1
jae 0x4042cd
lea eax, [ebp + 0x58]
add ecx, 0x2c8
push eax
call fcn.004051d0
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1070]
xor ecx, ebp
call fcn.0041d649
add ebp, 0x1074
mov esp, ebp
pop ebp
ret 4