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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
xor eax, eax
push ebx
mov word [ebp - 0x4c], ax
push esi
push edi
lea edi, [ebp - 0x4a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x54], ax
lea edi, [ebp - 0x52]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov word [ebp - 0x7c], ax
lea edi, [ebp - 0x7a]
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 - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x22ac6
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
mov byte [ebp - 9], bl
call esi
push 0x22b5e
lea eax, [ebp - 0x54]
push eax
call esi
push 0x256f8
lea eax, [ebp - 0x7c]
push eax
call esi
mov esi, 0x400
mov edi, 0x4d746147
mov eax, esi
push edi
push esi
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x20221
mov eax, esi
push edi
push esi
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1fcad
push edi
push dword [ebp - 0x10]
jmp 0x2021c
mov edi, dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
call edi
push 0x38
lea eax, [ebp - 0xf0]
push ebx
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x80]
mov dword [ebp - 0xe4], eax
pop eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0xdc], eax
xor eax, eax
lea edi, [ebp - 0x9c]
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 - 0x4c]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa0]
push eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0xec], 0x20
mov dword [ebp - 0xe8], 0x22ab4
mov dword [ebp - 0xa0], 0x18
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x94], 0x240
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x201fe
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 0x1fdc4
cmp eax, 0x80000005
je 0x1fdc4
cmp eax, 0xc0000023
je 0x1fdc4
mov esi, 0x4d746147
push esi
push dword [ebp - 0x10]
call fcn.000124d0
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.000124d0
push dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x20221
cmp dword [ebp - 4], ebx
je 0x1fd99
cmp dword [ebp - 4], esi
ja 0x1fd99
push 0x504649
push dword [ebp - 4]
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x1fd99
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call edi
test eax, eax
jl 0x20228
cmp dword [ebp - 4], ebx
je 0x20228
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], ebx
cmp dword [eax + 0x14], ebx
jbe 0x201e4
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, ebx
jge 0x1fe40
cmp eax, 0x80000005
je 0x1fe40
cmp eax, 0xc0000023
jne 0x201e4
cmp dword [ebp - 4], ebx
je 0x201e4
cmp dword [ebp - 4], esi
ja 0x201e4
mov edi, 0x504249
push edi
push dword [ebp - 4]
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x201e4
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push ebx
push dword [ebp - 0x24]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
jl 0x201db
cmp dword [ebp - 4], ebx
je 0x201db
mov eax, dword [ebp - 0x38]
mov cx, word [eax + 0xc]
mov word [ebp - 0x5c], cx
mov dx, word [eax + 0xc]
add eax, 0x10
mov word [ebp - 0x5a], dx
mov dword [ebp - 0x58], eax
cmp cx, 0x14
jbe 0x2019b
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
push ebx
push ebx
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp word [ebp - 0x20], bx
je 0x2019b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
xor eax, eax
lea edi, [ebp - 0xb4]
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 - 0xb0], eax
lea eax, [ebp - 0xb8]
push eax
push 0x20019
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xb8], 0x18
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xac], 0x240
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x20196
push 0xe
pop eax
push 0x10
mov word [ebp - 0x88], ax
pop eax
push 8
mov word [ebp - 0x86], ax
pop eax
push 0xa
mov word [ebp - 0x74], ax
pop eax
push 8
mov word [ebp - 0x72], ax
pop eax
mov word [ebp - 0x68], ax
push 0xa
pop eax
mov word [ebp - 0x66], ax
xor eax, eax
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, esi
push 0x4d746147
push esi
mov dword [ebp - 0x84], 0x25750
mov dword [ebp - 0x70], 0x2576a
mov dword [ebp - 0x64], 0x25760
mov word [ebp - 0x2c], ax
mov word [ebp - 0x2a], ax
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x20188
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
jne 0x1fff2
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov eax, dword [ebp + 0xc]
jmp 0x20018
cmp dword [ebp - 0x18], 1
jne 0x20176
lea eax, [ebp - 0x68]
cmp byte [0x18b7fde], bl
jne 0x2000a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
call edi
cmp eax, ebx
jge 0x2004b
cmp eax, 0x80000005
je 0x2004b
cmp eax, 0xc0000023
jne 0x2015e
push 0x52454749
push dword [ebp - 0x3c]
call fcn.0001457a
push eax
call fcn.000123d2
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x2015e
lea ecx, [ebp - 0x60]
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x60], ebx
push eax
push 2
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call edi
test eax, eax
jl 0x20144
cmp dword [ebp - 0x18], ebx
jne 0x200c8
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 8]
cmp eax, 2
jb 0x20149
cmp word [ecx + 0xc], 0x31
jne 0x20149
cmp eax, 4
jb 0x200bc
cmp word [ecx + 0xe], bx
sete al
mov byte [0x18b7fde], al
jmp 0x2014f
mov byte [0x18b7fde], 1
jmp 0x2014f
push 0x4d746147
push esi
call fcn.0001457a
push eax
call fcn.000123d2
mov edi, eax
cmp edi, ebx
je 0x2014f
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
mov eax, 0x3fe
add esp, 0xc
cmp edx, eax
ja 0x200fb
mov eax, edx
push eax
add ecx, 0xc
push ecx
push edi
call sub.ntoskrnl.exe_memcpy
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x2010e
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
jbe 0x20137
mov ecx, dword [ebp - 0x44]
mov edx, esi
mov dword [ecx + 4], edi
mov word [ecx + 2], dx
mov word [ecx], ax
mov byte [ebp - 9], 1
jmp 0x2014f
push 0x4d746147
push edi
call fcn.000124d0
jmp 0x2014f
cmp dword [ebp - 0x18], ebx
jne 0x2014f
mov byte [0x18b7fde], bl
push 0x52454749
push dword [ebp - 0x40]
call fcn.000124d0
jmp 0x20169
cmp dword [ebp - 0x18], ebx
jne 0x20169
mov byte [0x18b7fde], bl
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x1ffd7
cmp dword [ebp - 0x28], ebx
je 0x20188
push 0x4d746147
push dword [ebp - 0x28]
call fcn.000124d0
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 9], bl
jne 0x201d4
mov edi, 0x504249
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push edi
push dword [ebp - 0x38]
call fcn.000124d0
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x14]
jb 0x1fe17
jmp 0x201e4
push 0x504249
jmp 0x201dc
push edi
push dword [ebp - 0x38]
call fcn.000124d0
push 0x504649
push dword [ebp - 0x34]
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 0x20221
mov esi, 0x4d746147
push esi
push dword [ebp - 0x10]
call fcn.000124d0
cmp word [ebp - 0x14], bx
jbe 0x20221
push esi
push dword [ebp - 0x1c]
call fcn.000124d0
pop edi
pop esi
pop ebx
leave
ret 8
push 0x504649
push dword [ebp - 0x34]
call fcn.000124d0
jmp 0x1fd99