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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3130
call fcn.14003a300
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x3188], rbx
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x3120], rax
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
cmp byte [0x140050e5e], bl
jne 0x14000bf7a
lea rcx, str.SeRestorePrivilege
call fcn.14000b530
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000b530
mov byte [0x140050e5e], 1
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov edx, 0x1418
lea rcx, [rsp + 0x48]
call fcn.140001294
nop
mov r8d, 0x800
lea rdx, [rbp + 0x110c]
lea rcx, [rsp + 0x1120]
call fcn.14001efc0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1120]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [rsp + 0x40], rcx
lea rdi, [rsp + 0x1120]
lea r12, [rsp + 0x2120]
lea r8d, [rax + 4]
lea rdx, str.___
lea rcx, [rsp + 0x1120]
call fcn.14002ec6c
cmp eax, ebx
sete r14b
cmp r14b, bl
je 0x14000c04a
lea rdi, [rsp + 0x1128]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0x1128]
call fcn.14002ec6c
cmp eax, ebx
jne 0x14000c04a
mov eax, 0x5c
mov word [rsp + 0x2120], ax
lea r12, [rsp + 0x2122]
lea rdi, [rsp + 0x112e]
sub r12, rdi
mov ecx, 2
movzx eax, word [rdi]
mov word [r12 + rdi], ax
add rdi, rcx
cmp ax, bx
jne 0x14000c052
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2120]
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
cmp byte [r15 + 0x61ab], bl
jne 0x14000c0c2
cmp r14b, bl
jne 0x14000c0ac
lea rcx, [rbp + 0x110c]
call fcn.1400137f8
cmp al, bl
jne 0x14000c0ac
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x110c]
call fcn.14000b5d4
cmp al, bl
jne 0x14000c0c2
mov rcx, qword [rsp + 0x48]
cmp rcx, rbx
je 0x14000c0bb
call fcn.14002cfac
xor al, al
jmp 0x14000c46f
mov dl, 1
mov rcx, rsi
call fcn.1400105ec
cmp byte [rbp + 0x10f1], bl
jne 0x14000c12c
cmp byte [rbp + 0x210c], bl
jne 0x14000c12c
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c121
mov rcx, qword [rsp + 0x48]
cmp rcx, rbx
je 0x14000c11a
call fcn.14002cfac
xor al, al
jmp 0x14000c46f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c151
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x14000c151
mov rcx, qword [rsp + 0x48]
cmp rcx, rbx
je 0x14000c14a
call fcn.14002cfac
xor al, al
jmp 0x14000c46f
mov eax, dword [rbp + 0x1108]
mov r13d, 8
cmp eax, 3
jne 0x14000c1fd
mov rdi, qword [rsp + 0x48]
mov dword [rdi], 0xa0000003
mov r9, qword [rsp + 0x40]
lea eax, [r12 + r9 + 6]
add ax, ax
mov word [rdi + 4], ax
mov word [rdi + 6], bx
mov word [rdi + 8], bx
movzx edx, r9w
add dx, dx
mov word [rdi + 0xa], dx
lea rcx, [rsp + 0x1120]
lea r8, [rdi + 0x10]
lea rax, [rsp + 0x1120]
sub r8, rax
lea r10d, [r13 - 6]
movzx eax, word [rcx]
mov word [r8 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000c1b0
add dx, r10w
mov word [rdi + 0xc], dx
add r12w, r12w
mov word [rdi + 0xe], r12w
lea rcx, [rsp + 0x2120]
lea rdx, [rdi + r9*2 + 0x12]
lea rax, [rsp + 0x2120]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000c1e9
jmp 0x14000c2bf
mov r10d, 2
cmp eax, r10d
je 0x14000c223
cmp eax, 1
je 0x14000c223
mov rcx, qword [rsp + 0x48]
cmp rcx, rbx
je 0x14000c21c
call fcn.14002cfac
xor al, al
jmp 0x14000c46f
mov rdi, qword [rsp + 0x48]
mov dword [rdi], 0xa000000c
mov r9, qword [rsp + 0x40]
lea eax, [r12 + r9]
add ax, r13w
add ax, ax
mov word [rdi + 4], ax
mov word [rdi + 6], bx
mov word [rdi + 8], bx
movzx edx, r9w
add dx, dx
mov word [rdi + 0xa], dx
lea rcx, [rsp + 0x1120]
lea r8, [rdi + 0x14]
lea rax, [rsp + 0x1120]
sub r8, rax
movzx eax, word [rcx]
mov word [r8 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000c26c
add dx, r10w
mov word [rdi + 0xc], dx
add r12w, r12w
mov word [rdi + 0xe], r12w
lea rcx, [rsp + 0x2120]
lea rdx, [rdi + r9*2 + 0x16]
lea rax, [rsp + 0x2120]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000c2a5
mov eax, ebx
cmp r14b, bl
sete al
mov dword [rdi + 0x10], eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c300
mov rcx, rdi
call fcn.14002cfac
xor al, al
jmp 0x14000c46f
movzx r9d, word [rdi + 4]
add r9d, r13d
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov edx, 0x900a4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x14000c3c1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.1400014b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x14000c382
mov dword [rsp + 0xe0], ebx
mov dword [rsp + 0xe4], ebx
mov dword [rsp + 0xe8], 0x16
lea rcx, [rsp + 0x80]
call fcn.140020600
lea rcx, [0x140050e70]
call fcn.14000b194
mov edx, 9
lea rcx, [0x140050e70]
call fcn.14000af6c
cmp byte [rbp + 0x10f1], bl
je 0x14000c3b2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000c3bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x14000c465
lea rcx, [rsp + 0xf0]
call fcn.14000f274
nop
lea rcx, [rsp + 0xf0]
call fcn.14000f5d0
mov qword [rsp + 0xf8], r12
mov eax, dword [r15 + 0x73b4]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r15 + 0x73b0]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r15 + 0x73ac]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0xf0]
call fcn.14000fa64
lea rcx, [rsp + 0xf0]
call fcn.14000f5d0
cmp byte [r15 + 0x62bc], bl
jne 0x14000c455
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.140010044
nop
lea rcx, [rsp + 0xf0]
call fcn.14000f94c
nop
mov bl, 1
mov rcx, rdi
call fcn.14002cfac
mov al, bl
mov rcx, qword [rsp + 0x3120]
xor rcx, rsp
call fcn.14002d160
mov rbx, qword [rsp + 0x3188]
add rsp, 0x3130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret