Function at 0x4047dd
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x40e2b0
call fcn.0040d5b0
sub esp, 0x124
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax]
push edi
cmp dword [eax - 8], ebx
je 0x4049a9
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404872
push str.COMMERCE_QBOX
push esi
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
jne 0x404833
push 2
push esi
jmp 0x40480f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
push eax
push ebx
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x404866
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4049a9
mov dword [ebp - 0x14], ebx
push 0x20019
push str.SOFTWARETencentQQQBox
push SysStringLen
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004049cf
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov edx, dword [ebp - 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
mov esi, 0x104
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.Install
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4048e9
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x40495a
push esi
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push str.HDRoom.exe
jmp 0x40496e
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040d242
push 0x4141bc
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 8]
push 5
push ebx
mov eax, dword [eax]
push eax
push dword [ebp - 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], ebx
je 0x4049a9
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4