Function at 0x14000a040
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rbp + 0xa8], rax
call fcn.140022410
mov rsi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a160
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000a160
mov qword [rbp - 0x78], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea rax, [0x1402dd7d0]
mov qword [rbp - 0x60], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.140010470
mov rdi, rax
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, str.Failed_to_create_directory:
lea rcx, [rsp + 0x40]
call fcn.140004090
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002b170
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14000a110
cmp eax, ebx
je 0x14000a11e
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14000a11e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000a12e
mov dl, 0x20
call fcn.14002b1f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rdi]
call fcn.14002b3d0
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000a14f
mov dl, 0x20
call fcn.14002b1f0
nop
lea rcx, [rsp + 0x50]
call fcn.140023bb0
xor al, al
jmp 0x14000a471
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14000a217
mov qword [rbp - 0x58], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
lea rax, [0x1402dd7d0]
mov qword [rbp - 0x40], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x58]
call fcn.140010470
mov rdi, rax
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, str.Failed_to_allocate_security_descriptor.
lea rcx, [rsp + 0x48]
call fcn.140004090
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002b170
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x14000a1e7
cmp eax, ebx
je 0x14000a1f5
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14000a1f5
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000a206
mov dl, 0x20
call fcn.14002b1f0
nop
lea rcx, [rsp + 0x58]
call fcn.140023bb0
xor al, al
jmp 0x14000a471
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14000a27d
mov qword [rbp - 0x38], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
lea rax, [0x1402dd7d0]
mov qword [rbp - 0x20], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x38]
call fcn.140010470
nop
lea rdx, str.Failed_to_initialize_security_descriptor.
mov rcx, rax
call fcn.140004150
nop
lea rcx, [rsp + 0x60]
call fcn.140023bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x14000a471
xor eax, eax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x78], 0x10000000
mov dword [rbp + 0x7c], 3
mov dword [rbp + 0x80], 3
mov dword [rbp + 0x94], 1
mov dword [rbp + 0x98], 5
lea rax, str.EVERYONE
mov qword [rbp + 0xa0], rax
xor ebx, ebx
mov qword [rbp + 0x70], rbx
lea r9, [rbp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x78]
lea ecx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x14000a33b
mov qword [rbp - 0x18], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea rax, [0x1402dd7d0]
mov qword [rbp], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call fcn.140010470
nop
lea rdx, str.Failed_to_set_entries_in_ACL.
mov rcx, rax
call fcn.140004150
nop
lea rcx, [rsp + 0x68]
jmp 0x14000a268
xor r9d, r9d
mov r8, qword [rbp + 0x70]
lea edx, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x14000a3a6
mov qword [rbp + 8], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
lea rax, [0x1402dd7d0]
mov qword [rbp + 0x20], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.140010470
nop
lea rdx, str.Failed_to_set_DACL_in_security_descriptor.
mov rcx, rax
call fcn.140004150
nop
lea rcx, [rsp + 0x70]
call fcn.140023bb0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000a26d
mov qword [rsp + 0x30], rbx
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
xorps xmm0, xmm0
test eax, eax
lea rax, [0x1402dd7d0]
je 0x14000a424
mov qword [rbp + 0x28], 2
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x28]
call fcn.140010470
nop
lea rdx, str.Failed_to_apply_security_info_to_folder.
mov rcx, rax
call fcn.140004150
nop
lea rcx, [rsp + 0x78]
call fcn.140023bb0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000a26d
mov qword [rbp + 0x48], 2
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x48]
call fcn.140010470
nop
lea rdx, str.Folder_permissions_set_successfully.
mov rcx, rax
call fcn.140004150
nop
lea rcx, [rbp - 0x80]
call fcn.140023bb0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.14010b650
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret