Function at 0x128f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x147]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x148], bl
call sub.ntoskrnl.exe_memset
or dword [ebp - 8], 0xffffffff
add esp, 0xc
push 0x16
mov eax, 0x98
mov word [ebp - 0x24], ax
add eax, 2
mov word [ebp - 0x22], ax
pop eax
push 0x18
mov word [ebp - 0x2c], ax
pop eax
mov ecx, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], str.RegistryMachineSOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
mov word [ebp - 0x2a], cx
mov dword [ebp - 0x28], str.ServiceName
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], ebx
jbe 0x12af1
push esi
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x12af0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jl 0x12ae8
cmp dword [esi + 0x14], ebx
jbe 0x12ae8
mov edi, 0x208
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp dword [ebp - 4], ebx
jbe 0x12ad4
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
cmp esi, ebx
je 0x12ad1
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
push edi
lea eax, [ebp - 0x350]
push ebx
push eax
call sub.ntoskrnl.exe_memset
xor eax, eax
mov word [ebp - 0x14], ax
mov eax, edi
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x350]
mov dword [ebp - 0x10], eax
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov eax, dword [esi + 0xc]
add eax, eax
push eax
lea eax, [esi + 0x10]
push eax
push dword [ebp - 0x10]
call sub.ntoskrnl.exe_wcslen
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2]
push eax
call sub.ntoskrnl.exe_wcsncpy
mov ax, word [esi + 0xc]
add word [ebp - 0x14], ax
mov ax, word [esi + 0xc]
add word [ebp - 0x12], ax
add esp, 0xc
push 0x104
lea eax, [ebp - 0x148]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.000127c3
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x12ac4
push dword [ebp + 0xc]
lea eax, [ebp - 0x148]
push dword [ebp + 8]
push eax
call fcn.00012643
mov dword [ebp - 0x18], eax
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x18], ebx
jne 0x12ae5
mov esi, dword [ebp - 0x1c]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x14]
jb 0x129e1
jmp 0x12ae8
mov esi, dword [ebp - 0x1c]
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
cmp dword [ebp - 8], ebx
pop edi
pop ebx
je 0x12b01
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x18]
leave
ret 8