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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x413084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x30f]
push ebx
push eax
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], ebx
mov byte [ebp - 0x310], bl
call fcn.0040afd0
push 0x103
lea ecx, [ebp - 0x20b]
push ebx
push ecx
mov byte [ebp - 0x20c], bl
call fcn.0040afd0
push 0x103
lea edx, [ebp - 0x413]
push ebx
push edx
mov byte [ebp - 0x414], bl
call fcn.0040afd0
push 0x103
lea eax, [ebp - 0x61b]
push ebx
push eax
mov byte [ebp - 0x61c], bl
call fcn.0040afd0
push 0x103
lea ecx, [ebp - 0x517]
push ebx
push ecx
mov byte [ebp - 0x518], bl
call fcn.0040afd0
add esp, 0x3c
lea edx, [ebp - 0x624]
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
push 0x80000002
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x62c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401c85
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b6e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x624]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x414]
push ecx
push ebx
push edx
mov dword [ebp - 0x638], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401e57
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401e8a
lea edx, [ebp - 0x628]
push edx
mov edx, dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x634]
push ecx
push ebx
push str.ServiceName
push edx
mov dword [ebp - 0x634], 1
mov dword [ebp - 0x628], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e7d
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.._
lea ecx, [ebp - 0x518]
push ecx
call esi
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x518]
push eax
call edi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e8a
push ebx
lea edx, [ebp - 0x628]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 4
lea ecx, [ebp - 0x63c]
push ecx
push 0x170002
push esi
mov dword [ebp - 0x63c], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x401e8a
movzx ecx, byte [ebp - 0x103]
movzx edx, byte [ebp - 0x104]
movzx eax, byte [ebp - 0x105]
push ecx
movzx ecx, byte [ebp - 0x106]
push edx
movzx edx, byte [ebp - 0x107]
push eax
movzx eax, byte [ebp - 0x108]
push ecx
push edx
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push 0xffffffffffffffff
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call fcn.00405191
lea eax, [ebp - 0x310]
add esp, 0x28
lea edx, [eax + 1]
jmp 0x401e30
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401e30
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x310]
mov esi, 0x413f18
call fcn.00401460
mov dword [ebp - 0x630], 1
pop edi
pop esi
mov eax, dword [ebp - 0x624]
cmp eax, ebx
je 0x401e68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x630]
xor ecx, ebp
pop ebx
call fcn.00404b6e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x620]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x638]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x62c]
push ecx
inc eax
lea edx, [ebp - 0x414]
push edx
push eax
mov dword [ebp - 0x638], eax
mov eax, dword [ebp - 0x624]
push eax
mov dword [ebp - 0x62c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401cb5
jmp 0x401e55