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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac56
mov eax, dword fs:[0]
push eax
sub esp, 0x978
mov eax, dword [0x1006a2a8]
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 - 0x974], eax
mov dword [ebp - 0x970], eax
lea eax, [ebp - 0x970]
xor ebx, ebx
push eax
mov byte [ebp - 0x96c], bl
call fcn.10008b00
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.10029f30
add esp, 0xc
lea eax, [ebp - 0x960]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x978], ebx
mov dword [ebp - 0x964], ebx
mov dword [ebp - 0x97c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000713c
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x96c], bl
je 0x10007370
mov eax, dword [ebp - 0x970]
dec dword [eax]
jne 0x10007370
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
jmp 0x1000733d
mov ecx, dword [ebp - 0x960]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x97c]
push edx
lea eax, [ebp - 0x52c]
push eax
mov edi, 1
push edi
push ecx
mov dword [ebp - 0x968], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000730c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
lea edx, [ebp - 0x734]
push 0x104
push edx
call fcn.10028d35
add esp, 0xc
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x734]
push 0x104
push ecx
call fcn.10028cc0
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 0x100072de
lea ecx, [ebp - 0x964]
push ecx
mov ecx, dword [ebp - 0x95c]
lea edx, [ebp - 0x93c]
push edx
lea eax, [ebp - 0x978]
push eax
push ebx
push str.ServiceName
push ecx
mov dword [ebp - 0x978], edi
mov dword [ebp - 0x964], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x95c]
push edx
test eax, eax
jne 0x100072d2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.._
lea eax, [ebp - 0x324]
push 0x104
push eax
call fcn.10028d35
add esp, 0xc
lea ecx, [ebp - 0x93c]
push ecx
lea edx, [ebp - 0x324]
push 0x104
push edx
call fcn.10028cc0
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 0x100072c9
push 0x103
lea ecx, [ebp - 0x11b]
push ebx
push ecx
mov dword [ebp - 0x980], 0x1010102
mov byte [ebp - 0x11c], bl
call fcn.10029f30
add esp, 0xc
push ebx
lea edx, [ebp - 0x964]
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 0x10007390
lea edi, [esi + 2]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100072d8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x968], edi
mov edx, dword [ebp - 0x968]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x97c]
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 0x1000716f
mov eax, dword [ebp - 0x960]
cmp eax, ebx
je 0x1000731d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x96c], bl
je 0x10007370
mov eax, dword [ebp - 0x970]
dec dword [eax]
jne 0x10007370
xor edx, edx
lea ecx, [eax + 4]
xchg dword [ecx], edx
add eax, 8
mov edx, eax
mov ecx, SysReAllocString
lock xadd dword [edx], ecx
test ecx, 0x40000000
jne 0x10007370
cmp ecx, 0x80000000
jle 0x10007370
mov ecx, eax
lock bts dword [ecx], 0x1e
jb 0x10007370
call fcn.10006340
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.100281cf
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x958]
push edx
call fcn.10006550
mov esi, dword [ebp - 0x974]
add esi, 0x2c
mov edi, eax
mov byte [ebp - 4], 1
call fcn.10003890
mov edi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x944], edi
jb 0x100073d6
mov eax, dword [ebp - 0x958]
push eax
call fcn.100281c4
add esp, 4
mov ecx, dword [ebp - 0x974]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x944], 0xf
mov dword [ebp - 0x948], ebx
mov byte [ebp - 0x958], bl
cmp dword [esi + 0x14], edi
jb 0x100073fe
mov ecx, dword [esi]
jmp 0x10007400
mov ecx, esi
push eax
call fcn.10006670
test al, al
je 0x1000730c
lea eax, [ebp - 0x970]
mov dword [ebp - 4], 0xffffffff
call fcn.10008900
mov al, 1
jmp 0x10007372