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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x170b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0xd8], 0xffffffff
and dword [ebp - 0xd4], 0
cmp byte [0x170c8], 0
push ebx
push esi
push edi
mov dword [ebp - 0xf4], eax
jne 0x110fe
mov cl, byte [0x17011]
mov al, byte [0x17010]
mov byte [ebp - 0xf], cl
mov cl, byte [0x17012]
mov byte [ebp - 0xe], cl
mov cl, byte [0x1700c]
mov byte [ebp - 0xd], cl
mov cl, byte [0x1700d]
mov byte [ebp - 0xc], cl
mov cl, byte [0x1700e]
mov byte [ebp - 0xb], cl
mov cl, byte [0x1700f]
mov byte [ebp - 0xa], cl
mov cl, byte [0x17013]
mov byte [ebp - 9], cl
mov cl, byte [0x17014]
mov byte [ebp - 8], cl
mov cl, byte [0x17015]
mov byte [ebp - 7], cl
mov cl, byte [0x17016]
mov byte [ebp - 0x10], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], 0
cmp al, 0x20
jne 0x110bf
xor eax, eax
mov cl, byte [ebp + eax - 0xf]
mov byte [eax + 0x170c8], cl
inc eax
test cl, cl
jne 0x110ae
jmp 0x110d0
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
mov byte [eax + 0x170c8], cl
inc eax
test cl, cl
jne 0x110c1
mov eax, str._19:52:53
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x110d7
mov edi, 0x170c8
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x110e6
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]
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x28
pop ecx
push 5
mov esi, 0x15338
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x15322
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x144]
push eax
movsw word es:[edi], word [esi]
call ebx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x128]
push eax
xor edi, edi
push 8
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0x128], 0x18
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x11c], 0x40
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jne 0x11478
push 0xc00
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
mov dword [ebp - 0xd0], esi
cmp esi, edi
je 0x11478
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x13c]
push eax
lea edi, [esi + 0x400]
mov byte [ebp - 0xc9], 0
call ebx
lea ecx, [ebp - 0xf0]
push ecx
push 0x400
xor eax, eax
push esi
push eax
push eax
push dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, 0x8000001a
je 0x1146f
mov dword [ebp - 0xe8], edi
lea eax, [ebp - 0xc8]
sub dword [ebp - 0xe8], eax
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov word [eax + esi + 0x10], cx
lea eax, [ebp - 0xc8]
movzx ecx, word [eax]
mov edx, dword [ebp - 0xe8]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x1120c
lea edi, [esi + 0x400]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x11228
mov eax, dword [ebp - 0xd0]
mov esi, 0x1531e
add eax, 0x10
movsd dword es:[edi], dword [esi]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x11244
mov edi, dword [ebp - 0xd0]
sub eax, esi
add edi, 0x3fe
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x1125c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xd0]
add eax, 0x400
push eax
lea eax, [ebp - 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x110]
push eax
push 1
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0x134]
push eax
mov dword [ebp - 0x110], 0x18
mov dword [ebp - 0x104], 0x40
mov dword [ebp - 0x108], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jne 0x11469
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0xd0]
push 0x400
add eax, 0x400
lea esi, [eax + 0x400]
push esi
push 2
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0xec]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x11407
cmp dword [esi + 4], 1
jne 0x11415
add esi, 0xc
push esi
lea eax, [ebp - 0xc]
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, ecx
mov dword [ebp - 0xdc], ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x11339
sub eax, edx
sar eax, 1
lea eax, [ecx + eax*2]
mov dword [ebp - 0xf8], eax
cmp ecx, eax
jae 0x11415
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xd4]
lea eax, [eax + ecx*4 + 0x40]
mov dword [ebp - 0xe0], eax
mov edi, dword [ebp - 0xdc]
push 0x2c
push edi
call dword [sym.imp.ntoskrnl.exe_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x11396
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x11388
sub eax, edx
jmp 0x11398
sub eax, edi
sar eax, 1
lea esi, [eax + eax]
push esi
push edi
mov edi, dword [ebp - 0xd0]
add edi, 0x800
push edi
call sub.ntoskrnl.exe_memcpy
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
lea eax, [ebp - 0x12c]
push eax
push edi
call fcn.00011e52
test eax, eax
je 0x113e9
mov ecx, dword [ebp - 0xe0]
inc dword [ebp - 0xd4]
add dword [ebp - 0xe0], 4
cmp dword [ebp - 0xd4], 4
mov dword [ecx], eax
je 0x1140e
mov eax, dword [ebp - 0xdc]
lea esi, [eax + esi + 2]
mov dword [ebp - 0xdc], esi
cmp esi, dword [ebp - 0xf8]
jb 0x1136e
jmp 0x11415
cmp eax, 0xc0000034
je 0x11415
mov byte [ebp - 0xc9], 1
push dword [ebp - 0xec]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 0xc9], 1
je 0x11469
inc dword [ebp - 0xe4]
lea eax, [ebp - 0xf0]
push eax
push 0x400
push dword [ebp - 0xd0]
push 0
push dword [ebp - 0xe4]
push dword [ebp - 0xd8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov esi, dword [ebp - 0xd0]
cmp eax, 0x8000001a
jne 0x111fc
jmp 0x1146f
mov esi, dword [ebp - 0xd0]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0xd8], 0xffffffff
pop edi
pop esi
pop ebx
je 0x11490
push dword [ebp - 0xd8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [ebp - 0xd4]
sbb eax, eax
and eax, 0x3fffffff
xor ecx, ebp
add eax, 0xc0000001
call fcn.00014edd
leave
ret 4