Function at 0x408d80
Capabilities:
Check os version
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4500e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push esi
push edi
push 0x114
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x13c], 6
jb 0x408f98
lea eax, [ebp - 0x18]
push eax
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409181
push 0x208
push eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x20], 1
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ProgId
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c50
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x10]
call fcn.00409af0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x408e8e
push str.chrome
push eax
call fcn.0043b2d4
add esp, 8
test eax, eax
je 0x408e8e
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x408e8e
mov esi, 2
jmp 0x408f5a
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x408ebd
push str.360se
push eax
call fcn.0043b2d4
add esp, 8
test eax, eax
je 0x408ebd
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x408ebd
mov esi, 4
jmp 0x408f5a
push ecx
push str.qqbrowser
lea ecx, [ebp - 0x10]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x408eda
mov esi, 8
jmp 0x408f5a
push ecx
push str.liebao
lea ecx, [ebp - 0x10]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x408ef4
mov esi, 0x10
jmp 0x408f5a
push ecx
push str.max3
lea ecx, [ebp - 0x10]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x408f0e
mov esi, 0x20
jmp 0x408f5a
push ecx
push str.firefox
lea ecx, [ebp - 0x10]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x408f28
mov esi, 0x40
jmp 0x408f5a
push ecx
push str.sogouexplorer
lea ecx, [ebp - 0x10]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x408f42
mov esi, 0x80
jmp 0x408f5a
push ecx
push 0x458144
lea ecx, [ebp - 0x10]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x408f90
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408f7e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
jmp 0x40917c
lea eax, [ebp - 0x24]
push eax
push str.http_shellopencommand
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409181
push 0x208
push eax
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x457cf0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c50
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
call fcn.00409af0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x409056
push str.iexplore.exe
push eax
call fcn.0043b2d4
add esp, 8
test eax, eax
je 0x409056
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x409056
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 1
jmp 0x408f64
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x40908f
push str.chrome.exe
push eax
call fcn.0043b2d4
add esp, 8
test eax, eax
je 0x40908f
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x40908f
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 2
jmp 0x408f64
push ecx
push str.360se.exe
lea ecx, [ebp - 0x14]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x4090b6
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 4
jmp 0x408f64
push ecx
push str.qqbrowser.exe
lea ecx, [ebp - 0x14]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x4090dd
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 8
jmp 0x408f64
push ecx
push str.liebao.exe
lea ecx, [ebp - 0x14]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x409104
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 0x10
jmp 0x408f64
push ecx
push str.maxthon.exe
lea ecx, [ebp - 0x14]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x40912b
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 0x20
jmp 0x408f64
push ecx
push str.firefox.exe
lea ecx, [ebp - 0x14]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x409152
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 0x40
jmp 0x408f64
push ecx
push str.sogouexplorer.exe
lea ecx, [ebp - 0x14]
call fcn.00409ab0
cmp eax, 0xffffffff
je 0x409179
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, 0x80
jmp 0x408f64
lea ecx, [ebp - 0x14]
call fcn.00401fb0
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret