Function at 0x457040
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549900
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x8870bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x8891a4], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jle 0x45737e
mov eax, dword [0x8891a8]
cmp eax, 0xfffffffe
jle 0x45708d
call fcn.004584e0
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00454300
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x70], 0
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push eax
lea eax, [ebp - 0x70]
push eax
push 7
push 1
lea ecx, [ebp - 0x58]
call fcn.0040bc30
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
or edi, 0xffffffff
test eax, eax
jne 0x45734b
test dword [ebp + 0x10], 0x700
mov ebx, dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
je 0x457253
cmp dword [0x8891dc], eax
je 0x457210
or dword [esi], 0x700
lea eax, [ebp - 0x20]
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 dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0x14
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [0x8891dc]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x457171
cmp dword [ebp - 0x4c], 0
je 0x457171
or dword [esi + 4], 0x400
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x40000000
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [0x8891dc]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x4571c4
cmp dword [ebp - 0x4c], 0
je 0x4571c4
or dword [esi + 4], 0x200
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x20000000
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [0x8891dc]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x457253
cmp dword [ebp - 0x4c], 0
jmp 0x45724a
or dword [esi], 0x700
lea eax, [ebp - 0x38]
push eax
push 0x8891ac
push dword [ebp - 0x50]
call ebx
mov ecx, dword [ebp - 0x38]
test eax, eax
cmovne ecx, edi
mov dword [ebp - 0x38], ecx
test cl, 1
je 0x45723b
or dword [esi + 4], 0x400
test cl, 2
je 0x457247
or dword [esi + 4], 0x200
test cl, 0x20
je 0x457253
or dword [esi + 4], 0x100
test dword [ebp + 0x10], 0x7000
mov eax, dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
je 0x4572b7
push dword [ebp - 0x70]
or dword [esi], 0x7000
lea ecx, [ebp - 0x88]
push ecx
call eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x50]
call ebx
mov ecx, dword [ebp - 0x38]
test eax, eax
cmovne ecx, edi
mov dword [ebp - 0x38], ecx
test cl, 1
je 0x45729a
or dword [esi + 4], 0x4000
test cl, 2
je 0x4572a6
or dword [esi + 4], 0x2000
mov eax, dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
test cl, 0x20
je 0x4572b7
or dword [esi + 4], 0x1000
test byte [ebp + 0x10], 0x70
je 0x457302
push dword [ebp - 0x74]
or dword [esi], 0x70
lea ecx, [ebp - 0x88]
push ecx
call eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x50]
call ebx
mov ecx, dword [ebp - 0x38]
test eax, eax
cmovne ecx, edi
mov dword [ebp - 0x38], ecx
test cl, 1
je 0x4572f0
or dword [esi + 4], 0x40
test cl, 2
je 0x4572f9
or dword [esi + 4], 0x20
test cl, 0x20
je 0x457302
or dword [esi + 4], 0x10
test byte [ebp + 0x10], 7
je 0x457342
or dword [esi], 7
lea eax, [ebp - 0x38]
push eax
push 0x8891c0
push dword [ebp - 0x50]
call ebx
mov ecx, dword [ebp - 0x38]
test eax, eax
cmovne ecx, edi
mov dword [ebp - 0x38], ecx
test cl, 1
je 0x45732d
or dword [esi + 4], 4
test cl, 2
je 0x457336
or dword [esi + 4], 2
test cl, 0x20
je 0x457342
or dword [esi + 4], 0x1000
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
test eax, eax
je 0x457372
cmp eax, 0xffffffff
je 0x4575ba
mov eax, dword [ebp - 0x58]
lock xadd dword [eax], edi
cmp edi, 1
setne al
test al, al
jne 0x4575ba
push 4
push 2
push dword [ebp - 0x58]
jmp 0x4575b2
mov eax, dword [esi + 4]
or eax, 0x4044
mov dword [esi + 4], eax
test byte [esi + 0x10], 1
jne 0x457397
or eax, 0x2022
mov dword [esi + 4], eax
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00453e50
push 4
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040a5e0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0040b1b0
add esp, 8
mov eax, dword [ebp - 0x60]
or edi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4573ef
cmp eax, edi
je 0x4573fe
mov eax, dword [ebp - 0x60]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4573fe
push 4
push 2
push dword [ebp - 0x60]
call fcn.004016c0
add esp, 0xc
test dword [esi + 4], 0x40000
jne 0x457466
push str..exe
push 4
lea ecx, [ebp - 0x40]
call fcn.00403bb0
test al, al
jne 0x457466
push str..com
push 4
lea ecx, [ebp - 0x40]
call fcn.00403bb0
test al, al
jne 0x457466
push str..bat
push 4
lea ecx, [ebp - 0x40]
call fcn.00403bb0
test al, al
jne 0x457466
push str..pif
push 4
lea ecx, [ebp - 0x40]
call fcn.00403bb0
test al, al
jne 0x457466
push str..cmd
push 4
lea ecx, [ebp - 0x40]
call fcn.00403bb0
test al, al
je 0x45746d
or dword [esi + 4], 0x1111
or dword [esi], 0x7177
mov eax, dword [ebp + 0x10]
test eax, 0x400
je 0x4574ee
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.00454300
push 4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040bc30
push eax
call fcn.0052ecf4
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
mov eax, dword [ebp - 0x64]
sete byte [ebp - 0x41]
mov eax, dword [eax]
test eax, eax
je 0x4574c9
cmp eax, 0xffffffff
je 0x4574d8
mov eax, dword [ebp - 0x64]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4574d8
push 4
push 2
push dword [ebp - 0x64]
call fcn.004016c0
add esp, 0xc
cmp byte [ebp - 0x41], 0
je 0x4574e5
or dword [esi + 4], 0x400
or dword [esi], 0x400
mov eax, dword [ebp + 0x10]
test eax, 0x200
je 0x45755c
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.00454300
push 2
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040bc30
push eax
call fcn.0052ecf4
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x68]
sete bl
mov eax, dword [eax]
test eax, eax
je 0x45753c
cmp eax, 0xffffffff
je 0x45754b
mov eax, dword [ebp - 0x68]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x45754b
push 4
push 2
push dword [ebp - 0x68]
call fcn.004016c0
add esp, 0xc
test bl, bl
je 0x457556
or dword [esi + 4], 0x200
or dword [esi], 0x200
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
test eax, eax
je 0x45757d
cmp eax, 0xffffffff
je 0x45758c
mov eax, dword [ebp - 0x40]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x45758c
push 4
push 2
push dword [ebp - 0x40]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
test eax, eax
je 0x4575ab
cmp eax, 0xffffffff
je 0x4575ba
mov eax, dword [ebp - 0x5c]
lock xadd dword [eax], edi
cmp edi, 1
setne al
test al, al
jne 0x4575ba
push 4
push 2
push dword [ebp - 0x5c]
call fcn.004016c0
add esp, 0xc
mov ecx, dword [esi]
and ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x10]
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520afb
mov esp, ebp
pop ebp
ret