Function at 0x7dd72059
Capabilities:
Query or enumerate registry key

Disassembly:
cmp dword [ebp - 0x1c], 0
je 0x7dd72153
jmp 0x7ddb0a3c
push 0x58
push 0x7dd72170
call fcn.7dd715c0
xor edi, edi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
movzx eax, word [esi]
cmp ax, 2
jb 0x7dd99375
test al, 1
jne 0x7dd99375
cmp dword [esi + 4], edi
je 0x7dd99375
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x7dd99375
and dword [ebp - 4], edi
and dword [ebx], edi
mov dword [ebp - 4], 0xfffffffe
test edi, edi
jne 0x7ddb0995
mov eax, 0xfffe
add word [esi], ax
mov dword [ebp - 0x40], 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp + 0x10]
mov ecx, edi
and ecx, 8
or ecx, 2
shl ecx, 5
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
test al, 2
jne 0x7dd8be21
call sym.KERNEL32.dll_RegKrnGetGlobalState
test byte [eax + 0x24], 2
jne 0x7ddb099c
and edi, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x1c], 0
jne 0x7ddb09ae
push edi
push eax
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.ntdll.dll_NtOpenKeyEx]
mov edi, eax
cmp edi, 0x40000016
je 0x7dd99338
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp + 0x18], eax
cmp edi, 0xc0000022
je 0x7dd817ca
test byte [ebp + 8], 2
jne 0x7dd72153
test edi, edi
jl 0x7dd71624
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
call fcn.7dd71605
ret 0x18
call sym.KERNEL32.dll_RegKrnGetGlobalState
test byte [eax + 0x24], 1
je 0x7dd72145
jmp 0x7ddb09c2
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.7dd8be3e
mov edi, eax
jmp 0x7dd7212f
lea eax, [ebp + 0x18]
push eax
push 0x28
lea eax, [ebp - 0x68]
push eax
push 4
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov edi, eax
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jl 0x7dd7212f
mov eax, dword [ebp - 0x54]
mov dword [ebx], eax
jmp 0x7dd7212f
test eax, eax
je 0x7dd72105
jmp 0x7dd8be21
push 0x57
pop eax
jmp 0x7dd72161
mov eax, edi
jmp 0x7dd72161
push dword [ebp + 0x1c]
push esi
lea eax, [ebp + 8]
push eax
call fcn.7de198a5
jmp 0x7dd99368
push dword [ebp + 0x1c]
push edi
push eax
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.ntdll.dll_NtOpenKeyTransactedEx]
jmp 0x7dd72121
test byte [ebp + 8], 2
je 0x7ddb09e8
push dword [ebp + 0x1c]
push ebx
mov eax, dword [ebp + 0x14]
and eax, 0x1000300
or eax, 0x2000000
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.7dd8be3e
jmp 0x7ddb0a22
lea eax, [ebp - 0x40]
cmp dword [ebp + 0x1c], 0
je 0x7ddb0a0c
push dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x14]
and eax, 0x1000300
or eax, 0x2000000
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtOpenKeyTransacted]
jmp 0x7ddb0a22
push eax
mov eax, dword [ebp + 0x14]
and eax, 0x1000300
or eax, 0x2000000
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, eax
test edi, edi
jge 0x7ddb0a2d
mov edi, 0xc0000022
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp + 0x18], eax
jmp 0x7dd72145
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x14]
push ebx
call dword [ebp - 0x1c]
test eax, eax
je 0x7dd72153
push 0
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp + 0x18], eax
jmp 0x7dd72153