Function at 0x409084
Capabilities:
Connect to wmi namespace via wbemlocator
Delete registry value
Get proxy
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x425284
call fcn.004121ac
sub esp, 0xa00
push ebx
xor ebx, ebx
cmp byte [0x432064], bl
jne 0x4090b5
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
add ebp, 0x70
leave
ret
push esi
push edi
mov dword [ebp + 0x4c], ebx
lea eax, [ebp + 0x4c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b344
pop ecx
test eax, eax
jge 0x4090dd
push 3
pop esi
push dword [ebp + 0x4c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
mov eax, esi
pop esi
jmp 0x4090a5
push str.ConfigOSSProxySettings
lea ecx, [ebp + 0x4c]
call fcn.00402618
xor eax, eax
push 0x7fe
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push ebx
push eax
call fcn.00412380
add esp, 0xc
mov dword [ebp + 0x50], 0x400
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
push 0x20019
push dword [ebp + 0x4c]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x44]
inc edi
mov byte [ebp - 4], 1
call fcn.0040153d
test eax, eax
jne 0x409155
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0x427918
lea ecx, [ebp + 0x44]
call fcn.004015b6
lea ecx, [ebp + 0x44]
call fcn.00401522
lea eax, [ebp - 0x178]
mov dword [ebp - 0x17c], eax
push 3
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00402ad4
push dword [ebp - 0x17c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040590a
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x17c], eax
je 0x4091a5
push dword [ebp - 0x17c]
call fcn.004110f2
pop ecx
push ebx
push ebx
push 0x427914
lea ecx, [ebp - 0xa4]
call fcn.0040623d
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.00405875
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 6
mov byte [ebp + 0x6e], bl
call fcn.004079ad
mov byte [ebp - 4], 7
jmp 0x409213
push 0x427910
lea ecx, [ebp - 0x1b4]
call fcn.004038d5
test eax, eax
jne 0x409208
mov byte [ebp + 0x6e], 1
lea ecx, [ebp - 0x20c]
call fcn.00406f1b
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00407a0e
push eax
lea ecx, [ebp - 0x20c]
call fcn.004022fc
neg al
sbb al, al
inc al
lea ecx, [ebp - 0x16c]
mov byte [ebp + 0x6f], al
call fcn.00404134
cmp byte [ebp + 0x6f], bl
jne 0x4091f0
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 6
call fcn.00404134
lea ecx, [ebp + 0x28]
call fcn.00406c37
mov dword [ebp + 0x64], ebx
lea eax, [ebp + 0x64]
push eax
push 0x42c084
push edi
push ebx
push 0x42c154
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x4092cf
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x409291
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x28]
call fcn.00407121
push dword [ebp + 0x28]
call fcn.00410f56
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.0040414b
lea ecx, [ebp - 0xa4]
call fcn.0040414b
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x44]
call fcn.00401522
jmp 0x4090ce
mov esi, dword [ebp + 0x64]
cmp esi, ebx
jne 0x409319
lea ecx, [ebp + 0x28]
call fcn.00407121
push dword [ebp + 0x28]
call fcn.00410f56
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.0040414b
lea ecx, [ebp - 0xa4]
call fcn.0040414b
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x44]
call fcn.00401522
mov esi, 0x80004005
jmp 0x4090ce
mov dword [ebp + 0x68], ebx
push str.ROOTCIMV2
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0xa
call fcn.00402489
mov eax, dword [eax]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x40933b
mov eax, dword [eax]
jmp 0x40933d
xor eax, eax
mov ecx, dword [esi]
lea edx, [ebp + 0x68]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
mov ecx, dword [ebp + 0x50]
mov esi, eax
cmp ecx, ebx
je 0x40935c
call fcn.00403af7
cmp esi, ebx
jge 0x40937a
mov eax, dword [ebp + 0x68]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x409280
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409280
cmp dword [ebp + 0x68], ebx
jne 0x409399
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x4092d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4092d6
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp + 0x68]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
cmp esi, ebx
jl 0x409360
mov dword [ebp + 0x40], ebx
mov esi, dword [ebp + 0x68]
push str.SELECT_Name__SID_FROM_Win32_UserAccount
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xc
call fcn.00402435
mov edi, eax
push 0x4278c8
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0xd
call fcn.00402435
mov ecx, dword [edi]
mov byte [ebp - 4], 0xe
cmp ecx, ebx
je 0x4093ea
mov ecx, dword [ecx]
jmp 0x4093ec
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4093f6
mov eax, dword [eax]
jmp 0x4093f8
xor eax, eax
mov edx, dword [esi]
lea edi, [ebp + 0x40]
push edi
push ebx
push 0x30
push ecx
push eax
push esi
call dword [edx + 0x50]
mov ecx, dword [ebp + 0x58]
mov esi, eax
mov dword [ebp], esi
cmp ecx, ebx
je 0x40941b
call fcn.00403af7
mov dword [ebp + 0x58], ebx
mov ecx, dword [ebp + 0x5c]
cmp ecx, ebx
je 0x409427
call fcn.00403af7
cmp esi, ebx
jge 0x40948d
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x40943c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x68]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x40944d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x40945e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x28]
call fcn.00407121
push dword [ebp + 0x28]
call fcn.00410f56
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.0040414b
lea ecx, [ebp - 0xa4]
call fcn.0040414b
push ebx
push 1
jmp 0x4092ba
mov dword [ebp + 0x60], ebx
mov byte [ebp - 4], 0xf
mov dword [ebp + 0x50], ebx
cmp dword [ebp + 0x40], ebx
je 0x409539
cmp dword [ebp + 0x60], ebx
je 0x4094af
push ebx
lea eax, [ebp + 0x60]
push eax
call fcn.0040140d
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax]
lea edx, [ebp + 0x50]
push edx
lea edx, [ebp + 0x60]
push edx
push 1
push 0x2710
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x409539
cmp dword [ebp + 0x50], 1
jne 0x409531
cmp dword [ebp + 0x60], ebx
je 0x409531
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], 0xf
call fcn.00403256
lea ecx, [ebp - 0x44]
call fcn.00403d3d
mov ecx, dword [ebp + 0x60]
lea eax, [ebp - 0x60]
push eax
push str.Name
mov byte [ebp - 4], 0x10
call fcn.00405da2
mov ecx, dword [ebp + 0x60]
lea eax, [ebp - 0x44]
push eax
push 0x4278b4
call fcn.00405da2
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x28]
call fcn.004084ba
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
call fcn.0040414b
cmp esi, ebx
je 0x4094a0
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x40954a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x40]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x40955b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x34]
lea ecx, [ebp + 0x20]
call fcn.0040cbe5
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
call fcn.0040cbe5
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp + 0x10]
call fcn.00401cae
test al, al
jne 0x409735
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, str.ProxyServer
lea ecx, [ebp + 0x10]
call fcn.00401c82
cmp dword [eax + 0x34], 0x10
jb 0x4095b7
mov eax, dword [eax + 0x20]
jmp 0x4095ba
add eax, 0x20
push eax
lea ecx, [ebp + 0x58]
call fcn.00402635
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x11
call fcn.00402618
xor eax, eax
push 0x9e
mov word [ebp - 0x198], ax
lea eax, [ebp - 0x196]
push ebx
push eax
mov dword [ebp + 0x5c], ebx
call fcn.00412380
add esp, 0xc
lea eax, [ebp + 0x54]
push eax
push 0x2001f
push ebx
push dword [ebp + 0x58]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4096bf
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.ProxyEnable
push dword [ebp + 0x54]
mov dword [ebp + 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push dword [ebp + 0x54]
mov dword [ebp + 8], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404ed4
cmp dword [ebp + 0x5c], ebx
je 0x4096ab
push 0xe
push ebx
push str.localhost:8254
lea ecx, [ebp - 0x44]
call fcn.00402943
cmp eax, 0xffffffff
je 0x4096ab
push 4
lea eax, [ebp + 0x5c]
push eax
push 4
push ebx
push str.ProxyEnable
push dword [ebp + 0x54]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push dword [ebp + 0x54]
call edi
push 0x4277cc
push dword [ebp + 0x54]
call edi
push dword [ebp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00403537
push 0x2001f
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
call fcn.0040153d
test eax, eax
jne 0x4096f5
cmp byte [ebp + 0x6e], bl
jne 0x4096ed
push 0x427918
push dword [ebp + 0x18]
call edi
lea ecx, [ebp + 0x18]
call fcn.00401522
lea ecx, [ebp + 0x18]
call fcn.00401522
push dword [ebp + 0x58]
mov byte [ebp - 4], 0xa
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 0x10]
call fcn.00401a9a
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
call fcn.0040cbe5
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp + 0x10]
call fcn.00401cae
test al, al
je 0x4095a4
mov eax, dword [ebp + 0x68]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x409746
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x409757
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x28]
call fcn.00407121
push dword [ebp + 0x28]
call fcn.00410f56
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.0040414b
lea ecx, [ebp - 0xa4]
call fcn.0040414b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x44]
call fcn.00401522
mov esi, dword [ebp]
jmp 0x4090ce