Function at 0x401000
Capabilities:
Create process on windows
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x401690
call fcn.004014b0
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
je 0x401371
push str._regist
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x401184
mov dword [ebp - 0x10], ebx
mov edi, str.TSBuddy_shellopencommand
push 0x20006
push edi
push 0x80000000
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401399
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4010a0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40116f
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x401092
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40116f
mov eax, dword [ebp - 0x10]
push 0x40
mov dword [ebp - 0x18], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x138]
mov dword [ebp - 0x10], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x138]
push 0x40307c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x138]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push ebx
push 0x4030b8
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x10], ebx
je 0x40111a
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
push 0x20006
push str.TSBuddy
push 0x80000000
lea ecx, [ebp - 0x10]
call fcn.00401399
test eax, eax
jne 0x40116f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
mov al, byte [0x4030b8]
mov byte [ebp + 0x13], al
lea eax, [ebp + 0x13]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp + 0x13]
push eax
push 1
push ebx
push str.URL_Protocol
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x10], ebx
je 0x40116f
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x401371
push dword [ebp - 0x10]
jmp 0x40136f
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x14], eax
push eax
call esi
test eax, eax
je 0x401208
push str.COMMERCE_QBOX
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
jne 0x4011c4
push 2
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], eax
push eax
jmp 0x40119f
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x34], ebx
push esi
call sub.MSVCRT.dll_strlen
mov dword [ebp - 0x30], eax
pop ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x14]
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 0x4011fc
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x401371
mov dword [ebp - 0x10], ebx
push 1
lea ecx, [ebp - 0x10]
pop esi
push 0x20019
push str.SOFTWARETencentQQQBox
push 0x80000002
mov dword [ebp - 4], esi
call fcn.00401399
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
mov edx, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Install
push edx
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401290
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x400
call esi
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4012a3
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x401305
lea eax, [ebp - 0x1c]
push eax
call fcn.004013d7
mov dword [esp], str.HDRoom.exe
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401466
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x401321
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x403018
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040144e
push 5
push ebx
push dword [ebp - 0x18]
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x401371
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10