Function at 0x40ae30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb60
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xb4c]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov esi, edx
mov ebx, ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xb5c], esi
mov dword [ebp - 0xb60], ebx
mov dword [ebp - 0xb54], edi
mov dword [ebp - 0xb4c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ae98
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144c7
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x40aeb0
mov eax, esi
imul eax, eax, 0x298
push eax
push 0
push ebx
call fcn.0041e930
add esp, 0xc
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0xb4c]
mov dword [ebp - 0xb58], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40b408
lea esi, [ebx + 0x180]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0041e930
push 0x40
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.0041e930
push 0x40
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.0041e930
push 0x40
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0041e930
push 0x40
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0041e930
push 0x100
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0041e930
add esp, 0x48
lea eax, [ebp - 0xb44]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0xb4c]
mov dword [ebp - 0xb50], 0xffffffff
mov dword [ebp - 0xb44], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b3dd
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xb48]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0xb44]
mov dword [ebp - 0xb40], 0x40
call ebx
test eax, eax
jne 0x40b3dd
cmp dword [ebp - 0xb48], 1
jne 0x40b3dd
mov eax, dword [ebp - 0xb40]
cmp eax, 0x40
jae 0x40b427
mov byte [ebp + eax - 0x44], 0
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0xb48]
push eax
push 0
push str.ComponentId
push dword [ebp - 0xb44]
mov dword [ebp - 0xb40], 0x40
call ebx
test eax, eax
jne 0x40b3dd
cmp dword [ebp - 0xb48], 1
jne 0x40b3dd
mov eax, dword [ebp - 0xb40]
cmp eax, 0x40
jae 0x40b427
mov byte [ebp + eax - 0x184], 0
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb48]
push eax
push 0
push str.DriverDesc
push dword [ebp - 0xb44]
mov dword [ebp - 0xb40], 0x40
call ebx
test eax, eax
jne 0x40b3dd
cmp dword [ebp - 0xb48], 1
jne 0x40b3dd
mov eax, dword [ebp - 0xb40]
cmp eax, 0x40
jae 0x40b427
mov byte [ebp + eax - 0xc4], 0
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xb48]
push eax
push 0
push str.BusType
push dword [ebp - 0xb44]
mov dword [ebp - 0xb40], 0x40
call ebx
test eax, eax
jne 0x40b0db
cmp dword [ebp - 0xb48], 1
jne 0x40b0db
mov eax, dword [ebp - 0xb40]
cmp eax, 0x40
jae 0x40b427
mov byte [ebp + eax - 0x104], 0
push dword [ebp - 0xb44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x84]
dec ecx
mov edi, edi
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40b0f0
mov eax, dword [str.NdiInterfaces]
mov dword [ecx], eax
mov eax, dword [0x435470]
mov dword [ecx + 4], eax
mov eax, dword [0x435474]
mov dword [ecx + 8], eax
mov eax, dword [0x435478]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0xb44]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0xb4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b1e2
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0xb48]
push eax
push 0
push str.LowerRange
push dword [ebp - 0xb44]
mov dword [ebp - 0xb40], 0x40
call ebx
test eax, eax
jne 0x40b1d6
cmp dword [ebp - 0xb48], 1
jne 0x40b1d6
mov eax, dword [ebp - 0xb40]
cmp eax, 0x40
jae 0x40b427
mov byte [ebp + eax - 0x144], 0
lea eax, [ebp - 0x44]
push eax
push str.DEVICETCPIP__S
lea eax, [ebp - 0x484]
push 0x100
push eax
call fcn.00414bf1
xor eax, eax
add esp, 0x10
mov word [ebp - 0x286], ax
lea eax, [ebp - 0xb50]
push eax
lea eax, [ebp - 0x484]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdapterIndex]
test eax, eax
jne 0x40b3dd
push dword [ebp - 0xb44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x44]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_SConnection
lea eax, [ebp - 0x484]
push 0x100
push eax
call fcn.00414bf1
add esp, 0x10
lea eax, [ebp - 0xb44]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x484]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b275
lea eax, [ebp - 0xb40]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0xb48]
push eax
push 0
push str.Name
push dword [ebp - 0xb44]
mov dword [ebp - 0xb40], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b269
cmp dword [ebp - 0xb48], 1
jne 0x40b269
mov word [ebp - 0x186], ax
push dword [ebp - 0xb44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xb50], 0xffffffff
je 0x40b3dd
lea eax, [ebp - 0x144]
push str.ethernet
push eax
call fcn.00426f5f
add esp, 8
test eax, eax
jne 0x40b3dd
mov eax, dword [ebp - 0xb50]
mov dword [ebp - 0x93c], eax
lea eax, [ebp - 0xb3c]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetIfEntry]
test eax, eax
jne 0x40b3dd
mov eax, dword [ebp - 0x91c]
cmp eax, 5
je 0x40b2d3
cmp eax, 4
je 0x40b2d3
xor edi, edi
jmp 0x40b2d8
mov edi, 1
mov eax, dword [ebp - 0xb5c]
test eax, eax
je 0x40b3ca
cmp dword [ebp - 0xb54], eax
jae 0x40b3ca
cmp dword [ebp - 0xb60], 0
je 0x40b3ca
push 0x40
lea eax, [ebp - 0x44]
push eax
lea ebx, [esi - 0x80]
push ebx
call fcn.004154d0
push 0x40
lea eax, [ebp - 0x184]
push eax
lea eax, [esi - 0x40]
push eax
call fcn.004154d0
push 0x40
lea eax, [ebp - 0xc4]
push eax
push esi
call fcn.004154d0
push 0x80
lea eax, [ebp - 0x284]
push eax
lea eax, [esi - 0x180]
push eax
call fcn.00414d8d
mov eax, dword [ebp - 0xb50]
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x104]
push eax
mov dword [esi + 0x40], edi
call fcn.0041506b
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xb50]
add esp, 0x34
mov dword [ebp - 0x5e0], eax
lea eax, [ebp - 0x7e0]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetIfEntry]
test eax, eax
jne 0x40b3a5
cmp dword [ebp - 0x5d0], 6
jne 0x40b3a5
mov eax, dword [ebp - 0x5cc]
mov dword [esi + 0x110], eax
mov ax, word [ebp - 0x5c8]
mov word [esi + 0x114], ax
lea eax, [esi + 0xd0]
push eax
lea eax, [esi + 0x90]
push eax
lea eax, [esi + 0x50]
push eax
lea edx, [esi + 0x4c]
mov ecx, ebx
call fcn.0040a930
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
mov edi, dword [ebp - 0xb54]
inc edi
mov dword [ebp - 0xb54], edi
add esi, 0x298
mov eax, dword [ebp - 0xb58]
push 0x40
lea ecx, [ebp - 0x84]
inc eax
push ecx
push eax
push dword [ebp - 0xb4c]
mov dword [ebp - 0xb58], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40aee1
push dword [ebp - 0xb4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret
call fcn.00415b38
int3