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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x10182f40]
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 0x1007be07
mov dword [esi + 0x14], 0xf
xor ecx, ecx
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [0], cl
je 0x1007bdff
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bdf6
sub ecx, edx
push ecx
push 0
jmp 0x1007bff3
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 0x1007bfb7
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 0x1007bf49
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 0x1007bf3d
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 0x1007bf37
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 0x1007bf30
cmp dword [ebp - 0x53c], 0
jne 0x1007bf81
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 0x1007be40
jmp 0x1007bfb7
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.10076250
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 0x1007bfdf
xor ecx, ecx
jmp 0x1007bfee
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bfe5
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.1006f560
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.101149a0
mov esp, ebp
pop ebp
ret