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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
mov edi, 0x4111bc
mov edx, 0x410b34
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x31c]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d6
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x31c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x314], 0
jmp 0x4010a8
mov edx, dword [ebp - 0x314]
add edx, 1
mov dword [ebp - 0x314], edx
mov eax, dword [ebp - 0x314]
cmp eax, dword [ebp - 4]
jae 0x4013d6
push 0xff
lea ecx, [ebp - 0x304]
push ecx
mov edx, dword [ebp - 0x314]
push edx
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d1
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
lea edx, [ebp - 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x304]
lea edx, [ebp - 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x30c]
push eax
push 1
push 0
lea ecx, [ebp - 0x204]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d1
lea edx, [ebp - 0x320]
push edx
push 0
lea eax, [ebp - 0x324]
push eax
push 0
push str.ServiceName
mov ecx, dword [ebp - 0x30c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d1
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.ServiceName
mov ecx, dword [ebp - 0x30c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea edx, [ebp - 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x104]
lea edx, [ebp - 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x310]
push eax
push 1
push 0
lea ecx, [ebp - 0x204]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d1
lea edx, [ebp - 0x320]
push edx
push 0
lea eax, [ebp - 0x324]
push eax
push 0
push str.IPAddress
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d1
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.IPAddress
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x328], edx
lea eax, [ebp - 0x104]
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
mov dl, byte [ecx]
mov byte [ebp - 0x32d], dl
mov eax, dword [ebp - 0x328]
cmp dl, byte [eax]
jne 0x40132d
cmp byte [ebp - 0x32d], 0
je 0x401321
mov ecx, dword [ebp - 0x32c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x32e], dl
mov eax, dword [ebp - 0x328]
cmp dl, byte [eax + 1]
jne 0x40132d
add dword [ebp - 0x32c], 2
add dword [ebp - 0x328], 2
cmp byte [ebp - 0x32e], 0
jne 0x4012cf
mov dword [ebp - 0x334], 0
jmp 0x401338
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
mov dword [ebp - 0x338], edx
cmp dword [ebp - 0x338], 0
jne 0x4013d1
lea eax, [ebp - 0x320]
push eax
push 0
lea ecx, [ebp - 0x324]
push ecx
push 0
push str.Description
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x4013d1
lea eax, [ebp - 0x320]
push eax
push 0x410b34
push 0
push 0
push str.Description
mov ecx, dword [ebp - 0x30c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x31c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4013d9
jmp 0x401099
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret