Function at 0x10934d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.01092db0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x109350a
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1093752
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jbe 0x1093540
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
sub edx, 1
cmp edx, 0x100
jae 0x109352f
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
sub ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x1093536
mov dword [ebp - 0x24], 0x100
mov edx, dword [ebp - 0x24]
shl edx, 1
mov dword [ebp - 0x18], edx
jmp 0x1093547
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x1c], 0
je 0x109359b
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0
jbe 0x1093583
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
sub edx, 1
cmp edx, 0x100
jae 0x1093572
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x1093579
mov dword [ebp - 0x28], 0x100
mov edx, dword [ebp - 0x28]
shl edx, 1
mov dword [ebp - 0x14], edx
jmp 0x109358a
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
add eax, 0x23
and eax, 0xfffffffc
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jmp 0x10935a4
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10935ca
mov dword [ebp - 0xc], 0xe
jmp 0x109373d
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
xor eax, eax
cmp dword [ebp + 0x1c], 0
setne al
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x1093608
mov eax, dword [ebp - 0x1c]
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [ebp - 0xc], eax
jmp 0x109372c
cmp dword [ebp + 0x1c], 0
jne 0x109365c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
cmp edx, dword [ebp - 0x18]
jbe 0x1093622
mov dword [ebp - 0xc], 0x6f
jmp 0x1093657
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
shr edx, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], 0
jmp 0x10936ec
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
cmp edx, dword [ebp - 0x18]
ja 0x1093672
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 0x14]
jbe 0x109367b
mov dword [ebp - 0xc], 0x6f
jmp 0x10936ec
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
shr ecx, 1
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov word [edx + ecx*2], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
shr edx, 1
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x1c]
mov word [eax + edx*2], 0
cmp dword [ebp - 0xc], 0
jne 0x109372c
cmp dword [ebp + 0x24], 0
je 0x109372c
cmp dword [ebp + 0x1c], 0
jne 0x1093716
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x109372c
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x109374f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x20