Function at 0x1e798
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 0x1e83a
mov al, 1
jmp 0x1ec41
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 0x1e863
push esi
push dword [ebp - 0x10]
call fcn.000124d0
jmp 0x1e833
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 0x1ec1a
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 0x1e95d
cmp eax, 0x80000005
je 0x1e95d
cmp eax, 0xc0000023
je 0x1e95d
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 0x1e833
cmp dword [ebp - 4], ebx
je 0x1e937
cmp dword [ebp - 4], 0x400
ja 0x1e937
push 0x504649
push dword [ebp - 4]
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1e937
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call edi
test eax, eax
jl 0x1ec46
cmp dword [ebp - 4], ebx
je 0x1ec46
mov eax, dword [ebp - 0x28]
mov byte [ebp - 9], bl
mov dword [ebp - 0x20], ebx
cmp dword [eax + 0x14], ebx
jbe 0x1ec00
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 0x1e9e0
cmp eax, 0x80000005
je 0x1e9e0
cmp eax, 0xc0000023
jne 0x1ec00
cmp dword [ebp - 4], ebx
je 0x1ec00
cmp dword [ebp - 4], 0x400
ja 0x1ec00
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 0x1ec00
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 0x1ebf5
cmp dword [ebp - 4], ebx
je 0x1ebf5
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 0x1ebb7
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 0x1ebb7
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
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], 0x18
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 0x1ebb4
push 0x10
pop eax
push 0x12
mov word [ebp - 0x50], ax
pop eax
mov word [ebp - 0x4e], ax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x4c], 0x256e6
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, ebx
jge 0x1eb3c
cmp eax, 0x80000005
je 0x1eb3c
cmp eax, 0xc0000023
jne 0x1ebab
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 0x1eba4
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 0x1eb90
cmp dword [edi + 4], 4
jne 0x1eb90
cmp dword [edi + 8], 4
jb 0x1eb90
cmp dword [edi + 0xc], ebx
setne al
mov byte [0x290c0], al
jmp 0x1eb97
mov byte [0x290c0], 1
push 0x52454749
push edi
call fcn.000124d0
jmp 0x1ebab
mov byte [0x290c0], 1
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 0x1ec00
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x14]
jb 0x1e9b7
jmp 0x1ec00
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 0x1ec38
push esi
push dword [ebp - 0x10]
call fcn.000124d0
cmp word [ebp - 0x14], bx
jbe 0x1ec38
push esi
push dword [ebp - 0x18]
call fcn.000124d0
cmp byte [0x290c0], bl
setne al
pop edi
pop esi
pop ebx
leave
ret
push 0x504649
push dword [ebp - 0x28]
call fcn.000124d0
jmp 0x1e937