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

Disassembly:
sub esp, 0x230
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
mov ebp, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403323
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [ebp + 4]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov ebx, 0x100
push str.Domain
push ecx
mov dword [esp + 0x28], ebx
call esi
lea edx, [esp + 0x10]
lea eax, [ebp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Hostname
push edx
mov dword [esp + 0x28], ebx
call esi
lea eax, [esp + 0x10]
lea ecx, [ebp + 0x28]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.EnableDNS
push eax
mov dword [esp + 0x28], ebx
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.NameServer
push ecx
mov dword [esp + 0x28], ebx
call esi
jmp 0x403329
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
lea eax, [ebp + 0x1e6c]
mov dword [esp + 0x1c], 0
push eax
call fcn.00403a70
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebp], eax
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetServicesClassNet
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x403384
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403377
push eax
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret
push 0
push 0
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x54]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x58], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
test edi, edi
jne 0x4035e7
mov edx, dword [esp + 0x28]
inc edx
push edx
call fcn.00419953
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
add esp, 4
mov dword [esp + 0x2c], edi
test eax, eax
jle 0x4035e7
lea edi, [ebp + 0x1e6d]
lea ebx, [ebp + 0x132]
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
inc eax
push 0
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
push 0
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x403598
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40347b
lea edx, [esp + 0x10]
lea eax, [ebx - 0x106]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.DriverDesc
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
push ecx
push str.SystemCurrentControlSetServicesClassNetTrans_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x40358d
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push ebx
push eax
push 0
mov edi, 0x100
push str.DefaultGateway
push ecx
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push ebx
call fcn.00403bd0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
lea edi, [ebx + 0x80]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push 0
push str.IPAddress
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
push edi
call fcn.00403bd0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edi, [ebx + 0x100]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
push 0
push str.IPMask
push eax
mov dword [esp + 0x28], 0x100
call esi
mov ecx, dword [esp + 0x10]
push ecx
push edi
mov ecx, ebp
call fcn.00403bd0
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x180]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
mov edi, dword [esp + 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [edi - 1]
add edi, 6
mov byte [ebx - 6], dl
mov al, byte [edi - 6]
mov byte [ebx - 5], al
mov cl, byte [edi - 5]
mov byte [ebx - 4], cl
mov dl, byte [edi - 4]
mov byte [ebx - 3], dl
mov al, byte [edi - 3]
mov byte [ebx - 2], al
mov cl, byte [edi - 2]
mov eax, dword [esp + 0x2c]
mov byte [ebx - 1], cl
mov ecx, dword [ebp]
inc eax
add ebx, 0x306
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edi
jl 0x4033f6
mov edi, dword [esp + 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
push edx
call ebx
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x230
ret