Function at 0x10097d60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10149168
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x1019a128]
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
mov eax, ecx
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0x8c], 0
lea edx, [ebp - 0x9c]
push dword [ebp - 0x8c]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0x1019ab88
call fcn.1001d8e0
add esp, 4
lea edx, [ebp - 0x88]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.10097cd0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.10002400
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
cmp eax, dword [0x1019ab8c]
jne 0x1009824c
cmp dword [ebp - 0x88], 0
jne 0x1009824c
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x90]
push eax
xor edi, edi
mov dword [ebp - 0x90], 0
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 1
lea eax, [ebp - 0x80]
mov dword [ebp - 0x94], 0
xor bl, bl
mov dword [ebp - 0x98], 0
push eax
mov byte [ebp - 0xa9], bl
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x80], edi
mov word [ebp - 0x7c], 0x100
call esi
test eax, eax
jne 0x10097ecd
push 0x1016f5ec
lea edx, [edi + 4]
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
cmp byte [esi + 0x48], bl
je 0x10097ea9
mov edx, str.AllocateAndInitializeSid_SECURITY_WORLD_RID_error
mov ecx, esi
call fcn.10020800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x10097ebd
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x170]
call fcn.1000ad70
jmp 0x10098201
push 0x60
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.10117ff0
mov eax, dword [ebp - 0x90]
add esp, 0xc
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x70], SysStringLen
mov dword [ebp - 0x6c], 2
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], 3
push eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 5
mov dword [ebp - 0x78], edi
mov word [ebp - 0x74], 0x500
call esi
test eax, eax
jne 0x10097f67
push 0x1016f5ec
lea edx, [eax + 4]
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
cmp byte [esi + 0x48], 0
je 0x10097ea9
mov edx, str.AllocateAndInitializeSid_DOMAIN_ALIAS_RID_ADMINS_error
jmp 0x10097ea2
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x78]
mov dword [ebp - 0x50], 0x10000000
push eax
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 2
call esi
test eax, eax
jne 0x10097fe5
push 0x1016f5ec
lea edx, [eax + 4]
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 3
cmp byte [esi + 0x48], 0
je 0x10097ea9
mov edx, str.AllocateAndInitializeSid_SECURITY_LOCAL_SYSTEM_RID_error
jmp 0x10097ea2
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x8c]
push eax
push 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], 0x10000000
push eax
push 3
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, eax
test ebx, ebx
je 0x10098081
push 0x1016f5ec
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov al, byte [esi + 0x48]
test al, al
je 0x1009806b
mov edx, str.SetEntriesInAcl_error
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x1009806b
push ebx
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x170]
call fcn.1000ad70
mov bl, byte [ebp - 0xa9]
jmp 0x10098201
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x100980d1
push 0x1016f5ec
lea edx, [eax + 4]
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 5
cmp byte [esi + 0x48], 0
je 0x100980c2
mov edx, str.LocalAlloc_error
mov ecx, esi
call fcn.10020800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x1009806b
push eax
jmp 0x10098064
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1009810a
push 0x1016f5ec
lea edx, [eax + 4]
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 6
cmp byte [esi + 0x48], 0
je 0x100980c2
mov edx, str.InitializeSecurityDescriptor_error
jmp 0x100980bb
push 0
push dword [ebp - 0x8c]
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x10098152
push 0x1016f5ec
lea edx, [eax + 4]
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 7
cmp byte [esi + 0x48], 0
je 0x100980c2
mov edx, str.SetSecurityDescriptorDacl_error
jmp 0x100980bb
mov ebx, dword [ebp - 0xb0]
lea eax, [ebp - 0xa8]
push eax
push ebx
mov dword [ebp - 0xa8], 0xc
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100981ff
push 0x1016f5ec
lea edx, [eax + 4]
lea ecx, [ebp - 0x218]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 8
cmp byte [esi + 0x48], 0
je 0x100981b5
mov edx, str.CreateDirectory_error
mov ecx, esi
call fcn.10020800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [esi + 0x48]
test cl, cl
je 0x100981ec
push eax
mov ecx, esi
call fcn.100201d0
mov cl, byte [esi + 0x48]
test cl, cl
je 0x100981ec
mov edx, str._path
mov ecx, esi
call fcn.10020800
cmp byte [esi + 0x48], 0
je 0x100981ec
mov edx, ebx
mov ecx, esi
call fcn.100205a0
lea ecx, [ebp - 0x218]
call fcn.1000ad70
mov bl, byte [ebp - 0xa9]
jmp 0x10098201
mov bl, 1
mov eax, dword [ebp - 0x90]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x10098214
push eax
call esi
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x10098221
push eax
call esi
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x1009822e
push eax
call esi
mov eax, dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x10098241
push eax
call esi
test edi, edi
je 0x10098248
push edi
call esi
mov al, bl
jmp 0x1009824e
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 - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret