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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3030]
mov eax, 0x3130
call fcn.14002d080
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x3188], rbx
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rbp + 0x3020], rax
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
lea r15d, [rbx + 1]
cmp byte [0x14005e346], bl
jne 0x14000b8bf
lea rcx, str.SeRestorePrivilege
call fcn.14000ca40
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000ca40
mov byte [0x14005e346], r15b
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov edx, 0x1418
lea rcx, [rsp + 0x58]
call fcn.1400016c0
nop
lea r13, [rdi + 0x110c]
mov r8d, 0x800
mov rdx, r13
lea rcx, [rbp + 0x1020]
call fcn.14001f364
lea rax, [rbp + 0x1020]
or r12, 0xffffffffffffffff
inc r12
cmp word [rax + r12*2], bx
jne 0x14000b90a
lea rbx, [rbp + 0x1020]
lea rsi, [rbp + 0x2020]
mov r8d, 4
lea rdx, str.___
lea rcx, [rbp + 0x1020]
call fcn.1400355a4
xor edx, edx
test eax, eax
sete cl
mov byte [rsp + 0x40], cl
test cl, cl
je 0x14000b98a
lea rbx, [rbp + 0x1028]
lea r8d, [rdx + 4]
lea rdx, str.UNC_
lea rcx, [rbp + 0x1028]
call fcn.1400355a4
xor edx, edx
mov cl, byte [rsp + 0x40]
test eax, eax
jne 0x14000b98a
lea eax, [rdx + 0x5c]
mov word [rbp + 0x2020], ax
lea rsi, [rbp + 0x2022]
lea rbx, [rbp + 0x102e]
sub rsi, rbx
mov r8d, 2
movzx eax, word [rbx]
mov word [rsi + rbx], ax
add rbx, r8
test ax, ax
jne 0x14000b993
lea rax, [rbp + 0x2020]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], dx
jne 0x14000b9ad
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x61ab], dl
jne 0x14000b9f9
test cl, cl
jne 0x14000bd1d
mov rcx, r13
call fcn.140014550
test al, al
jne 0x14000bd1d
lea rcx, [rdi + 0x20]
mov rdx, r13
call fcn.14000c7ec
xor r13d, r13d
test al, al
je 0x14000bd20
jmp 0x14000b9fc
xor r13d, r13d
mov dl, r15b
mov rcx, r14
call fcn.14000ffc0
cmp byte [rdi + 0x10f1], r13b
jne 0x14000ba54
cmp byte [rdi + 0x210c], r13b
jne 0x14000ba54
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000bd20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ba67
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000bd20
mov eax, dword [rdi + 0x1108]
mov ecx, 8
cmp eax, 3
jne 0x14000bb0a
mov dword [rbx], 0xa0000003
lea eax, [r12 + 6]
add ax, si
add ax, ax
mov word [rbx + 4], ax
and dword [rbx + 6], 0
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0x1020]
lea rax, [rbp + 0x1020]
mov r8, rbx
sub r8, rax
mov r9d, 2
movzx eax, word [rcx]
mov word [r8 + rcx + 0x10], ax
add rcx, r9
test ax, ax
jne 0x14000bab9
add dx, r9w
mov word [rbx + 0xc], dx
add si, si
mov word [rbx + 0xe], si
lea rcx, [rbp + 0x2020]
lea rax, [r12*2 + 0x12]
lea rdx, [rbp + 0x2020]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r9
test ax, ax
jne 0x14000baf6
jmp 0x14000bbac
dec eax
cmp eax, r15d
ja 0x14000bd20
mov dword [rbx], 0xa000000c
lea eax, [rsi + r12]
add ax, cx
add ax, ax
mov word [rbx + 4], ax
and dword [rbx + 6], 0
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0x1020]
lea rax, [rbp + 0x1020]
mov r8, rbx
sub r8, rax
mov r9d, 2
movzx eax, word [rcx]
mov word [r8 + rcx + 0x14], ax
add rcx, r9
test ax, ax
jne 0x14000bb52
add dx, r9w
mov word [rbx + 0xc], dx
add si, si
mov word [rbx + 0xe], si
lea rcx, [rbp + 0x2020]
lea rax, [r12*2 + 0x16]
lea rdx, [rbp + 0x2020]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r9
test ax, ax
jne 0x14000bb8f
mov eax, r13d
cmp byte [rsp + 0x40], r13b
sete al
mov dword [rbx + 0x10], eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000bd20
movzx r9d, word [rbx + 4]
add r9d, 8
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, rbx
mov edx, 0x900a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000bc90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, r14
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.1400012e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x14000bc51
and qword [rbp - 0x20], 0
mov dword [rbp - 0x18], 0x16
lea rcx, [rbp - 0x80]
call fcn.1400205b0
lea rcx, [0x14005e3b0]
call fcn.14000b644
mov edx, 9
lea rcx, [0x14005e3b0]
call fcn.14000b5d4
mov rcx, r14
cmp byte [rdi + 0x10f1], r13b
je 0x14000bc85
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000bd20
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000bd20
lea rcx, [rbp - 0x10]
call fcn.14000f178
nop
lea rcx, [rbp - 0x10]
call fcn.14000f228
mov qword [rbp - 8], rsi
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsi + 0x73b4]
lea rcx, [rdi + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [rsi + 0x73b0]
lea rcx, [rdi + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [rsi + 0x73ac]
lea rcx, [rdi + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14000f8f4
lea rcx, [rbp - 0x10]
call fcn.14000f228
cmp byte [rsi + 0x62be], r13b
jne 0x14000bd12
mov edx, dword [rdi + 0x1c]
mov rcx, r14
call fcn.140010788
nop
lea rcx, [rbp - 0x10]
call fcn.14000f1b4
jmp 0x14000bd23
xor r13d, r13d
mov r15b, r13b
test rbx, rbx
je 0x14000bd30
mov rcx, rbx
call fcn.140031988
mov al, r15b
mov rcx, qword [rbp + 0x3020]
xor rcx, rsp
call fcn.14002d0f0
mov rbx, qword [rsp + 0x3188]
add rsp, 0x3130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0x7ef0], 3
jne 0x14000c729
add r8, 0x3458
mov rdx, r9
jmp 0x14000b844
xor al, al
ret