Function at 0x40fde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4257b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x2c]
push edi
push eax
push str.AssumeConnected
push str.softwareQwertyuioQwertdynSettings
push reloc.WSOCK32.dll_bind
mov dword [ebp - 0x2c], edi
call fcn.0040afb0
mov eax, dword [ebp - 0x2c]
add esp, 0x14
cmp eax, edi
je 0x40fe42
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
push edi
push ecx
push str.UseInternetGetConnectedState
push str.softwareQwertyuioQwertdynSettings
push reloc.WSOCK32.dll_bind
mov dword [ebp - 0x38], edi
call fcn.0040afb0
mov eax, dword [ebp - 0x38]
add esp, 0x14
cmp eax, edi
je 0x40fea0
mov eax, dword [0x43236c]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x40fea0
mov eax, dword [0x432320]
cmp eax, edi
je 0x40fea0
lea edx, [ebp - 0x14]
push edi
push edx
mov dword [ebp - 0x14], edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4324ac]
mov dword [ebp - 0x18], 1
cmp eax, edi
mov dword [ebp - 4], 2
je 0x40fff8
lea eax, [ebp - 0x28]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fff8
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push edx
push eax
push edi
push str.EnableAutodial
push ecx
mov dword [ebp - 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ffee
cmp dword [ebp - 0x3c], edi
je 0x40ffee
cmp dword [0x42b8dc], 0xffffffff
jne 0x40ffa1
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push 0x108
push 0x40
mov dword [0x42b8dc], edi
call ebx
mov esi, eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
push edx
push eax
push esi
push edi
mov dword [esi], 0x108
push edi
mov dword [ebp - 0x20], 0x108
mov dword [ebp - 0x14], edi
call dword [0x4324b8]
cmp eax, 0x25b
jne 0x40ff85
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40
call ebx
mov esi, eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
push edx
push eax
push esi
push edi
push edi
mov dword [esi], 0x108
call dword [0x4324b8]
cmp eax, edi
jne 0x40ff98
cmp dword [ebp - 0x14], edi
je 0x40ff98
mov dword [0x42b8dc], 1
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x40ffa7
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp dword [0x42b8dc], edi
je 0x40ffee
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push edx
push eax
push edi
push str.NoNetAutodial
push ecx
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x30], edi
je 0x41000c
cmp dword [0x43236c], edi
je 0x41000c
mov eax, dword [0x432320]
cmp eax, edi
je 0x41000c
lea edx, [ebp - 0x14]
push edi
push edx
call eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x19c
push 0x40
call ebx
mov edi, eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
xor esi, esi
push ecx
mov dword [edi], 0x19c
push edi
mov dword [ebp - 0x24], 0x19c
mov dword [ebp - 0x1c], esi
call dword [0x4324b0]
cmp eax, 0x25b
jne 0x410065
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov edx, dword [ebp - 0x24]
push edx
push 0x40
call ebx
mov edi, eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push ecx
push edi
mov dword [edi], 0x19c
call dword [0x4324b0]
cmp eax, esi
jne 0x4100b9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
cmp eax, esi
je 0x4100b9
mov ebx, 0xa0
cmp esi, dword [ebp - 0x1c]
jae 0x4100b9
mov eax, esi
lea edx, [ebp - 0xe0]
shl eax, 4
add eax, esi
push edx
mov dword [ebp - 0xe0], ebx
lea eax, [eax + eax*2]
lea ecx, [esi + eax*2]
mov edx, dword [edi + ecx*4 + 4]
push edx
call dword [0x4324b4]
test eax, eax
jne 0x4100c5
cmp dword [ebp - 0xdc], 0x2000
jne 0x4100c5
mov dword [ebp - 0x18], 1
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x40ffee
inc esi
jmp 0x410078