Function at 0x403740
Capabilities:
Create process on windows
Delete registry value
Get file attributes
Get proxy
Manipulate safe mode programs
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449d32
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x6a8], eax
push ebx
push esi
push edi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x6c0]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xa4]
push 0x1f
mov eax, str.Checking_internet_connection...
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
call fcn.00406a40
xor ebx, ebx
cmp dword [edi + 0x110], ebx
je 0x4038a5
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootMinimalMSIServer
push reloc.WS2_32.dll_bind
mov dword [esp + 0x6ec], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40381f
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 7
mov eax, str.Service
mov word [esi + 4], cx
call fcn.00406a40
xor edi, edi
lea ecx, [esp + 0x2c]
call fcn.004053a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x403817
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootNetworkMSIServer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40388b
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esp
mov word [esi + 4], ax
push 7
mov eax, str.Service
call fcn.00406a40
xor edi, edi
lea ecx, [esp + 0x2c]
call fcn.004053a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40387f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x40388f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c8], 0xffffffff
cmp eax, ebx
je 0x4038a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00404390
test al, al
jne 0x403949
xor ecx, ecx
push 0xc8
mov eax, str.SpyHunter_was_unable_to_launch_Windows_Installer._There_may_be_an_issue_with_your_system_configuration._We_suggest_that_you_follow_these_instructions_from_Microsoft_to_reinstall_the_Windows_Installer:
lea esi, [esp + 0x68]
mov dword [edi + 0x108], ebx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], cx
call fcn.00406a40
push 0x2a
push str._n_nhttp:__support.microsoft.com_kb_315346_n_n
mov eax, esi
mov dword [esp + 0x6d0], 1
call fcn.00406920
push 0x53
push str.After_Windows_Installer_has_been_reinstalled__please_try_to_launch_SpyHunter_again.
mov eax, esi
call fcn.00406920
mov eax, dword [esp + 0x68]
mov esi, 8
cmp dword [esp + 0x7c], esi
jae 0x40391b
lea eax, [esp + 0x68]
mov edx, dword [edi + 4]
push 0x30
push str.Warning
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x7c], esi
jb 0x403e47
mov eax, dword [esp + 0x68]
push eax
call fcn.0042bbb6
add esp, 4
jmp 0x403e47
call fcn.00402860
test al, al
jne 0x403b41
mov ecx, dword [edi + 4]
push 0x34
push str.Warning
push str.SpyHunter_has_detected_possible_issues_with_your_Internet_connection_proxy_settings._These_issues_may_have_been_caused_by_malware_installed_on_your_system._n_nDo_you_want_SpyHunter_to_repair_your_Internet_connection_by_disabling_proxy_settings_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x403b41
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [esp + 0x6d8], 2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push connect
call ebx
test eax, eax
jne 0x403b25
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.ProxyEnable
push ecx
call edi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push 0
push str.MigrateProxy
push eax
mov dword [esp + 0x34], 1
call edi
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.ProxyOverride
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.ProxyServer
push edx
call esi
mov eax, dword [esp + 0x10]
push 0x44da20
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.AutoConfigURL
push ecx
call esi
mov dword [esp + 0x18], 0
lea edx, [esp + 0x18]
push edx
push 0x2001f
push 0
mov byte [esp + 0x6d4], 3
mov eax, dword [esp + 0x1c]
push str.Connections
push eax
call ebx
test eax, eax
jne 0x403aca
lea ecx, [esp + 0x64]
push ecx
call fcn.00405470
push 0
push str.DefaultConnectionSettings
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x70]
mov byte [esp + 0x6d4], 4
call fcn.004052c0
test eax, eax
jne 0x403ac1
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x70]
cmp eax, 8
ja 0x403a88
call fcn.0042c47c
mov ecx, dword [esp + 0x70]
mov dword [ecx + 8], 9
mov esi, dword [esp + 0x74]
sub esi, dword [esp + 0x70]
jne 0x403aa2
call fcn.0042c47c
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
push esi
push edx
push 3
push 0
push str.DefaultConnectionSettings
push eax
call edi
lea esi, [esp + 0x18]
call fcn.00405400
lea esi, [esp + 0x64]
call fcn.004054d0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403ad9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0x27
push 0
mov dword [esp + 0x20], 0
call esi
push 0
push 0
push 0x25
push 0
call esi
push 0
push 0
push 0x1a
lea ecx, [esp + 0x20]
push ecx
push 0x10
mov dword [esp + 0x28], 8
call dword [sym.imp.USER32.dll_BroadcastSystemMessageW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403b25
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x6c8], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403b3f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov esi, dword [esp + 0x24]
push 0x21
mov eax, str.Downloading_SpyHunter_installer..
call fcn.00406a40
push 0x206
lea eax, [esp + 0xa2]
xor edx, edx
push ebx
push eax
mov word [esp + 0xa8], dx
call fcn.0042d120
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0xa0]
push ecx
push str._TEMP_SHSetup.exe
call edi
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x403c4b
push ebx
push 0x80
push 2
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x40000000
lea eax, [esp + 0xb4]
push eax
call ebx
xor esi, esi
cmp eax, 0xffffffff
jne 0x403c42
cmp esi, 0xa
je 0x403c3d
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2ae]
push edx
mov word [esp + 0x2b0], cx
call fcn.0042d120
add esp, 0xc
push esi
lea eax, [esp + 0x2a8]
push str.__TEMP__SHSetup__d_.exe
push eax
call fcn.0042bffa
add esp, 0xc
push 0x104
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x2ac]
push edx
inc esi
call edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0xb4]
push eax
call ebx
cmp eax, 0xffffffff
je 0x403bc7
jmp 0x403c42
cmp eax, 0xffffffff
je 0x403c49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push 0x206
lea edx, [esp + 0x2aa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2b0], cx
call fcn.0042d120
add esp, 0xc
push 0x104
lea eax, [esp + 0x2a8]
push eax
push str._windir_System32_vbscript.dll
call edi
xor ecx, ecx
push 3
mov eax, 0x44db78
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], cx
call fcn.00406a40
mov edx, esi
push edx
lea ebx, [esp + 0x2a8]
lea esi, [esp + 0x84]
mov dword [esp + 0x6cc], 5
call fcn.00407f30
mov esi, 8
add esp, 4
mov dword [esp + 0x6c8], 0xffffffff
cmp dword [esp + 0x7c], esi
jb 0x403cec
mov eax, dword [esp + 0x68]
push eax
call fcn.0042bbb6
add esp, 4
push 0x206
xor ebx, ebx
lea edx, [esp + 0x4b2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4b8], cx
call fcn.0042d120
add esp, 0xc
push 0x104
lea eax, [esp + 0x4b0]
push eax
push str._windir_System32_regsvr32.exe
call edi
lea ecx, [esp + 0x4ac]
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.open
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x98], esi
jb 0x403d5f
mov edx, dword [esp + 0x84]
mov dword [esp + 0x3c], edx
jmp 0x403d6a
lea eax, [esp + 0x84]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [esp + 0x98], esi
jb 0x403db6
mov edx, dword [esp + 0x84]
push edx
call fcn.0042bbb6
add esp, 4
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.00402a40
mov dword [esi + 0x108], eax
cmp eax, ebx
je 0x403e47
cmp dword [esi + 0x154], ebx
jne 0x403e47
mov esi, dword [esp + 0x24]
push 0x1f
mov eax, str.Launching_SpyHunter_installer..
call fcn.00406a40
call fcn.00401e80
call fcn.00444ba0
test al, al
je 0x403e3b
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.Wow64DisableWow64FsRedirection
push esi
call edi
cmp eax, ebx
je 0x403e3b
lea ecx, [esp + 0x14]
push ecx
call eax
test eax, eax
je 0x403e3b
call fcn.00401e80
push str.Wow64RevertWow64FsRedirection
push esi
call edi
cmp eax, ebx
je 0x403e3b
mov edx, dword [esp + 0x14]
push edx
call eax
lea ecx, [esp + 0x9c]
call fcn.00402130
mov ecx, dword [esp + 0x6c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a8]
xor ecx, esp
call fcn.0042bbc1
mov esp, ebp
pop ebp
ret