Function at 0x413c77
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x110
mov eax, 0x43422f
call fcn.0041c240
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x8c]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x8c], esi
call edi
test eax, eax
jne 0x41403b
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa0]
push eax
push esi
push esi
push esi
push dword [ebp - 0x8c]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x94], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41402f
mov eax, 0x400
cmp dword [ebp - 0x94], eax
ja 0x41402f
cmp dword [ebp - 0xa0], eax
ja 0x41402f
cmp dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
jbe 0x41401f
mov eax, dword [ebp - 0x94]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417034
mov ebx, eax
mov eax, dword [ebp - 0x94]
pop ecx
inc eax
push eax
push ebx
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], ebx
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x414000
mov eax, dword [ebp - 0x94]
mov word [ebx + eax*2 + 2], si
lea eax, [ebp - 0x98]
push eax
push 0x20019
push esi
push ebx
push dword [ebp - 0x8c]
mov dword [ebp - 0x98], esi
call edi
test eax, eax
jne 0x414000
push 7
pop eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], esi
mov word [ebp - 0x84], si
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], si
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], si
mov eax, str.ServiceName
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], esi
call fcn.0040102d
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.00413b88
push 0xffffffffffffffff
lea ecx, [ebp - 0x88]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.004011e7
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.00401108
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.00401108
mov eax, str.Description
lea ecx, [ebp - 0xc4]
call fcn.0040102d
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.00413b88
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
push ecx
mov byte [ebp - 4], 4
call fcn.004011e7
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.00401108
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.00401108
cmp dword [ebp - 0x74], ebx
je 0x413fbd
mov eax, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [ebp - 0x2c]
call fcn.0040102d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401286
push str.Connection
mov eax, esi
push eax
call fcn.00401053
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], ebx
jae 0x413ec6
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x90]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x413f4e
mov eax, str.Name
lea ecx, [ebp - 0xfc]
call fcn.0040102d
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
push dword [ebp - 0x90]
lea ecx, [ebp - 0x118]
call fcn.00413b88
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.004011e7
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401108
push ebx
push 1
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 5
call fcn.00401108
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
cmp dword [ebp - 0x3c], ebx
je 0x413faf
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea esi, [ebp - 0x2c]
call fcn.0040109a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
call fcn.00401286
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x413f7a
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x90]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x413fa7
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
jmp 0x413faf
lea eax, [ebp - 0x50]
call fcn.00405142
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401108
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], ebx
je 0x413fe3
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push eax
add esi, 0x20
call fcn.00414308
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x88]
call fcn.00414045
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp - 0xa8]
xor esi, esi
push ebx
call fcn.0041808d
inc dword [ebp - 0x9c]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
pop ecx
jb 0x413d24
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x41403d
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
call fcn.0041c2c3
ret 4