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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x27424]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0xfc], 0xffffffff
and dword [ebp - 0xf8], 0
cmp byte [0x28b1c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x118], eax
jne 0x1e6c2
mov cl, byte [0x27085]
mov al, byte [0x27084]
mov byte [ebp - 0xf], cl
mov cl, byte [0x27086]
mov byte [ebp - 0xe], cl
mov cl, byte [0x27080]
mov byte [ebp - 0xd], cl
mov cl, byte [0x27081]
mov byte [ebp - 0xc], cl
mov cl, byte [0x27082]
mov byte [ebp - 0xb], cl
mov cl, byte [0x27083]
mov byte [ebp - 0xa], cl
mov cl, byte [0x27087]
mov byte [ebp - 9], cl
mov cl, byte [0x27088]
mov byte [ebp - 8], cl
mov cl, byte [0x27089]
mov byte [ebp - 7], cl
mov cl, byte [0x2708a]
mov byte [ebp - 0x10], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], 0
cmp al, 0x20
jne 0x1e683
xor eax, eax
mov cl, byte [ebp + eax - 0xf]
mov byte [eax + 0x28b1c], cl
inc eax
test cl, cl
jne 0x1e672
jmp 0x1e694
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
mov byte [eax + 0x28b1c], cl
inc eax
test cl, cl
jne 0x1e685
mov eax, str._19:19:43
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e69b
mov edi, 0x28b1c
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1e6aa
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x28
pop ecx
push 5
mov esi, 0x223e6
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x223d0
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movsw word es:[edi], word [esi]
push 7
pop ecx
mov esi, 0x223b2
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x15c]
push eax
movsw word es:[edi], word [esi]
call ebx
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x148]
push eax
xor edi, edi
push 8
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0x148], 0x18
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x13c], 0x40
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jne 0x1ea97
push 0xc00
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
mov dword [ebp - 0xf0], esi
cmp esi, edi
je 0x1ea97
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x154]
push eax
lea edi, [esi + 0x400]
mov byte [ebp - 0xe9], 0
call ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x164]
push eax
call ebx
lea ecx, [ebp - 0x100]
push ecx
push 0x400
xor eax, eax
push esi
push eax
push eax
push dword [ebp - 0xfc]
mov dword [ebp - 0x108], eax
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, 0x8000001a
je 0x1ea8e
mov dword [ebp - 0x104], edi
lea eax, [ebp - 0xe8]
sub dword [ebp - 0x104], eax
jmp 0x1e7e4
mov esi, dword [ebp - 0xf0]
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov word [esi + eax + 0x10], cx
lea eax, [ebp - 0xe8]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x104]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x1e7f4
lea edi, [esi + 0x400]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x1e810
mov eax, dword [ebp - 0xf0]
mov esi, 0x2225c
add eax, 0x10
movsd dword es:[edi], dword [esi]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1e82c
mov edi, dword [ebp - 0xf0]
sub eax, esi
add edi, 0x3fe
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x1e844
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xf0]
add eax, 0x400
push eax
lea eax, [ebp - 0x16c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x130]
push eax
push 1
lea eax, [ebp - 0x10c]
lea ecx, [ebp - 0x16c]
push eax
mov dword [ebp - 0x130], 0x18
mov dword [ebp - 0x124], 0x40
mov dword [ebp - 0x128], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, dword [ebp - 0xf0]
test eax, eax
jne 0x1ea8e
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0x100]
push eax
push 0x400
add esi, 0x800
push esi
push 2
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10c]
call edi
cmp eax, 0xc0000034
je 0x1e90c
test eax, eax
jne 0x1ea2e
cmp dword [ebp - 0x100], 0x17
jae 0x1e932
lea eax, [ebp - 0x100]
push eax
push 0x400
push esi
push 2
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x10c]
call edi
test eax, eax
jne 0x1ea2e
cmp dword [esi + 4], 1
jne 0x1ea3c
add esi, 0xc
push esi
lea eax, [ebp - 0xc]
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, ecx
mov dword [ebp - 0xf4], ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1e954
sub eax, edx
sar eax, 1
lea eax, [ecx + eax*2]
mov dword [ebp - 0x114], eax
cmp ecx, eax
jae 0x1ea3c
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xf8]
lea eax, [eax + ecx*4 + 0x40]
mov dword [ebp - 0x110], eax
push 0x2c
push dword [ebp - 0xf4]
call dword [sym.imp.ntoskrnl.exe_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x1e9b4
mov eax, dword [ebp - 0xf4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1e9a6
sub eax, edx
jmp 0x1e9ba
sub eax, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf0]
sar eax, 1
lea edi, [eax + eax]
push edi
push dword [ebp - 0xf4]
add esi, 0x800
push esi
call sub.ntoskrnl.exe_memcpy
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
lea eax, [ebp - 0x14c]
push eax
push esi
call fcn.000206d6
test eax, eax
je 0x1ea10
mov ecx, dword [ebp - 0x110]
inc dword [ebp - 0xf8]
add dword [ebp - 0x110], 4
cmp dword [ebp - 0xf8], 0x10
mov dword [ecx], eax
je 0x1ea35
mov eax, dword [ebp - 0xf4]
lea edi, [eax + edi + 2]
mov dword [ebp - 0xf4], edi
cmp edi, dword [ebp - 0x114]
jb 0x1e989
jmp 0x1ea3c
cmp eax, 0xc0000034
je 0x1ea3c
mov byte [ebp - 0xe9], 1
push dword [ebp - 0x10c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 0xe9], 1
je 0x1ea88
inc dword [ebp - 0x108]
lea eax, [ebp - 0x100]
push eax
push 0x400
push dword [ebp - 0xf0]
push 0
push dword [ebp - 0x108]
push dword [ebp - 0xfc]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, 0x8000001a
jne 0x1e7de
mov esi, dword [ebp - 0xf0]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0xfc], 0xffffffff
pop edi
pop esi
pop ebx
je 0x1eaaf
push dword [ebp - 0xfc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [ebp - 0xf8]
sbb eax, eax
and eax, 0x3fffffff
xor ecx, ebp
add eax, 0xc0000001
call fcn.00020898
leave
ret 4