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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x10184f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x534]
mov dword [ebp - 0x550], 0
push eax
push 8
push 0
mov esi, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
mov dword [ebp - 0x544], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x80000002
call edi
test eax, eax
je 0x1007fd07
mov dword [esi + 0x14], 0xf
xor ecx, ecx
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [0], cl
je 0x1007fcff
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007fcf6
sub ecx, edx
push ecx
push 0
jmp 0x1007fef3
push ebx
xor ebx, ebx
mov dword [ebp - 0x538], 0x104
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x328]
push eax
push ebx
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1007feb7
nop dword [eax + eax]
lea eax, [ebp - 0x540]
push eax
push 1
push 0
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x534]
call edi
test eax, eax
jne 0x1007fe49
lea eax, [ebp - 0x548]
mov dword [ebp - 0x54c], 1
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x548], 0x208
push eax
lea eax, [ebp - 0x54c]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007fe3d
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x530]
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x530]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1007fe37
push 0
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x544], 0x1010101
push eax
push 0x104
lea eax, [ebp - 0xc]
mov dword [ebp - 0x53c], 0
push eax
push 4
lea eax, [ebp - 0x544]
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1007fe30
cmp dword [ebp - 0x53c], 0
jne 0x1007fe81
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x538]
mov dword [ebp - 0x538], 0x104
push eax
lea eax, [ebp - 0x328]
inc ebx
push eax
push ebx
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1007fd40
jmp 0x1007feb7
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.10079b10
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x1c], 0
pop ebx
jne 0x1007fedf
xor ecx, ecx
jmp 0x1007feee
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007fee5
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.1006f630
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10116580
mov esp, ebp
pop ebp
ret