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

Disassembly:
sub esp, 0x330
xor eax, eax
lea edx, [esp + 0x30]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, str.SYSTEMControlSet001ServicesTcpipParameters
or ecx, 0xffffffff
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
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, [esp + 0x28]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4036bf
lea eax, [esp + 0x14]
lea ecx, [ebp + 4]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
mov esi, 0x100
push str.Domain
push eax
mov dword [esp + 0x2c], esi
call edi
lea ecx, [esp + 0x14]
lea edx, [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Hostname
push ecx
mov dword [esp + 0x2c], esi
call edi
lea edx, [esp + 0x14]
lea eax, [ebp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.IPEnableRouter
push edx
mov dword [esp + 0x2c], esi
call edi
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [ebp + 0x1e6c]
mov dword [esp + 0x18], 0
push ecx
call fcn.00403a70
add esp, 4
lea edx, [esp + 0x18]
mov dword [ebp], eax
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x40371a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40370d
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x330
ret
push 0
push 0
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, eax
test ebx, ebx
jne 0x4039d9
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
inc ecx
mov dword [ebp], eax
push ecx
call fcn.00419953
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x34], ebx
test eax, eax
jle 0x4039cc
lea edx, [ebp + 0x1e6d]
lea esi, [ebp + 0x132]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push 0
inc eax
push 0
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x40395f
lea edx, [esp + 0x10]
lea eax, [esi - 0x106]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push str.Description
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x140]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.ServiceName
push eax
mov dword [esp + 0x28], 0x100
call edi
mov ebx, eax
test ebx, ebx
jne 0x40395f
lea ecx, [esp + 0x140]
lea edx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x248]
push str._sInterfaces_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x240]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x403954
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push ebx
push str.DefaultGateway
push edx
mov dword [esp + 0x28], 0x100
call edi
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.00403bd0
lea ecx, [esp + 0x10]
lea eax, [esi + 0x80]
push ecx
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push edx
push ebx
push str.IPAddress
push eax
mov dword [esp + 0x28], 0x100
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x80]
push ecx
push eax
mov ecx, ebp
call fcn.00403bd0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
lea eax, [esi + 0x100]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push str.SubnetMask
push ecx
mov dword [esp + 0x28], 0x100
call edi
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x100]
push edx
push eax
mov ecx, ebp
call fcn.00403bd0
lea eax, [esp + 0x10]
lea ecx, [esi + 0x180]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.NameServer
push eax
mov dword [esp + 0x28], 0x100
call edi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
add esi, 0x306
mov cl, byte [eax - 1]
add eax, 6
mov byte [esi - 0x30c], cl
mov dl, byte [eax - 6]
mov byte [esi - 0x30b], dl
mov cl, byte [eax - 5]
mov byte [esi - 0x30a], cl
mov dl, byte [eax - 4]
mov byte [esi - 0x309], dl
mov cl, byte [eax - 3]
mov byte [esi - 0x308], cl
mov dl, byte [eax - 2]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov byte [esi - 0x307], dl
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x403794
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041997c
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call esi
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 0x330
ret