Function at 0x1071828
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x68
push 0x110a7e8
call fcn.0106fcf4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
xor edi, edi
mov dword [ebp - 0x60], edi
mov eax, dword [ebp - 0x74]
mov dword [eax], edi
mov eax, dword [ebp - 0x68]
mov dword [eax], edi
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x78]
push eax
push 0x30
lea eax, [ebp - 0x4c]
push eax
push 2
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov dword [ebp - 0x50], eax
cmp eax, edi
jge 0x107187f
cmp eax, 0x80000005
jne 0x10719e8
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x6c], esi
cmp esi, edi
jne 0x1071891
mov dword [ebp - 0x50], edi
jmp 0x10719e8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
push ecx
push 2
push eax
call fcn.01072e06
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x10718bd
mov eax, dword [ebp - 0x5c]
mul esi
lea ecx, [ebp - 0x5c]
push ecx
push edx
push eax
call fcn.01071740
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x50], ebx
jl 0x10719e8
mov eax, esi
push 4
pop ecx
mul ecx
lea ecx, [ebp - 0x54]
push ecx
push edx
push eax
call fcn.01071740
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x10719e8
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.01072e06
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x10719e8
mov eax, dword fs:[0x18]
push dword [ebp - 0x54]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x107192d
mov dword [ebp - 0x50], 0xc000009a
jmp 0x10719e8
lea esi, [eax + esi*4]
push 0x1a
pop eax
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x34]
push eax
call fcn.01072e06
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x10719e8
mov eax, dword fs:[0x18]
push dword [ebp - 0x64]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call ebx
mov edi, eax
test edi, edi
je 0x1071921
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
xor ebx, ebx
cmp dword [ebp - 0x6c], ebx
jbe 0x10719d7
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x64]
push edi
push 0
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0x50], eax
cmp eax, 0x8000001a
je 0x1071a31
test eax, eax
jl 0x10719e8
mov eax, dword [edi + 0xc]
inc eax
inc eax
cmp eax, dword [ebp - 0x54]
ja 0x1071a37
mov eax, dword [ebp - 0x58]
mov dword [eax + ebx*4], esi
push dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, dword [edi + 0xc]
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push 0xfffffffffffffffe
pop eax
sub eax, dword [edi + 0xc]
add dword [ebp - 0x54], eax
inc ebx
cmp ebx, dword [ebp - 0x6c]
jb 0x1071974
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
mov eax, dword [ebp - 0x68]
mov dword [eax], ebx
and dword [ebp - 0x50], 0
xor esi, esi
cmp edi, esi
je 0x1071a02
mov eax, dword fs:[0x18]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x50], esi
jge 0x1071a22
cmp dword [ebp - 0x58], esi
je 0x1071a22
mov eax, dword fs:[0x18]
push dword [ebp - 0x58]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x50], 0xc000017d
jne 0x1071a65
mov dword [ebp - 4], esi
int3
test ebx, ebx
je 0x10719e8
jmp 0x10719d7
mov dword [ebp - 0x50], 0xc0000023
jmp 0x10719e8
mov eax, dword [ebp - 0x50]
call fcn.0106fd3c
ret 0xc