Function at 0x7dd84a82
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0x10], edi
jmp 0x7dd84b14
push 0x58
push 0x7dd84cd8
call fcn.7dd715c0
xor edi, edi
mov dword [ebp - 0x1c], edi
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x30]
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call sub.KERNELBASE.dll_BaseGetProcessDllPath
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x7ddaf056
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x7dd84ae8
push dword [ebp - 0x20]
lea eax, [ebp - 0x60]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x7dd84ae8
push dword [ebp + 0x14]
lea eax, [ebp - 0x58]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jl 0x7dd84cae
cmp dword [ebp + 0x10], edi
je 0x7dd84a05
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x7dd84cae
lea eax, [ebp - 0x50]
mov dword [ebp + 0x10], eax
mov edi, dword [ebp + 0x1c]
mov eax, dword [edi + 8]
test eax, eax
je 0x7ddaf062
push eax
lea eax, [ebp - 0x40]
push eax
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x7dd84cae
mov eax, dword [edi + 4]
test eax, eax
jne 0x7ddaf072
push 0x7dd759f8
lea eax, [ebp - 0x38]
push eax
call esi
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x2c], eax
mov ax, word [edi + 0x32]
mov word [ebp - 0x30], ax
mov word [ebp - 0x2e], ax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x7dd8b456
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x7dd84cae
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateProcessParametersEx]
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x7dd84cae
and dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x50], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x54], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x60], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x64], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x68], eax
movzx eax, word [edi + 0x30]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], eax
mov eax, 0x700
test dword [edi + 0x2c], eax
je 0x7dd84c2f
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], ecx
mov ecx, dword [edi + 0x3c]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [edi + 0x40]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp + 0x20]
test dl, 8
jne 0x7dd95d91
test dl, 0x10
jne 0x7dd89bc3
test edx, 0x8000000
jne 0x7dd8b175
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 0x10]
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x2c], eax
je 0x7dd852af
test edx, 0x200
jne 0x7ddaf089
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 8]
and ecx, 0x100
or dword [eax + 8], ecx
test edx, 0x10000000
jne 0x7ddaf09e
test edx, 0x20000000
jne 0x7ddaf0aa
test edx, 0x40000000
jne 0x7ddaf0b6
mov dword [ebp - 4], 0xfffffffe
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x7dd84cc0
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call sub.KERNELBASE.dll_BaseReleaseProcessDllPath
cmp dword [ebp + 0xc], esi
jl 0x7ddaf0de
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x20
xor esi, esi
cmp dword [ebp + 0x24], esi
je 0x7dd9c1b0
mov eax, dword [ebx + 0x10]
test dword [eax + 0x68], 0x200
jne 0x7dd9c1b0
mov ecx, 0x10000003
mov eax, dword [eax + 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
cmp dword [ebp + 0x24], esi
je 0x7dd9c1cb
mov eax, dword [ebx + 0x10]
test dword [eax + 0x68], 0x400
jne 0x7dd9c1cb
mov eax, dword [eax + 0x1c]
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x1c], eax
cmp dword [ebp + 0x24], esi
je 0x7dd9c1e1
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x20], eax
jmp 0x7dd84c65
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0xfffffffe
jmp 0x7dd84c65
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0xfffffffd
jmp 0x7dd84c65
push eax
jmp 0x7dd84b6a
mov eax, dword [ebp - 0x1c]
or dword [eax + 0x10], 0xffffffff
jmp 0x7dd84c65
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + 0x18]
mov ecx, 0x10000003
and edi, ecx
cmp edi, 3
jne 0x7dd852d8
jmp 0x7dd852cf
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + 0x1c]
and edi, ecx
cmp edi, 3
jne 0x7dd852fa
jmp 0x7dd852f1
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x20]
and eax, ecx
cmp eax, 3
jne 0x7dd84c65
jmp 0x7dd85303
mov dword [ebp + 0xc], 0xc0000017
jmp 0x7dd84cae
push 0x7dd759f8
lea eax, [ebp - 0x40]
push eax
call esi
jmp 0x7dd84b34
push eax
lea eax, [ebp - 0x38]
push eax
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x7dd84b4a
jmp 0x7dd84cae
test dl, 0x10
jne 0x7dd84c71
mov eax, dword [ebp - 0x1c]
or dword [eax + 0x14], 1
jmp 0x7dd84c71
mov eax, dword [ebp - 0x1c]
or dword [eax + 8], 2
jmp 0x7dd84c8f
mov eax, dword [ebp - 0x1c]
or dword [eax + 8], 4
jmp 0x7dd84c9b
mov eax, dword [ebp - 0x1c]
or dword [eax + 8], 8
jmp 0x7dd84ca7
cmp dword [ebp - 0x1c], esi
je 0x7ddaf0ec
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_RtlDestroyProcessParameters]
push dword [ebp + 0xc]
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd84ccc