Function at 0x1003cb7
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x58
push 0x10059b0
call fcn.010054c4
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1003aad
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.01002c2d
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, ebx
jne 0x1003afd
push dword [ebp + 0x10]
push 8
push ebx
call fcn.01001b8a
mov dword [ebp - 0x1c], eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100725c
call fcn.01005564
add esp, 0xc
mov eax, dword [ebp - 0x1c]
call fcn.01005509
ret 0x18
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1003b00
sub eax, edx
sar eax, 1
jne 0x1003b27
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100725c
call fcn.01005564
add esp, 0xc
xor eax, eax
jmp 0x1003af5
push dword [ebp + 8]
call fcn.01002c2d
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x1003ad1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1003b3b
sub eax, edx
sar eax, 1
lea esi, [eax + edi]
lea esi, [esi + esi + 4]
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1003b8e
push 8
pop esi
mov dword [ebp - 0x1c], esi
push esi
push dword [reloc.msvcrt.dll__amsg_exit]
push dword [ebp + 0x14]
call fcn.01001a91
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100725c
call fcn.01005564
add esp, 0x18
mov eax, esi
jmp 0x1003af5
mov dword [ebp + 8], esi
shr dword [ebp + 8], 1
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push eax
call fcn.01005558
add esp, 0xc
cmp edi, ebx
je 0x1003be4
movzx eax, word [esi + edi*2 - 2]
cmp ax, 0x3a
je 0x1003be4
cmp ax, 0x2f
je 0x1003be4
cmp ax, 0x5c
je 0x1003be4
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
cmp ax, 0x2f
je 0x1003be4
cmp ax, 0x5c
je 0x1003be4
push 0x1001640
push dword [ebp + 8]
push dword [ebp - 0x20]
call fcn.0100554c
add esp, 0xc
push dword [ebp - 0x30]
push dword [ebp + 8]
push dword [ebp - 0x20]
call fcn.0100554c
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003c15
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x14]
jmp 0x1003ad7
mov dword [ebp - 0x24], ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x34]
call fcn.010051ea
test eax, eax
jne 0x1003c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [reloc.msvcrt.dll__amsg_exit]
push dword [ebp + 0x14]
call fcn.01001a91
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100725c
call fcn.01005564
add esp, 0x18
jmp 0x1003af2
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x1003c2b
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x1003c2b
cmp dword [ebp - 0x28], ebx
je 0x1003b10
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x1003c2b
push 8
pop esi
mov dword [ebp + 8], esi
mov edi, dword [ebp - 0x28]
add edi, esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 4]
cmp dword [ebp - 0x3c], eax
jge 0x1003d35
lea eax, [edi + 8]
mov dword [ebp + 0x10], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x18]
cmp eax, dword [ecx]
jge 0x1003d0c
mov esi, eax
shl esi, 2
push dword [esi + ecx + 4]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1003d2d
mov eax, dword [ebp + 0x1c]
mov eax, dword [esi + eax + 4]
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 8]
mov dword [ebp + 8], eax
inc dword [ebp - 0x3c]
movzx eax, word [edi + 2]
add edi, eax
push 8
pop esi
jmp 0x1003ccb
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
jmp 0x1003ce5
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x1003b62
push 2
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x1003c2b
mov edi, dword [ebp - 0x28]
add edi, 8
mov dword [ebp - 0x44], ebx
mov esi, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 4]
cmp dword [ebp - 0x44], eax
jge 0x1003e74
mov dword [ebp + 0x10], ebx
xor eax, eax
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x18]
cmp eax, dword [ecx]
jge 0x1003db2
mov ebx, eax
shl ebx, 2
push dword [ebx + ecx + 4]
lea eax, [edi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1003dda
mov eax, dword [ebp + 0x1c]
mov eax, dword [ebx + eax + 4]
mov dword [ebp + 0x10], eax
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x1003de4
movzx eax, word [edi + 2]
push eax
push edi
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x1003e66
jmp 0x1003c34
inc dword [ebp - 0x40]
xor ebx, ebx
mov eax, dword [ebp - 0x40]
jmp 0x1003d88
mov dword [ebp + 8], ebx
push dword [edi + 4]
push ebx
push dword [ebp + 0x10]
movzx eax, byte [edi]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01001d2e
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1003e08
push eax
jmp 0x1003c37
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x1003e5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push eax
push dword [reloc.msvcrt.dll__amsg_exit]
push dword [ebp + 0x14]
call fcn.01001a91
push dword [ebp + 8]
call esi
mov dword [ebp + 8], ebx
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100725c
call fcn.01005564
add esp, 0x1c
jmp 0x1003af2
push dword [ebp + 8]
call esi
pop ecx
mov dword [ebp + 8], ebx
inc dword [ebp - 0x44]
movzx eax, word [edi + 2]
add edi, eax
jmp 0x1003d6d
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x4c]
push eax
push dword [ebp - 0x2c]
push ebx
push ebx
mov ecx, dword [ebp - 0x50]
and ecx, 0x1000
movzx ecx, cx
neg ecx
sbb ecx, ecx
and ecx, 0x60000000
add ecx, 0x20000000
neg eax
sbb eax, eax
and eax, 0x10
or ecx, eax
or ecx, 4
push ecx
push 1
push dword [ebp - 0x20]
call fcn.010023a1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
cmp eax, ebx
je 0x1003ed2
push eax
push dword [ebp + 0x14]
call fcn.01001b8a
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1003ee8
jmp 0x1003adf
push reloc.ADVAPI32.dll_LookupAccountNameW
push dword [_amsg_exit]
push dword [ebp + 0x14]
call fcn.01001a91
add esp, 0x10
mov dword [ebp - 4], reloc.KERNEL32.dll_GetModuleHandleA
call fcn.01003f01
jmp 0x1003af2