Function at 0x7dd92252
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ebp + 0x18]
or dword [eax], 0xffffffff
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x20]
push ebx
push edi
mov edi, dword [ecx + 0x18]
xor ebx, ebx
and edi, 0xf0000000
mov byte [ebp - 1], bl
cmp eax, ebx
je 0x7dd9b233
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
test byte [ecx + 3], 2
jne 0x7dd9e42e
mov cx, word [eax + 8]
mov word [ebp - 0x24], cx
mov cx, word [eax + 0xa]
mov word [ebp - 0x22], cx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
cmp word [ebp - 0x24], bx
je 0x7dd9b233
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
test edi, edi
jns 0x7dd9b21f
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
cmp byte [eax + 0x30], 1
je 0x7dd9e43d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
cmp eax, ebx
jl 0x7dd9b247
lea eax, [ebp - 0x18]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
push 0x80000000
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x80], 0x18
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], 0x40
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x7dd9e447
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], ebx
jl 0x7dd9b247
cmp dword [ebp - 8], ebx
je 0x7dd9b25b
mov eax, dword [ebp - 8]
movzx esi, word [eax]
inc esi
inc esi
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x1c], edi
and dword [ebp - 0x1c], 0x10000000
lea esi, [eax + esi + 2]
jne 0x7dd9e45d
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x7dd9237b
test edi, 0x20000000
jne 0x7dd9e46d
mov byte [ebp + 0xf], bl
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
inc esi
inc esi
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x7dd9e47d
mov edi, dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
xor eax, eax
mov word [ebp - 0xe], si
mov esi, dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov word [ebp - 0x10], ax
cmp dword [ebp - 8], ebx
je 0x7dd923dd
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call esi
push 0x7dd920c4
lea eax, [ebp - 0x10]
push eax
call edi
lea eax, [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x7dd923dd
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call esi
cmp dword [ebp - 0x1c], ebx
jne 0x7dd9e496
cmp byte [ebp + 0xf], bl
jne 0x7dd9e4b3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], 0xc0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
cmp byte [ebp + 0x14], bl
jne 0x7dd9e4cc
lea eax, [ebp - 0x50]
push eax
push 0x80000000
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
leave
ret 0x14
test edi, 0x40000000
je 0x7dd9b253
mov dword [ebp - 8], 0x7dd9b264
jmp 0x7dd92348
xor eax, eax
jmp 0x7dd9244e
cmp eax, ebx
jl 0x7dd9244e
jmp 0x7dd922ab
mov dword [ebp - 8], 0x7dd9b26c
jmp 0x7dd9233f
mov dword [ebp - 8], ebx
jmp 0x7dd9233f
xor esi, esi
jmp 0x7dd92350
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.7dde9cdb
jmp 0x7dd9b23a
mov eax, 0xc0000022
jmp 0x7dd9244d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
jmp 0x7dd92336
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
lea esi, [eax + esi + 2]
jmp 0x7dd92368
movzx eax, word [eax]
lea esi, [eax + esi + 2]
mov byte [ebp + 0xf], 1
jmp 0x7dd9237e
lea eax, [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x7dd9e48c
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, 0xc0000017
jmp 0x7dd9244d
push 0x7dd920c4
lea eax, [ebp - 0x10]
push eax
call edi
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
lea eax, [ebp - 0x10]
push eax
call esi
jmp 0x7dd923f0
push 0x7dd920c4
lea eax, [ebp - 0x10]
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call esi
jmp 0x7dd923f9
mov esi, dword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, 0x2000f
jmp 0x7dd9e551
cmp byte [ebp - 1], bl
jne 0x7dd92434
mov eax, dword [ebp - 0x10]
movzx ecx, word [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
jmp 0x7dd9e501
mov ecx, 0xfffe
add word [ebp - 0x2c], cx
movzx ecx, word [ebp - 0x2c]
shr ecx, 1
cmp word [eax + ecx*2], 0x5c
jne 0x7dd9e4f4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x68], 0x18
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], 0xc0
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call esi
test eax, eax
jl 0x7dd92434
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
mov byte [ebp - 1], 1
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp + 0x18]
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xc0000034
jne 0x7dd92434
jmp 0x7dd9e4d9