Function at 0x14000d2c8
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fd0]
mov eax, 0x30d0
call fcn.14002efc0
sub rsp, rax
mov rax, qword [0x1400592c0]
xor rax, rsp
mov qword [rbp + 0x2fc0], rax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x48], rcx
xor edi, edi
lea r15d, [rdi + 1]
cmp byte [0x140063d7e], dil
jne 0x14000c38f
lea rcx, str.SeRestorePrivilege
call fcn.14000d724
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000d724
mov byte [0x140063d7e], r15b
mov edx, 0x1418
lea rcx, [rsp + 0x58]
call fcn.1400011dc
nop
lea r13, [r14 + 0x111c]
mov r8d, 0x800
mov rdx, r13
lea rcx, [rbp + 0xfc0]
call fcn.14002170c
lea rax, [rbp + 0xfc0]
or r12, 0xffffffffffffffff
inc r12
cmp word [rax + r12*2], di
jne 0x14000c3c6
lea rsi, [rbp + 0x1fc0]
mov r8d, 4
lea rdx, str.___
lea rcx, [rbp + 0xfc0]
call fcn.140038040
test eax, eax
sete cl
mov byte [rsp + 0x40], cl
lea rdi, [rbp + 0xfc8]
test eax, eax
lea rax, [rbp + 0xfc0]
cmovne rdi, rax
test cl, cl
je 0x14000c445
mov r8d, 4
lea rdx, str.UNC_
mov rcx, rdi
call fcn.140038040
mov cl, byte [rsp + 0x40]
test eax, eax
jne 0x14000c445
mov eax, 0x5c
mov word [rbp + 0x1fc0], ax
lea rsi, [rbp + 0x1fc2]
add rdi, 6
sub rsi, rdi
mov r8d, 2
movzx eax, word [rdi]
mov word [rsi + rdi], ax
add rdi, r8
test ax, ax
jne 0x14000c44e
lea rax, [rbp + 0x1fc0]
or rsi, 0xffffffffffffffff
xor edi, edi
inc rsi
cmp word [rax + rsi*2], di
jne 0x14000c46a
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x71bb], dil
jne 0x14000c4e6
test cl, cl
jne 0x14000c4ac
mov rcx, r13
call fcn.140015f00
test al, al
jne 0x14000c4ac
lea rdx, [r14 + 0x28]
mov r9, r13
mov r8, rbx
mov r13, qword [rsp + 0x48]
mov rcx, r13
call fcn.14000d3b0
test al, al
jne 0x14000c4e9
mov r15b, dil
lea rcx, [rsp + 0x58]
call fcn.1400013d8
mov al, r15b
mov rcx, qword [rbp + 0x2fc0]
xor rcx, rsp
call fcn.14002f020
mov rbx, qword [rsp + 0x3128]
add rsp, 0x30d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13, rax
mov r8b, byte [r13 + 0x7157]
mov dl, r15b
mov rcx, rbx
call fcn.1400113f0
mov rcx, rbx
call fcn.140011674
test al, al
je 0x14000c529
mov rcx, rbx
call fcn.140011688
mov ecx, eax
call fcn.14001179c
mov rcx, rbx
test al, al
je 0x14000c524
call fcn.14001156c
jmp 0x14000c529
call fcn.1400115f0
cmp byte [r14 + 0x1101], dil
jne 0x14000c635
cmp byte [r14 + 0x211c], dil
jne 0x14000c635
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c583
mov rdx, rbx
lea rcx, [0x140063e70]
call fcn.14000bd24
jmp 0x14000c4ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [r14 + 0x1118]
mov ecx, 8
cmp eax, 3
jne 0x14000c66b
mov rdi, qword [rsp + 0x58]
mov dword [rdi], 0xa0000003
lea eax, [rsi + 6]
add ax, r12w
add ax, ax
mov word [rdi + 4], ax
xor r9d, r9d
mov dword [rdi + 6], r9d
movzx edx, r12w
add dx, dx
mov word [rdi + 0xa], dx
lea rcx, [rbp + 0xfc0]
lea rax, [rbp + 0xfc0]
mov r8, rdi
sub r8, rax
lea r10d, [r9 + 2]
movzx eax, word [rcx]
mov word [r8 + rcx + 0x10], ax
add rcx, r10
test ax, ax
jne 0x14000c5e4
add dx, r10w
mov word [rdi + 0xc], dx
add si, si
mov word [rdi + 0xe], si
lea rcx, [rbp + 0x1fc0]
lea rax, [r12*2 + 0x12]
lea rdx, [rbp + 0x1fc0]
sub rax, rdx
lea rdx, [rax + rdi]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
test ax, ax
jne 0x14000c621
jmp 0x14000c710
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000c58c
mov r8, rbx
xor edx, edx
lea ecx, [rax + 0x14]
call fcn.140001134
mov edx, 9
lea rcx, [0x140063e70]
call fcn.14000bff8
jmp 0x14000c4ac
dec eax
cmp eax, r15d
ja 0x14000c4ac
mov rdi, qword [rsp + 0x58]
mov dword [rdi], 0xa000000c
lea eax, [r12 + rsi]
add ax, cx
add ax, ax
mov word [rdi + 4], ax
xor r9d, r9d
mov dword [rdi + 6], r9d
movzx edx, r12w
add dx, dx
mov word [rdi + 0xa], dx
lea rcx, [rbp + 0xfc0]
lea rax, [rbp + 0xfc0]
mov r8, rdi
sub r8, rax
lea r10d, [r9 + 2]
movzx eax, word [rcx]
mov word [r8 + rcx + 0x14], ax
add rcx, r10
test ax, ax
jne 0x14000c6b9
add dx, r10w
mov word [rdi + 0xc], dx
add si, si
mov word [rdi + 0xe], si
lea rcx, [rbp + 0x1fc0]
lea rax, [r12*2 + 0x16]
lea rdx, [rbp + 0x1fc0]
sub rax, rdx
lea rdx, [rax + rdi]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, r10
test ax, ax
jne 0x14000c6f6
movzx eax, byte [rsp + 0x40]
xor eax, r15d
mov dword [rdi + 0x10], eax
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c767
mov rdx, rbx
lea rcx, [0x140063e70]
call fcn.14000bd24
lea edx, [rsi + 0xa]
lea rcx, [0x140063e70]
call fcn.14000bff8
xor edi, edi
jmp 0x14000c4ac
movzx r9d, word [rdi + 4]
add r9d, 8
xor ecx, ecx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov edx, 0x900a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edi, edi
test eax, eax
jne 0x14000c81b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbx
xor edx, edx
lea ecx, [rdi + 0x15]
call fcn.140001134
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14000c7c9
cmp eax, 0x522
jne 0x14000c7dc
call fcn.1400219f8
test al, al
jne 0x14000c7dc
mov ecx, 0x18
call fcn.140004f6c
lea rcx, [0x140063e70]
call fcn.14000c068
mov edx, 9
lea rcx, [0x140063e70]
call fcn.14000bff8
mov rcx, rbx
cmp byte [r14 + 0x1101], dil
je 0x14000c810
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000c4ac
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000c4ac
lea rcx, [rbp - 0x80]
call fcn.140010400
nop
mov rax, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
mov rax, qword [rax + 0x10]
call qword [0x140045518]
mov qword [rbp - 0x78], rsi
mov eax, dword [r13 + 0x84f8]
lea rcx, [r14 + 0x1060]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x84f4]
lea rcx, [r14 + 0x1058]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x84f0]
lea rcx, [r14 + 0x1050]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.140010d60
lea rcx, [rbp - 0x80]
call fcn.1400104c0
cmp byte [r13 + 0x73ce], dil
jne 0x14000c8a5
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.140011c78
nop
lea rcx, [rbp - 0x80]
call fcn.140010448
jmp 0x14000c4af
cmp dword [r8 + 0x7ed0], 3
jne 0x14000d2e1
add r8, 0x3470
mov rdx, r9
jmp 0x14000c320
xor al, al
ret