Function at 0x670daa01
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x78
mov eax, 0x671b18d1
call fcn.671a2eb3
cmp dword [0x67447f58], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], esi
jle 0x670daced
mov eax, dword [0x67447f5c]
cmp eax, 0xfffffffe
jle 0x670daa32
call fcn.670db4ad
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.670c1b4c
xor ecx, ecx
lea eax, [ebp - 0x50]
push eax
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], ecx
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
push eax
xor ebx, ebx
lea ecx, [ebp - 0x54]
push 7
inc ebx
push ebx
call fcn.6706f35e
push eax
call dword [0x671bd020]
test eax, eax
jne 0x670dace5
mov eax, 0x700
or esi, 0xffffffff
test dword [ebp + 0x10], eax
je 0x670dabe0
cmp dword [0x67447f90], 0
je 0x670dab9e
or dword [edi], eax
lea eax, [ebp - 0x20]
mov esi, dword [0x671bd02c]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0x120089
push eax
mov dword [ebp - 0x1c], 0x120116
mov dword [ebp - 0x18], 0x1200a0
mov dword [ebp - 0x14], 0x1f01ff
mov dword [ebp - 0x3c], 0x80000000
call esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0x14
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [0x67447f90]
push dword [ebp - 0x50]
call dword [0x671bd074]
test eax, eax
je 0x670dab07
cmp dword [ebp - 0x48], 0
je 0x670dab07
or dword [edi + 4], 0x400
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x40000000
push eax
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [0x67447f90]
push dword [ebp - 0x50]
call dword [0x671bd074]
test eax, eax
je 0x670dab56
cmp dword [ebp - 0x48], 0
je 0x670dab56
or dword [edi + 4], 0x200
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x20000000
push eax
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [0x67447f90]
push dword [ebp - 0x50]
call dword [0x671bd074]
test eax, eax
je 0x670dabe0
cmp dword [ebp - 0x48], 0
jmp 0x670dabd7
or dword [edi], eax
lea eax, [ebp - 0x38]
push eax
push 0x67447f60
push dword [ebp - 0x4c]
call dword [0x671bd024]
mov ecx, dword [ebp - 0x38]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 0x38], ecx
test bl, cl
je 0x670dabc8
or dword [edi + 4], 0x400
test cl, 2
je 0x670dabd4
or dword [edi + 4], 0x200
test cl, 0x20
je 0x670dabe0
or dword [edi + 4], 0x100
mov esi, dword [0x671bd01c]
mov eax, 0x7000
test dword [ebp + 0x10], eax
je 0x670dac43
or dword [edi], eax
lea eax, [ebp - 0x84]
push dword [ebp - 0x5c]
push eax
call esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x4c]
call dword [0x671bd024]
mov ecx, dword [ebp - 0x38]
test eax, eax
push 0xffffffffffffffff
pop eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test bl, cl
je 0x670dac2b
or dword [edi + 4], 0x4000
test cl, 2
je 0x670dac37
or dword [edi + 4], 0x2000
test cl, 0x20
je 0x670dac43
or dword [edi + 4], 0x1000
test byte [ebp + 0x10], 0x70
je 0x670dac96
push dword [ebp - 0x60]
or dword [edi], 0x70
lea eax, [ebp - 0x84]
push eax
call esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x4c]
call dword [0x671bd024]
mov ecx, dword [ebp - 0x38]
test eax, eax
push 0xffffffffffffffff
pop esi
cmovne ecx, esi
mov dword [ebp - 0x38], ecx
test bl, cl
je 0x670dac82
or dword [edi + 4], 0x40
test cl, 2
je 0x670dac8b
or dword [edi + 4], 0x20
test cl, 0x20
je 0x670dac99
or dword [edi + 4], 0x10
jmp 0x670dac99
or esi, 0xffffffff
test byte [ebp + 0x10], 7
je 0x670dacdc
or dword [edi], 7
lea eax, [ebp - 0x38]
push eax
push 0x67447f74
push dword [ebp - 0x4c]
call dword [0x671bd024]
mov ecx, dword [ebp - 0x38]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 0x38], ecx
test bl, cl
je 0x670dacc7
or dword [edi + 4], 4
test cl, 2
je 0x670dacd0
or dword [edi + 4], 2
test cl, 0x20
je 0x670dacdc
or dword [edi + 4], 0x1000
push dword [ebp - 0x50]
call dword [0x671bd234]
lea ecx, [ebp - 0x54]
jmp 0x670dae78
mov eax, dword [edi + 4]
xor ebx, ebx
or eax, 0x4044
inc ebx
mov dword [edi + 4], eax
test byte [edi + 0x10], bl
jne 0x670dad08
or eax, 0x2022
mov dword [edi + 4], eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.670c171e
push 4
lea eax, [ebp - 0x68]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x64]
call fcn.6706d784
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.6706e99e
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call sym.Ordinal_855
test dword [edi + 4], 0x40000
jne 0x670dadcf
mov ebx, str..exe
push ebx
call fcn.671a4dda
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x40]
call sym.Ordinal_1429
test al, al
jne 0x670dadcf
mov ebx, str..com
push ebx
call fcn.671a4dda
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x40]
call sym.Ordinal_1429
test al, al
jne 0x670dadcf
mov ebx, str..bat
push ebx
call fcn.671a4dda
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x40]
call sym.Ordinal_1429
test al, al
jne 0x670dadcf
mov ebx, str..pif
push ebx
call fcn.671a4dda
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x40]
call sym.Ordinal_1429
test al, al
jne 0x670dadcf
mov ebx, str..cmd
push ebx
call fcn.671a4dda
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x40]
call sym.Ordinal_1429
test al, al
je 0x670dadd6
or dword [edi + 4], 0x1111
or dword [edi], 0x7177
mov eax, dword [ebp + 0x10]
mov ebx, dword [0x671bd438]
test eax, 0x400
je 0x670dae2e
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.670c1b4c
push 4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.6706f35e
push eax
call ebx
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
mov esi, eax
call sym.Ordinal_855
test esi, esi
jne 0x670dae22
or dword [edi + 4], 0x400
or dword [edi], 0x400
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x54]
test eax, 0x200
je 0x670dae6d
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.670c1b4c
push 2
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.6706f35e
push eax
call ebx
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov esi, eax
call sym.Ordinal_855
test esi, esi
jne 0x670dae67
or dword [edi + 4], 0x200
or dword [edi], 0x200
lea ecx, [ebp - 0x40]
call sym.Ordinal_855
lea ecx, [ebp - 0x64]
call sym.Ordinal_855
mov eax, dword [edi]
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x10]
sete al
call fcn.671a2e6e
ret