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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
xor eax, eax
mov word [ebp - 0x34], ax
push ebx
push esi
push edi
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x48], ax
lea edi, [ebp - 0x46]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov word [ebp - 0x5c], ax
lea edi, [ebp - 0x5a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x22ac6
lea eax, [ebp - 0x34]
push eax
call esi
push 0x22b5e
lea eax, [ebp - 0x48]
push eax
call esi
push 0x256f8
lea eax, [ebp - 0x5c]
push eax
call esi
mov edi, 0x400
mov esi, 0x4d746147
mov eax, edi
push esi
push edi
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
call fcn.0001457a
push eax
call fcn.000123d2
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x1ed00
mov al, 1
jmp 0x1f102
mov eax, edi
push esi
push edi
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1ed29
push esi
push dword [ebp - 0x10]
call fcn.000124d0
jmp 0x1ecf9
mov edi, dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
push 0x38
lea eax, [ebp - 0xcc]
push ebx
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x60]
mov dword [ebp - 0xc0], eax
pop eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0xb8], eax
xor eax, eax
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc8], 0x20
mov dword [ebp - 0xc4], 0x22ab4
mov dword [ebp - 0x7c], 0x18
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], 0x240
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x1f0db
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
cmp eax, ebx
jge 0x1ee23
cmp eax, 0x80000005
je 0x1ee23
cmp eax, 0xc0000023
je 0x1ee23
push esi
push dword [ebp - 0x10]
call fcn.000124d0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.000124d0
push dword [ebp - 8]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1ecf9
cmp dword [ebp - 4], ebx
je 0x1edfd
cmp dword [ebp - 4], 0x400
ja 0x1edfd
push 0x504649
push dword [ebp - 4]
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1edfd
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call edi
test eax, eax
jl 0x1f107
cmp dword [ebp - 4], ebx
je 0x1f107
mov eax, dword [ebp - 0x28]
mov byte [ebp - 9], bl
mov dword [ebp - 0x20], ebx
cmp dword [eax + 0x14], ebx
jbe 0x1f0c1
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, ebx
jge 0x1eea6
cmp eax, 0x80000005
je 0x1eea6
cmp eax, 0xc0000023
jne 0x1f0c1
cmp dword [ebp - 4], ebx
je 0x1f0c1
cmp dword [ebp - 4], 0x400
ja 0x1f0c1
push 0x504249
push dword [ebp - 4]
call fcn.0001457a
push eax
call fcn.000123d2
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, ebx
je 0x1f0c1
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
jl 0x1f0b6
cmp dword [ebp - 4], ebx
je 0x1f0b6
mov ax, word [edi + 0xc]
mov word [ebp - 0x40], ax
mov cx, word [edi + 0xc]
mov word [ebp - 0x3e], cx
lea ecx, [edi + 0x10]
mov dword [ebp - 0x3c], ecx
cmp ax, 0x14
jbe 0x1f078
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
push ebx
push ebx
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp word [ebp - 0x1c], bx
je 0x1f078
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
xor eax, eax
lea edi, [ebp - 0x90]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x18
pop edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x94]
push eax
push 0x20019
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x88], 0x240
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x1f075
push 0x16
pop eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x24]
mov word [ebp - 0x4e], di
mov dword [ebp - 0x4c], 0x2571e
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, ebx
jge 0x1effe
cmp eax, 0x80000005
je 0x1effe
cmp eax, 0xc0000023
jne 0x1f06c
push 0x52454749
push dword [ebp - 0x2c]
mov byte [ebp - 9], 1
call fcn.0001457a
push eax
call fcn.000123d2
mov edi, eax
cmp edi, ebx
je 0x1f066
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x50]
push edi
push 2
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x54], ebx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x1f053
cmp dword [edi + 4], 4
jne 0x1f053
cmp dword [edi + 8], 4
jb 0x1f053
cmp dword [edi + 0xc], 1
sete al
mov byte [0x18b7fdd], al
jmp 0x1f059
mov byte [0x18b7fdd], bl
push 0x52454749
push edi
call fcn.000124d0
jmp 0x1f06c
mov byte [0x18b7fdd], bl
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov edi, dword [ebp - 0x38]
push 0x504249
push edi
call fcn.000124d0
mov edi, dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
cmp byte [ebp - 9], bl
jne 0x1f0c1
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x14]
jb 0x1ee7d
jmp 0x1f0c1
push 0x504249
push edi
call fcn.000124d0
push 0x504649
push dword [ebp - 0x28]
call fcn.000124d0
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
or dword [ebp - 8], 0xffffffff
cmp word [ebp - 0x14], bx
jbe 0x1f0f9
push esi
push dword [ebp - 0x10]
call fcn.000124d0
cmp word [ebp - 0x14], bx
jbe 0x1f0f9
push esi
push dword [ebp - 0x18]
call fcn.000124d0
cmp byte [0x18b7fdd], bl
setne al
pop edi
pop esi
pop ebx
leave
ret
push 0x504649
push dword [ebp - 0x28]
call fcn.000124d0
jmp 0x1edfd