Function at 0x1008fa30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8888
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1025f074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
xor eax, eax
push 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push str.Advapi32.dll
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.10008490
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
call fcn.10091a30
mov ecx, eax
call fcn.10091af0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x1008faf8
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008faee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fd62
push edx
push ecx
call fcn.101b37a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
test ebx, ebx
je 0x1008fc87
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddAce
push ebx
call esi
push str.InitializeSecurityDescriptor
push ebx
mov dword [ebp - 0x38], eax
call esi
push str.AllocateAndInitializeSid
push ebx
mov dword [ebp - 0x3c], eax
call esi
push str.InitializeAcl
push ebx
mov dword [ebp - 0x44], eax
call esi
push str.FreeSid
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.GetLengthSid
push ebx
mov edi, eax
call esi
push str.SetSecurityDescriptorDacl
push ebx
mov dword [ebp - 0x2c], eax
call esi
cmp dword [ebp - 0x38], 0
mov ecx, eax
mov dword [ebp - 0x48], ecx
je 0x1008fc87
cmp dword [ebp - 0x3c], 0
je 0x1008fc87
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1008fc87
cmp dword [ebp - 0x24], 0
je 0x1008fc87
test edi, edi
je 0x1008fc87
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1008fc87
test ecx, ecx
je 0x1008fc87
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
mov word [ebp - 0x18], 0x500
call eax
test eax, eax
je 0x1008fc87
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x20]
mov esi, eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x18
add esi, eax
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
test eax, eax
je 0x1008fc7d
push 2
push esi
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x1008fc7d
push dword [ebp - 0x30]
call dword [ebp - 0x2c]
lea esi, [eax + 8]
push esi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [eax + 4], 0xf003f
mov word [eax], 0x300
mov word [eax + 2], si
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
push eax
push dword [ebp - 0x30]
add ecx, 8
push ecx
call fcn.101b5ac0
mov eax, dword [ebp - 0x34]
add esp, 0xc
push esi
mov esi, dword [ebp - 0x24]
push esi
push 0xffffffffffffffff
push 2
push dword [eax]
call dword [ebp - 0x38]
push esi
push 0
test eax, eax
jne 0x1008fca7
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1008fc87
push eax
call edi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 0xc
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
call dword [ebp - 0x2c]
lea esi, [eax + 8]
push esi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x24], eax
mov dword [eax + 4], 0xf003f
mov word [eax], 0x300
mov word [eax + 2], si
push dword [ebp - 0x20]
call dword [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
call fcn.101b5ac0
mov eax, dword [ebp - 0x34]
add esp, 0xc
push esi
mov esi, dword [ebp - 0x24]
push esi
push 0xffffffffffffffff
push 2
push dword [eax]
call dword [ebp - 0x38]
test eax, eax
jne 0x1008fd18
push esi
push 0
call ebx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
jmp 0x1008fc7d
push 1
push dword [ebp - 0x40]
call dword [ebp - 0x3c]
test eax, eax
je 0x1008fd06
mov eax, dword [ebp - 0x34]
push 0
mov byte [ebp - 0x25], 1
push dword [eax]
push 1
push dword [ebp - 0x40]
call dword [ebp - 0x48]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
and bl, byte [ebp - 0x25]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1008fd5b
push eax
call edi
mov al, bl
jmp 0x1008fc89
call fcn.101b7ad8
int3