Function at 0x140008de0
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rbp + 0x80], 0xfffffffffffffffe
call fcn.14001a740
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008eb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140008eb4
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x5c], 0xaf
lea rax, [0x14135b488]
mov qword [rbp - 0x58], rax
lea rax, [0x14135b5a0]
mov qword [rbp - 0x50], rax
lea rax, [0x1414a15d8]
mov qword [rbp - 0x48], rax
lea rdx, [rbp + 0xc8]
lea rcx, [rbp - 0x60]
call fcn.14000ecb0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, [0x14135b5e0]
mov rcx, rbx
call fcn.1400016b0
mov rbx, rax
mov edx, edi
mov rcx, qword [rax]
call fcn.140023910
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x140008ea1
mov dl, 0x20
call fcn.140023590
nop
lea rcx, [rbp + 0xc8]
call fcn.140003bd0
xor al, al
jmp 0x140009254
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140008f7e
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x1c], 0xb7
lea rax, [0x14135b488]
mov qword [rbp - 0x18], rax
lea rax, [0x14135b5a0]
mov qword [rbp - 0x10], rax
lea rax, [0x1414a15d8]
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x20]
call fcn.14000ecb0
mov rdi, rax
or r8d, 0xffffffff
lea rdx, [0x14135b600]
lea rcx, [rbp + 0xc0]
call fcn.1400015b0
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.140023510
nop
mov rcx, qword [rbp + 0xc0]
mov eax, dword [rcx]
test eax, eax
je 0x140008f4f
cmp eax, 0xffffffff
je 0x140008f5d
lock dec dword [rcx]
jne 0x140008f5d
mov rcx, qword [rbp + 0xc0]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140008f6e
mov dl, 0x20
call fcn.140023590
nop
lea rcx, [rbp - 0x68]
call fcn.140003bd0
xor al, al
jmp 0x140009254
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140008ff6
mov dword [rbp + 0x60], 1
mov dword [rbp + 0x64], 0xbc
lea rax, [0x14135b488]
mov qword [rbp + 0x68], rax
lea rax, [0x14135b5a0]
mov qword [rbp + 0x70], rax
lea rax, [0x1414a15d8]
mov qword [rbp + 0x78], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x60]
call fcn.14000ecb0
nop
lea rdx, [0x14135b628]
mov rcx, rax
call fcn.1400016b0
nop
lea rcx, [rbp - 0x70]
call fcn.140003bd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x140009254
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0x10000000
mov dword [rsp + 0x44], 3
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x60], 5
lea rax, [0x14135b658]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0xb8], 0
lea r9, [rbp + 0xb8]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea ecx, [r8 + 1]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x1400090c8
mov dword [rbp + 0x20], 1
mov dword [rbp + 0x24], 0xcd
lea rax, [0x14135b488]
mov qword [rbp + 0x28], rax
lea rax, [0x14135b5a0]
mov qword [rbp + 0x30], rax
lea rax, [0x1414a15d8]
mov qword [rbp + 0x38], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.14000ecb0
nop
lea rdx, [0x14135b670]
mov rcx, rax
call fcn.1400016b0
nop
lea rcx, [rbp - 0x80]
jmp 0x140008fe1
xor r9d, r9d
mov r8, qword [rbp + 0xb8]
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x14000914d
mov dword [rbp - 0x40], 1
mov dword [rbp - 0x3c], 0xd3
lea rax, [0x14135b488]
mov qword [rbp - 0x38], rax
lea rax, [0x14135b5a0]
mov qword [rbp - 0x30], rax
lea rax, [0x1414a15d8]
mov qword [rbp - 0x28], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.14000ecb0
nop
lea rdx, [0x14135b690]
mov rcx, rax
call fcn.1400016b0
nop
lea rcx, [rsp + 0x70]
call fcn.140003bd0
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008fe6
mov qword [rsp + 0x30], 0
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
lea rax, [0x14135b488]
je 0x1400091ed
mov dword [rbp], 1
mov dword [rbp + 4], 0xdb
mov qword [rbp + 8], rax
lea rax, [0x14135b5a0]
mov qword [rbp + 0x10], rax
lea rax, [0x1414a15d8]
mov qword [rbp + 0x18], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp]
call fcn.14000ecb0
nop
lea rdx, [0x14135b6c0]
mov rcx, rax
call fcn.1400016b0
nop
lea rcx, [rsp + 0x78]
call fcn.140003bd0
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008fe6
mov dword [rbp + 0x40], 1
mov dword [rbp + 0x44], 0xe1
mov qword [rbp + 0x48], rax
lea rax, [0x14135b5a0]
mov qword [rbp + 0x50], rax
lea rax, [0x1414a15d8]
mov qword [rbp + 0x58], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x40]
call fcn.14000ecb0
nop
lea rdx, [0x14135b6f0]
mov rcx, rax
call fcn.1400016b0
nop
lea rcx, [rbp - 0x78]
call fcn.140003bd0
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
add rsp, 0x190
pop rdi
pop rbx
pop rbp
ret