Function at 0x423898
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x7c
push 0x438220
call fcn.00438088
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
xor edi, edi
mov dword [ebp - 0x88], edi
mov eax, dword [ebp - 0x80]
mov dword [eax], edi
mov eax, dword [ebp - 0x84]
mov dword [eax], edi
mov ebx, edi
mov dword [ebp - 0x6c], edi
and ecx, 0xfffffffd
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x8c], ecx
lea eax, [ebp - 0x78]
push eax
push 0x30
lea eax, [ebp - 0x50]
push eax
push 2
pop edx
call fcn.00424223
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
jns 0x4238fd
cmp esi, 0x80000005
jne 0x423b0a
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x68], edx
test edx, edx
jne 0x423911
mov esi, edi
mov dword [ebp - 0x58], esi
jmp 0x423b0a
mov eax, dword [ebp - 0x38]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x42391f
mov esi, edi
jmp 0x423927
mov esi, 0xc0000095
or ecx, 0xffffffff
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], esi
test esi, esi
js 0x423945
lea eax, [ebp - 0x60]
push eax
call fcn.0041f7cd
mov esi, eax
mov dword [ebp - 0x58], esi
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
mov eax, edi
mov dword [ebp - 0x54], eax
test esi, esi
js 0x423b0a
mov eax, edx
push 4
pop edx
mul edx
cmp edx, edi
ja 0x423968
jb 0x423964
cmp eax, 0xffffffff
ja 0x423968
mov esi, edi
jmp 0x423970
mov esi, 0xc0000095
or eax, 0xffffffff
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esi
test esi, esi
js 0x423b0a
lea edx, [ebp - 0x54]
push edx
mov edx, ecx
mov ecx, eax
call fcn.0041f7a8
mov esi, eax
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x54]
test esi, esi
js 0x423b0a
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x4239bd
mov esi, 0xc000009a
jmp 0x423909
mov ecx, dword [ebp - 0x68]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x64], 0x1a
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 0x38]
push 0x1a
pop ecx
call fcn.0041f7a8
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
js 0x423b0a
push dword [ebp - 0x64]
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebp - 0x54], ecx
test ecx, ecx
jne 0x423a0f
mov esi, 0xc000009a
jmp 0x423b04
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov ebx, edi
cmp dword [ebp - 0x68], 0
jbe 0x423af2
lea esi, [ecx + 0x10]
mov edx, dword [ebp - 0x70]
mov al, dl
and al, 1
mov byte [ebp - 0x59], al
test al, al
je 0x423a6f
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
shr eax, 1
mov dword [ebp - 0x74], eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
and edx, 0xfffffffe
push edx
call sym.bcdedit.exe__OREnumKey_28
mov ecx, eax
call fcn.004243cd
mov esi, eax
mov ecx, dword [ebp - 0x54]
test esi, esi
js 0x423a85
mov eax, dword [ebp - 0x74]
add eax, eax
mov dword [ecx + 0xc], eax
add eax, 0x10
mov dword [ebp - 0x78], eax
jmp 0x423a85
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x64]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov esi, eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], esi
cmp esi, 0x8000001a
je 0x423aee
test esi, esi
js 0x423b07
mov eax, dword [ecx + 0xc]
add eax, 2
cmp eax, dword [ebp - 0x60]
ja 0x423ae7
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x6c]
mov dword [eax + ebx*4], esi
push dword [ecx + 0xc]
lea eax, [ecx + 0x10]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x54]
add esi, dword [ecx + 0xc]
xor eax, eax
mov word [esi], ax
add esi, 2
mov dword [ebp - 0x7c], esi
push 0xfffffffffffffffe
pop eax
sub eax, dword [ecx + 0xc]
add dword [ebp - 0x60], eax
inc ebx
cmp ebx, dword [ebp - 0x68]
mov al, byte [ebp - 0x59]
mov edx, dword [ebp - 0x70]
lea esi, [ecx + 0x10]
jb 0x423a2e
jmp 0x423af2
mov esi, 0xc0000023
jmp 0x423b04
test ebx, ebx
je 0x423b07
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x84]
mov dword [eax], ebx
mov esi, edi
mov dword [ebp - 0x58], esi
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x423b1f
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x423b3b
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x423b3b
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x423b86
mov dword [ebp - 4], edi
int3
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4