Function at 0x7dd9222a
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 0x7dd9b223
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
test byte [ecx + 3], 2
jne 0x7dd9e3fe
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 0x7dd9b223
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
test edi, edi
jns 0x7dd9b20f
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
cmp byte [eax + 0x30], 1
je 0x7dd9e40d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
cmp eax, ebx
jl 0x7dd9b237
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 0x7dd9e417
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 0x7dd9b237
cmp dword [ebp - 8], ebx
je 0x7dd9b24b
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 0x7dd9e42d
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x7dd92353
test edi, 0x20000000
jne 0x7dd9e43d
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 0x7dd9e44d
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 0x7dd923b5
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call esi
push 0x7dd9209c
lea eax, [ebp - 0x10]
push eax
call edi
lea eax, [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x7dd923b5
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 0x7dd9e466
cmp byte [ebp + 0xf], bl
jne 0x7dd9e483
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 0x7dd9e49c
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 0x7dd9b243
mov dword [ebp - 8], 0x7dd9b254
jmp 0x7dd92320
xor eax, eax
jmp 0x7dd92426
cmp eax, ebx
jl 0x7dd92426
jmp 0x7dd92283
mov dword [ebp - 8], 0x7dd9b25c
jmp 0x7dd92317
mov dword [ebp - 8], ebx
jmp 0x7dd92317
xor esi, esi
jmp 0x7dd92328
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.7dde9e4b
jmp 0x7dd9b22a
mov eax, 0xc0000022
jmp 0x7dd92425
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push ebx
lea eax, [ebp - 0x18]
push eax
call esi
jmp 0x7dd9230e
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
lea esi, [eax + esi + 2]
jmp 0x7dd92340
movzx eax, word [eax]
lea esi, [eax + esi + 2]
mov byte [ebp + 0xf], 1
jmp 0x7dd92356
lea eax, [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x7dd9e45c
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, 0xc0000017
jmp 0x7dd92425
push 0x7dd9209c
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 0x7dd923c8
push 0x7dd9209c
lea eax, [ebp - 0x10]
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call esi
jmp 0x7dd923d1
mov esi, dword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, 0x2000f
jmp 0x7dd9e521
cmp byte [ebp - 1], bl
jne 0x7dd9240c
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 0x7dd9e4d1
mov ecx, 0xfffe
add word [ebp - 0x2c], cx
movzx ecx, word [ebp - 0x2c]
shr ecx, 1
cmp word [eax + ecx*2], 0x5c
jne 0x7dd9e4c4
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 0x7dd9240c
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 0x7dd9240c
jmp 0x7dd9e4a9