Function at 0x4067c0
Capabilities:
Delete registry value
Get proxy
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490825
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x4e3ec8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x520]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406f6e
cmp dword [ebp - 0x520], eax
je 0x406f89
push eax
push 0x4aed3c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x54c]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
lea ecx, [ebp - 0x54c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov ebx, dword [sym.imp.MSVCR100.dll_atoi]
push eax
call ebx
lea edx, [ebp - 0x530]
push edx
mov dword [ebp - 0x558], eax
call fcn.004810a0
push str.AnakageFilesVBScriptsProxyRelated.bat
push eax
lea eax, [ebp - 0x53c]
push eax
mov byte [ebp - 4], 2
call fcn.004019e0
add esp, 0x14
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100.dll_Ordinal_901]
push str._AutoDetect
lea ecx, [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x524]
push edx
call fcn.004019e0
push 0x4ae8b4
push eax
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 5
call fcn.004019e0
push str.REG_DWORD
push eax
lea ecx, [ebp - 0x548]
push ecx
mov byte [ebp - 4], 6
call fcn.004019e0
add esp, 0x24
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push ecx
lea edx, [ebp - 0x548]
mov ecx, esp
mov dword [ebp - 0x51c], esp
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
lea eax, [ebp - 0x550]
push eax
call fcn.0047d270
add esp, 0xc
push 4
lea ecx, [ebp - 0x558]
push ecx
push 4
mov byte [ebp - 4], 0xa
push 0
mov edx, dword [ebp - 0x520]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.AutoDetect
push edx
call edi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x538]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc100.dll_Ordinal_5207]
cmp eax, 1
jne 0x4069e3
push 0
lea ecx, [ebp - 0x538]
call dword [sym.imp.mfc100.dll_Ordinal_1437]
cmp al, 0x30
jne 0x4069e3
mov edx, dword [ebp - 0x520]
push str.AutoConfigURL
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x52c]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push 0
push str.blank
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc100.dll_Ordinal_4144]
test eax, eax
js 0x406a6d
push 0x4ae26b
lea ecx, [ebp - 0x52c]
call dword [sym.imp.mfc100.dll_Ordinal_1316]
lea ecx, [ebp - 0x52c]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
test eax, eax
js 0x406b53
push str._AutoConfigURL
lea edx, [ebp - 0x53c]
push edx
lea eax, [ebp - 0x530]
push eax
call fcn.004019e0
push 0x4ae8b4
push eax
lea ecx, [ebp - 0x524]
push ecx
mov byte [ebp - 4], 0xf
call fcn.004019e0
push str.REG_SZ
push eax
lea edx, [ebp - 0x518]
push edx
mov byte [ebp - 4], 0x10
call fcn.004019e0
add esp, 0x24
lea ecx, [ebp - 0x524]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0x13
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push ecx
lea eax, [ebp - 0x518]
mov ecx, esp
mov dword [ebp - 0x55c], esp
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
lea ecx, [ebp - 0x51c]
push ecx
call fcn.0047d270
add esp, 0xc
lea ecx, [ebp - 0x52c]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x52c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edx, dword [ebp - 0x520]
push eax
push 1
push 0
push str.AutoConfigURL
push edx
call edi
lea ecx, [ebp - 0x51c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x14
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x544]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
lea ecx, [ebp - 0x544]
mov byte [ebp - 4], 0x15
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call ebx
add esp, 4
push 4
lea edx, [ebp - 0x554]
push edx
push 4
push 0
mov dword [ebp - 0x554], eax
mov eax, dword [ebp - 0x520]
push str.ProxyEnable
push eax
call edi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x51c]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x16
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 0x15
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea edx, [ebp - 0x528]
push edx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push 0
mov bl, 0x17
push str.blank
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_4144]
test eax, eax
js 0x406c73
push 0x4ae26b
lea ecx, [ebp - 0x528]
call dword [sym.imp.mfc100.dll_Ordinal_1316]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x18
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x534]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push 0
mov bl, 0x19
push str.blank
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_4144]
test eax, eax
js 0x406cfd
push 0x4ae26b
lea ecx, [ebp - 0x534]
call dword [sym.imp.mfc100.dll_Ordinal_1316]
push 0x4b0094
lea edx, [ebp - 0x528]
push edx
lea eax, [ebp - 0x524]
push eax
call fcn.004019e0
lea ecx, [ebp - 0x534]
push ecx
push eax
lea edx, [ebp - 0x51c]
push edx
mov byte [ebp - 4], 0x1a
call fcn.004018e0
add esp, 0x18
push eax
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x51c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x528]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x528]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
mov eax, dword [ebp - 0x520]
push 1
push 0
push str.ProxyServer
push eax
call edi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
lea ecx, [ebp - 0x540]
mov byte [ebp - 4], 0x1c
call dword [sym.imp.mfc100.dll_Ordinal_5207]
cmp eax, 1
jne 0x406ef6
push 0
lea ecx, [ebp - 0x540]
call dword [sym.imp.mfc100.dll_Ordinal_1437]
cmp al, 0x31
jne 0x406ef6
push str.ProxyOverride
lea ecx, [ebp - 0x530]
mov dword [ebp - 0x51c], 0x400
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0x1e
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push 3
lea edx, [ebp - 0x510]
push eax
lea ecx, [ebp - 0x514]
mov dword [ebp - 0x514], edx
call fcn.00406470
mov edx, dword [ebp - 0x514]
lea eax, [ebp - 0x51c]
push eax
mov eax, dword [ebp - 0x520]
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x514]
lea ecx, [ebp - 0x510]
cmp eax, ecx
je 0x406e67
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test esi, esi
jne 0x406e7e
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_1315]
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_13125]
push 0
push str._local_
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
test eax, eax
jns 0x406eb2
push str._local_
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
mov eax, dword [ebp - 0x520]
push 1
push 0
push str.ProxyOverride
push eax
call edi
lea ecx, [ebp - 0x518]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x530]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x540]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x534]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x528]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x544]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x52c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x538]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x550]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x548]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x53c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x54c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebp - 0x520]
test eax, eax
je 0x406f89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x520], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e770
mov esp, ebp
pop ebp
ret 4