Function at 0x4999b0
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a8bc8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push closesocket
call ebx
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x499a33
mov ecx, dword [esp + 0x14]
push 8
push 0x5e9c74
push 1
push 0
push str.Check_Associations
push ecx
call esi
mov edx, dword [esp + 0x14]
push 8
push 0x5e9c74
push 1
push 0
push str.ShowedCheckBrowser
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x499a7c
mov edx, dword [esp + 0x14]
push 8
push 0x5e9c74
push 1
push eax
push str.Check_Associations
push edx
call esi
mov eax, dword [esp + 0x14]
push 8
push 0x5e9c74
push 1
push 0
push str.ShowedCheckBrowser
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x499bf2
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x499aaf
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
call fcn.004023b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00402330
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
push 0x5c
push ebp
call fcn.005773c5
add esp, 8
test eax, eax
jne 0x499b21
or eax, 0xffffffff
jmp 0x499b25
sub eax, ebp
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.00414630
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.00402330
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499b6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x34]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499b74
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push ebp
push 1
push 0
push 0x5d2b58
push edx
call esi
mov ebp, dword [esp + 0x18]
mov eax, ebp
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x499ba2
sub eax, ecx
mov ecx, dword [esp + 0x14]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push str.Path
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499bf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push str..htm
push closesocket
call ebx
test eax, eax
jne 0x499c24
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push str..html
push closesocket
call ebx
test eax, eax
jne 0x499c56
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push str..shtm
push closesocket
call ebx
test eax, eax
jne 0x499c9f
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call esi
mov eax, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
push str..shtml
push closesocket
call ebx
test eax, eax
jne 0x499ce8
push 0x12
push str.htmlfile
push 1
push eax
mov eax, dword [esp + 0x24]
push 0x5d2b58
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x14]
push eax
push str.htmlfile_shell
push closesocket
call ebx
test eax, eax
jne 0x499d1a
mov ecx, dword [esp + 0x14]
push 0xa
push str.open
push 1
push eax
push 0x5d2b58
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push ebp
mov edx, str.htmlfile_shell
call fcn.00499800
add esp, 4
lea eax, [esp + 0x14]
push eax
push str..url
push closesocket
call ebx
test eax, eax
jne 0x499d62
mov ecx, dword [esp + 0x14]
push 0x22
push str.InternetShortcut
push 1
push eax
push 0x5d2b58
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
mov ecx, dword [esp + 0x30]
push ebp
mov edx, str.InternetShortcut_shell
call fcn.00499800
add esp, 4
lea eax, [esp + 0x14]
push eax
push str..mht
push closesocket
call ebx
test eax, eax
jne 0x499da6
mov ecx, dword [esp + 0x14]
push 0x14
push str.mhtmlfile
push 1
push eax
push 0x5d2b58
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x14]
push eax
push str..mhtml
push closesocket
call ebx
test eax, eax
jne 0x499dd8
mov ecx, dword [esp + 0x14]
push 0x14
push str.mhtmlfile
push 1
push eax
push 0x5d2b58
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
mov ecx, dword [esp + 0x30]
push ebp
mov edx, str.mhtmlfile_shell
call fcn.00499800
mov ecx, dword [esp + 0x34]
push ebp
mov edx, str.http_shell
call fcn.00499800
mov ecx, dword [esp + 0x38]
push ebp
mov edx, str.https_shell
call fcn.00499800
mov ecx, dword [esp + 0x3c]
push ebp
mov edx, str.file_shell
call fcn.00499800
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x499e49
mov ecx, dword [esp + 0x14]
push 0x1a
push str.IEXPLORE.EXE
push 1
push eax
push 0x5d2b58
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x14]
push eax
push str.CLSID0002DF01_0000_0000_C000_000000000046LocalServer32
push closesocket
call ebx
test eax, eax
jne 0x499e8f
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499e63
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push ebp
push 1
push 0
push 0x5d2b58
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
call fcn.0044a3b0
cmp eax, 6
jl 0x499f14
push str.IE.AssocFile.HTM
mov ecx, str..htm
call fcn.00497d20
push str.IE.AssocFile.HTM
mov ecx, str..html
call fcn.00497d20
push str.IE.AssocFile.MHT
mov ecx, str..mht
call fcn.00497d20
push str.IE.AssocFile.MHT
mov ecx, str..mhtml
call fcn.00497d20
push str.IE.AssocFile.URL
mov ecx, str..url
call fcn.00497d20
push str.IE.FTP
push 0x5f3c5c
call fcn.00497ff0
push str.IE.HTTP
push 0x5ea930
call fcn.00497ff0
push str.IE.HTTPS
push str.https
call fcn.00497ff0
add esp, 0x2c
push 0
push 0
push 1
push 0x5e3b68
call fcn.0056643f
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret