Function at 0x1018380
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x68
push 0x101feb0
call fcn.0101f630
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 0x10183d7
cmp eax, 0x80000005
jne 0x1018540
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x6c], esi
cmp esi, edi
jne 0x10183e9
mov dword [ebp - 0x50], edi
jmp 0x1018540
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
push ecx
push 2
push eax
call fcn.01013ce6
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x1018415
mov eax, dword [ebp - 0x5c]
mul esi
lea ecx, [ebp - 0x5c]
push ecx
push edx
push eax
call fcn.01010cef
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x50], ebx
jl 0x1018540
mov eax, esi
push 4
pop ecx
mul ecx
lea ecx, [ebp - 0x54]
push ecx
push edx
push eax
call fcn.01010cef
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x1018540
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.01013ce6
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x1018540
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 0x1018485
mov dword [ebp - 0x50], 0xc000009a
jmp 0x1018540
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.01013ce6
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x1018540
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 0x1018479
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
xor ebx, ebx
cmp dword [ebp - 0x6c], ebx
jbe 0x101852f
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 0x1018589
test eax, eax
jl 0x1018540
mov eax, dword [edi + 0xc]
inc eax
inc eax
cmp eax, dword [ebp - 0x54]
ja 0x101858f
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 0x10184cc
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 0x101855a
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 0x101857a
cmp dword [ebp - 0x58], esi
je 0x101857a
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 0x10185bd
mov dword [ebp - 4], esi
int3
test ebx, ebx
je 0x1018540
jmp 0x101852f
mov dword [ebp - 0x50], 0xc0000023
jmp 0x1018540
mov eax, dword [ebp - 0x50]
call fcn.0101f678
ret 0xc