Function at 0x409799
Capabilities:
Connect to wmi namespace via wbemlocator
Delete registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x4253de
call fcn.004121ac
sub esp, 0xc1c
push ebx
xor ebx, ebx
mov dword [ebp + 0x6c], ebx
cmp byte [0x432064], bl
jne 0x4097cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
add ebp, 0x74
leave
ret
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.00406c37
mov dword [ebp - 4], ebx
mov dword [ebp + 0x44], ebx
lea eax, [ebp + 0x44]
xor edi, edi
push eax
inc edi
mov byte [ebp - 4], 1
call fcn.0040b344
pop ecx
test eax, eax
jge 0x409815
push 3
pop ebx
push dword [ebp + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x40]
call fcn.00406c6c
push dword [ebp - 0x40]
call fcn.00410f56
pop ecx
pop edi
mov eax, ebx
pop esi
jmp 0x4097bd
push str.ConfigOSSProxySettings
lea ecx, [ebp + 0x44]
call fcn.00402618
xor eax, eax
push 0x7fe
mov word [ebp - 0xc28], ax
lea eax, [ebp - 0xc26]
push ebx
push eax
call fcn.00412380
add esp, 0xc
mov dword [ebp + 0x58], 0x400
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
push 0x20019
push dword [ebp + 0x44]
lea ecx, [ebp + 0x64]
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
call fcn.0040153d
test eax, eax
jne 0x40988a
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0xc28]
push eax
push 0x4279f4
lea ecx, [ebp + 0x64]
call fcn.004015b6
lea ecx, [ebp + 0x64]
call fcn.00401522
lea eax, [ebp - 0x360]
mov dword [ebp - 0x364], eax
push 3
lea eax, [ebp - 0xc28]
push eax
lea ecx, [ebp - 0x364]
call fcn.00402ad4
push dword [ebp - 0x364]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040590a
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x364], eax
je 0x4098da
push dword [ebp - 0x364]
call fcn.004110f2
pop ecx
cmp dword [ebp - 0x14], 3
push ebx
jae 0x4098f7
push edi
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x64]
call fcn.00401522
jmp 0x4097f5
push ebx
push 0x427914
lea ecx, [ebp - 0x118]
call fcn.0040623d
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 6
call fcn.00405875
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 7
mov byte [ebp + 0x72], bl
call fcn.004079ad
mov byte [ebp - 4], 8
jmp 0x4099ff
push 0x427910
lea ecx, [ebp - 0x218]
call fcn.004038d5
test eax, eax
jne 0x409961
mov byte [ebp + 0x72], 1
jmp 0x4099f4
cmp dword [ebp - 0x204], 2
jbe 0x40999a
push 2
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004055e5
or dword [ebp + 0x6c], edi
push 0x42790c
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.004038d5
mov byte [ebp + 0x73], 1
test eax, eax
je 0x40999d
mov byte [ebp + 0x73], bl
test byte [ebp + 0x6c], 1
mov dword [ebp - 4], 8
je 0x4099bb
and dword [ebp + 0x6c], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x9c]
call fcn.0040394b
cmp byte [ebp + 0x73], bl
je 0x4099f4
push 0xffffffffffffffff
push 2
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004055e5
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00408460
push ebx
push edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.0040394b
lea ecx, [ebp - 0x270]
call fcn.00406f1b
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x188]
call fcn.00407a0e
push eax
lea ecx, [ebp - 0x270]
call fcn.004022fc
neg al
sbb al, al
inc al
lea ecx, [ebp - 0x1fc]
mov byte [ebp + 0x73], al
call fcn.00404134
cmp byte [ebp + 0x73], bl
jne 0x409944
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 7
call fcn.00404134
lea ecx, [ebp + 0x28]
call fcn.00406c37
mov dword [ebp + 0x60], ebx
lea eax, [ebp + 0x60]
push eax
push 0x42c084
push edi
push ebx
push 0x42c154
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x409ac1
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x409a81
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 - 0x178]
call fcn.0040414b
lea ecx, [ebp - 0x118]
call fcn.0040414b
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x64]
call fcn.00401522
mov ebx, esi
jmp 0x4097f5
mov esi, dword [ebp + 0x60]
cmp esi, ebx
jne 0x409b0b
lea ecx, [ebp + 0x28]
call fcn.00407121
push dword [ebp + 0x28]
call fcn.00410f56
pop ecx
lea ecx, [ebp - 0x178]
call fcn.0040414b
lea ecx, [ebp - 0x118]
call fcn.0040414b
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x64]
call fcn.00401522
mov ebx, 0x80004005
jmp 0x4097f5
mov dword [ebp + 0x5c], ebx
push str.ROOTCIMV2
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0xd
call fcn.00402489
mov eax, dword [eax]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x409b2d
mov eax, dword [eax]
jmp 0x409b2f
xor eax, eax
mov ecx, dword [esi]
lea edx, [ebp + 0x5c]
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 + 0x4c]
mov esi, eax
cmp ecx, ebx
je 0x409b4e
call fcn.00403af7
cmp esi, ebx
jge 0x409b6c
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x409a70
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409a70
cmp dword [ebp + 0x5c], ebx
jne 0x409b8b
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x409ac8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409ac8
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp + 0x5c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
cmp esi, ebx
jl 0x409b52
mov dword [ebp + 0x48], ebx
mov esi, dword [ebp + 0x5c]
push str.SELECT_Name__SID_FROM_Win32_UserAccount
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0xf
call fcn.00402435
mov edi, eax
push 0x4278c8
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x10
call fcn.00402435
mov ecx, dword [edi]
mov byte [ebp - 4], 0x11
cmp ecx, ebx
je 0x409bdc
mov ecx, dword [ecx]
jmp 0x409bde
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x409be8
mov eax, dword [eax]
jmp 0x409bea
xor eax, eax
mov edx, dword [esi]
lea edi, [ebp + 0x48]
push edi
push ebx
push 0x30
push ecx
push eax
push esi
call dword [edx + 0x50]
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x58], eax
cmp ecx, ebx
je 0x409c0b
call fcn.00403af7
mov dword [ebp + 0x54], ebx
mov ecx, dword [ebp + 0x4c]
cmp ecx, ebx
je 0x409c17
call fcn.00403af7
cmp dword [ebp + 0x58], ebx
jge 0x409c91
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x409c2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x409c3e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x409c4f
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 - 0x178]
call fcn.0040414b
lea ecx, [ebp - 0x118]
call fcn.0040414b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040394b
lea ecx, [ebp + 0x64]
call fcn.00401522
mov ebx, dword [ebp + 0x58]
jmp 0x4097f5
mov dword [ebp + 0x50], ebx
mov byte [ebp - 4], 0x12
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x48], ebx
je 0x409d56
cmp dword [ebp + 0x50], ebx
je 0x409cb3
push ebx
lea eax, [ebp + 0x50]
push eax
call fcn.0040140d
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp + 0x50]
push edx
push 1
push 0x2710
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x409d56
cmp dword [ebp + 0xc], 1
jne 0x409d4e
cmp dword [ebp + 0x50], ebx
je 0x409d4e
push ebx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xbc], 0xf
call fcn.00403256
lea ecx, [ebp - 0xb8]
call fcn.00403d3d
mov ecx, dword [ebp + 0x50]
lea eax, [ebp - 0xd4]
push eax
push str.Name
mov byte [ebp - 4], 0x13
call fcn.00405da2
mov ecx, dword [ebp + 0x50]
lea eax, [ebp - 0xb8]
push eax
push 0x4278b4
call fcn.00405da2
add esp, 0x10
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp + 0x28]
call fcn.004084ba
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x12
call fcn.0040414b
cmp esi, ebx
je 0x409ca4
mov eax, dword [ebp + 0x50]
mov byte [ebp - 4], 0xf
cmp eax, ebx
je 0x409d67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x409d78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x34]
lea ecx, [ebp + 0x20]
mov byte [ebp + 0x73], bl
call fcn.0040cbe5
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x1c], 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 + 0x18]
call fcn.00401cae
test al, al
jne 0x409c2d
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, str.AssociationActivationMode
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], 0xf
call fcn.00403256
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x14
call fcn.00401c82
cmp dword [eax + 0x18], 0x10
jb 0x409deb
mov eax, dword [eax + 4]
jmp 0x409dee
add eax, 4
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00405d1e
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.0040cbe5
mov eax, dword [ebp - 0x48]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp + 0x14], eax
jmp 0x409f70
lea ecx, [ebp + 0x10]
call fcn.00401c82
push eax
lea ecx, [ebp - 0x64]
call fcn.004038b1
test eax, eax
jne 0x409f68
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x409e3f
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004034f7
push dword [eax]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x15
call fcn.00404ed4
lea eax, [ebp - 0x3e0]
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x3e4], eax
je 0x409e7a
push dword [ebp - 0x3e4]
call fcn.004110f2
pop ecx
lea ecx, [ebp + 0x18]
call fcn.00401c82
cmp dword [eax + 0x34], 0x10
jb 0x409e8d
mov eax, dword [eax + 0x20]
jmp 0x409e90
add eax, 0x20
push eax
lea ecx, [ebp + 0x54]
call fcn.00402635
push str.SOFTWAREMicrosoftInternet_ExplorerMain
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x18
call fcn.00402618
push 0x2011f
push dword [ebp + 0x54]
lea ecx, [ebp + 0x64]
push SysStringLen
call fcn.0040153d
test eax, eax
jne 0x409f4d
lea eax, [ebp + 8]
push eax
push 0x427920
lea ecx, [ebp + 0x64]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x4c], ebx
call fcn.0040157e
lea eax, [ebp + 0x4c]
push eax
push edi
lea ecx, [ebp + 0x64]
call fcn.0040157e
cmp dword [ebp + 8], ebx
jne 0x409f24
cmp dword [ebp + 0x4c], 2
jne 0x409f24
push 4
lea eax, [ebp + 0x40]
push eax
push 4
push ebx
push 0x427920
push dword [ebp + 0x64]
mov dword [ebp + 0x40], 1
call esi
push 4
lea eax, [ebp + 0x40]
push eax
push 4
push ebx
push edi
push dword [ebp + 0x64]
mov dword [ebp + 0x40], ebx
call esi
jmp 0x409f28
mov byte [ebp + 0x73], 1
lea ecx, [ebp + 0x64]
call fcn.00401522
push 0x2001f
push dword [ebp + 0x44]
lea ecx, [ebp + 0x64]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040153d
test eax, eax
je 0x409fce
push dword [ebp + 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
push 1
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x14
call fcn.00403537
lea ecx, [ebp + 0x10]
call fcn.00401ac9
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp]
call fcn.0040cbe5
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x10]
call fcn.00401cae
test al, al
je 0x409e1a
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040394b
lea ecx, [ebp + 0x18]
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 + 0x18]
call fcn.00401cae
test al, al
je 0x409dc4
jmp 0x409c2d
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0xc28]
push eax
push 0x4279f4
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x58], 0x400
call fcn.004015b6
test eax, eax
jne 0x40a215
lea eax, [ebp - 0xc28]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00404ed4
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], 7
call fcn.00402ce6
mov byte [ebp - 4], 0x1a
cmp byte [ebp + 0x73], bl
je 0x40a032
cmp byte [ebp + 0x72], bl
jne 0x40a032
push 0x4277c8
lea ecx, [ebp - 0x80]
call fcn.0040509b
push ebx
push ebx
mov edi, 0x4277c4
push edi
lea ecx, [ebp - 0x428]
call fcn.00404f1c
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x1b
call fcn.004050bf
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x1c
call fcn.00407316
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0x1d
call fcn.00407377
push eax
lea ecx, [ebp - 0x1fc]
call fcn.004022fc
neg al
sbb al, al
inc al
lea ecx, [ebp - 0x354]
mov byte [ebp + 0x73], al
call fcn.0040418b
cmp byte [ebp + 0x73], bl
je 0x40a1c8
push 2
pop esi
cmp dword [ebp - 0x190], esi
jbe 0x40a123
push esi
push ebx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00405607
or dword [ebp + 0x6c], esi
push 0x4277bc
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.0040315e
test eax, eax
jne 0x40a123
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00405607
or dword [ebp + 0x6c], 4
lea ecx, [ebp - 0x134]
push ecx
mov ecx, eax
mov dword [ebp - 4], 0x1f
call fcn.0040313a
mov byte [ebp + 0x72], 1
test eax, eax
je 0x40a126
mov byte [ebp + 0x72], bl
test byte [ebp + 0x6c], 4
je 0x40a13e
and dword [ebp + 0x6c], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x28c]
call fcn.00403537
test byte [ebp + 0x6c], 2
mov dword [ebp - 4], 0x1d
je 0x40a15d
and dword [ebp + 0x6c], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.00403537
cmp byte [ebp + 0x72], bl
jne 0x40a182
cmp dword [ebp - 0x6c], ebx
je 0x40a170
push edi
lea ecx, [ebp - 0x80]
call fcn.0040509b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x80]
call fcn.004044c8
lea ecx, [ebp - 0x1fc]
call fcn.004069ca
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00407377
push eax
lea ecx, [ebp - 0x1fc]
call fcn.004022fc
neg al
sbb al, al
inc al
lea ecx, [ebp - 0x354]
mov byte [ebp + 0x73], al
call fcn.0040418b
cmp byte [ebp + 0x73], bl
jne 0x40a0ba
lea ecx, [ebp - 0x1fc]
call fcn.0040418b
cmp dword [ebp - 0x6c], ebx
jne 0x40a1e6
push 0x4279f4
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x2d0]
call fcn.00404167
lea ecx, [ebp - 0x428]
call fcn.00404167
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00403537
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.00403537
lea ecx, [ebp + 0x64]
call fcn.00401522
push dword [ebp + 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.00403537
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040394b
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x40a250
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x40a261
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 - 0x178]
call fcn.0040414b
lea ecx, [ebp - 0x118]
call fcn.0040414b
push ebx
push 1
jmp 0x4098e2