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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3120
call fcn.1400394c0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x3178], rbx
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x3110], rax
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
cmp byte [0x140050326], bl
jne 0x14000bc0e
lea rcx, str.SeRestorePrivilege
call fcn.14000b308
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000b308
mov byte [0x140050326], 1
mov dl, 1
mov rcx, rsi
call fcn.14001002c
cmp byte [rbp + 0x10f1], bl
jne 0x14000bc69
cmp byte [rbp + 0x210c], bl
jne 0x14000bc69
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 0x14000bc5e
xor al, al
jmp 0x14000c084
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000bc7f
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x14000bc7f
xor al, al
jmp 0x14000c084
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov edx, 0x1418
lea rcx, [rsp + 0x40]
call fcn.14000128c
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0x1110]
call fcn.14001e284
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1110]
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
lea rdi, [rsp + 0x1110]
lea r12, [rsp + 0x2110]
lea r8d, [rax + 4]
lea rdx, str.___
lea rcx, [rsp + 0x1110]
call fcn.14002dddc
cmp eax, ebx
sete r14b
cmp r14b, bl
je 0x14000bd4b
lea rdi, [rsp + 0x1118]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0x1118]
call fcn.14002dddc
cmp eax, ebx
jne 0x14000bd4b
mov eax, 0x5c
mov word [rsp + 0x2110], ax
lea r12, [rsp + 0x2112]
lea rdi, [rsp + 0x111e]
sub r12, rdi
mov r10d, 2
movzx eax, word [rdi]
mov word [r12 + rdi], ax
add rdi, r10
cmp ax, bx
jne 0x14000bd54
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2110]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
mov eax, dword [rbp + 0x1108]
mov ecx, 8
cmp eax, 3
jne 0x14000be1f
mov rdi, qword [rsp + 0x40]
mov dword [rdi], 0xa0000003
lea eax, [rdx + r13 + 6]
add ax, ax
mov word [rdi + 4], ax
mov word [rdi + 6], bx
mov word [rdi + 8], bx
movzx r8d, r13w
add r8w, r8w
mov word [rdi + 0xa], r8w
lea rcx, [rsp + 0x1110]
lea r9, [rdi + 0x10]
lea rax, [rsp + 0x1110]
sub r9, rax
movzx eax, word [rcx]
mov word [r9 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000bdd3
add r8w, r10w
mov word [rdi + 0xc], r8w
add dx, dx
mov word [rdi + 0xe], dx
lea rcx, [rsp + 0x2110]
lea rdx, [rdi + r13*2 + 0x12]
lea rax, [rsp + 0x2110]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000be0b
jmp 0x14000bed6
cmp eax, r10d
je 0x14000be3f
cmp eax, 1
je 0x14000be3f
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x14000be38
call fcn.14002bfbc
xor al, al
jmp 0x14000c084
mov rdi, qword [rsp + 0x40]
mov dword [rdi], 0xa000000c
lea eax, [rdx + r13]
add ax, cx
add ax, ax
mov word [rdi + 4], ax
mov word [rdi + 6], bx
mov word [rdi + 8], bx
movzx r8d, r13w
add r8w, r8w
mov word [rdi + 0xa], r8w
lea rcx, [rsp + 0x1110]
lea r9, [rdi + 0x14]
lea rax, [rsp + 0x1110]
sub r9, rax
movzx eax, word [rcx]
mov word [r9 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000be84
add r8w, r10w
mov word [rdi + 0xc], r8w
add dx, dx
mov word [rdi + 0xe], dx
lea rcx, [rsp + 0x2110]
lea rdx, [rdi + r13*2 + 0x16]
lea rax, [rsp + 0x2110]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14000bebc
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 0x14000bf17
mov rcx, rdi
call fcn.14002bfbc
xor al, al
jmp 0x14000c084
movzx r9d, word [rdi + 4]
add r9d, 8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
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 0x14000bfd6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.1400014b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x14000bf97
mov dword [rsp + 0xd0], ebx
mov dword [rsp + 0xd4], ebx
mov dword [rsp + 0xd8], 0x16
lea rcx, [rsp + 0x70]
call fcn.14001f8cc
lea rcx, [0x140050340]
call fcn.14000af98
mov edx, 9
lea rcx, [0x140050340]
call fcn.14000ad70
cmp byte [rbp + 0x10f1], bl
je 0x14000bfc7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000bfd1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x14000c07a
lea rcx, [rsp + 0xe0]
call fcn.14000edd0
nop
lea rcx, [rsp + 0xe0]
call fcn.14000f104
mov qword [rsp + 0xe8], r12
mov eax, dword [r15 + 0x73ac]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r15 + 0x73a8]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r15 + 0x73a4]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0xe0]
call fcn.14000f588
lea rcx, [rsp + 0xe0]
call fcn.14000f104
cmp byte [r15 + 0x62b4], bl
jne 0x14000c06a
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.14000fa98
nop
lea rcx, [rsp + 0xe0]
call fcn.14000f464
nop
mov bl, 1
mov rcx, rdi
call fcn.14002bfbc
mov al, bl
mov rcx, qword [rsp + 0x3110]
xor rcx, rsp
call fcn.14002c170
mov rbx, qword [rsp + 0x3178]
add rsp, 0x3120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret