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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060776
mov eax, dword fs:[0]
push eax
sub esp, 0x978
mov eax, dword [0x10072368]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x97c], eax
mov dword [ebp - 0x970], eax
lea eax, [ebp - 0x970]
xor ebx, ebx
push eax
mov byte [ebp - 0x96c], bl
call fcn.10008f80
push 0x206
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x322]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x960], ebx
mov dword [ebp - 0x95c], ebx
mov word [ebp - 0x324], cx
call fcn.1002c660
add esp, 0xc
lea eax, [ebp - 0x960]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x974], ebx
mov dword [ebp - 0x968], ebx
mov dword [ebp - 0x978], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10007764
mov ecx, dword [ebp - 0x960]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x978]
push edx
lea eax, [ebp - 0x52c]
push eax
mov edi, 1
push edi
push ecx
mov dword [ebp - 0x964], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10007753
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
lea edx, [ebp - 0x734]
push 0x104
push edx
call fcn.1002b465
add esp, 0xc
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x734]
push 0x104
push ecx
call fcn.1002b3f0
add esp, 0xc
lea edx, [ebp - 0x95c]
push edx
lea eax, [ebp - 0x734]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10007725
lea ecx, [ebp - 0x968]
push ecx
mov ecx, dword [ebp - 0x95c]
lea edx, [ebp - 0x93c]
push edx
lea eax, [ebp - 0x974]
push eax
push ebx
push str.ServiceName
push ecx
mov dword [ebp - 0x974], edi
mov dword [ebp - 0x968], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x95c]
push edx
test eax, eax
jne 0x10007719
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.._
lea eax, [ebp - 0x324]
push 0x104
push eax
call fcn.1002b465
add esp, 0xc
lea ecx, [ebp - 0x93c]
push ecx
lea edx, [ebp - 0x324]
push 0x104
push edx
call fcn.1002b3f0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push edi
push SysReAllocString
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007710
push 0x103
lea ecx, [ebp - 0x11b]
push ebx
push ecx
mov dword [ebp - 0x980], 0x1010102
mov byte [ebp - 0x11c], bl
call fcn.1002c660
add esp, 0xc
push ebx
lea edx, [ebp - 0x968]
push edx
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 4
lea ecx, [ebp - 0x980]
push ecx
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp edi, ebx
jne 0x100077d7
lea edi, [esi + 2]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000771f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x964], edi
mov edx, dword [ebp - 0x964]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x978]
push eax
mov eax, dword [ebp - 0x960]
lea ecx, [ebp - 0x52c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100075b6
mov eax, dword [ebp - 0x960]
cmp eax, ebx
je 0x10007764
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x96c], bl
je 0x100077b7
mov eax, dword [ebp - 0x970]
dec dword [eax]
jne 0x100077b7
lea edx, [eax + 4]
xor ecx, ecx
xchg dword [edx], ecx
add eax, 8
mov edx, eax
mov ecx, SysReAllocString
lock xadd dword [edx], ecx
test ecx, 0x40000000
jne 0x100077b7
cmp ecx, 0x80000000
jle 0x100077b7
mov ecx, eax
lock bts dword [ecx], 0x1e
jb 0x100077b7
call fcn.100067d0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002a8f8
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x958]
push edx
call fcn.100069e0
mov edi, dword [ebp - 0x97c]
lea esi, [edi + 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100038c0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x944], 0x10
jb 0x1000781a
mov eax, dword [ebp - 0x958]
push eax
call fcn.1002a8ed
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edi, dword [edi + 0x3c]
mov dword [ebp - 0x944], 0xf
mov dword [ebp - 0x948], ebx
mov byte [ebp - 0x958], bl
jb 0x1000783d
mov ecx, dword [esi]
jmp 0x1000783f
mov ecx, esi
push edi
call fcn.10006b00
test al, al
je 0x10007753
lea eax, [ebp - 0x970]
mov dword [ebp - 4], 0xffffffff
call fcn.10008d80
mov al, 1
jmp 0x100077b9