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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3110
call fcn.14002e7c0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x3150], rbx
mov rbp, r8
mov rsi, rdx
mov r14, rcx
xor edi, edi
cmp byte [0x14003bb83], dil
jne 0x140007701
lea rcx, str.SeRestorePrivilege
call fcn.14000736c
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000736c
mov byte [0x14003bb83], 1
mov dl, 1
mov rcx, rsi
call fcn.14000aa80
cmp byte [rbp + 0x10f1], dil
jne 0x14000775e
cmp byte [rbp + 0x210c], dil
jne 0x14000775e
mov qword [rsp + 0x30], rdi
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 0x140007753
xor al, al
jmp 0x140007b49
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007774
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x140007774
xor al, al
jmp 0x140007b49
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov edx, 0x1418
lea rcx, [rsp + 0x48]
call fcn.140001100
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0xe0]
call fcn.1400140d0
lea rcx, [rsp + 0xe0]
call fcn.1400209c4
mov r13, rax
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0xe0]
lea r12, [rsp + 0x10e0]
mov r15d, 4
mov r8, r15
lea rdx, str.___
lea rcx, [rsp + 0xe0]
call fcn.1400214bc
cmp eax, edi
sete al
mov byte [rsp + 0x3160], al
cmp al, dil
je 0x140007844
lea rbx, [rsp + 0xe8]
mov r8, r15
lea rdx, str.UNC_
lea rcx, [rsp + 0xe8]
call fcn.1400214bc
cmp eax, edi
jne 0x140007844
lea eax, [r15 + 0x58]
mov word [rsp + 0x10e0], ax
lea r12, [rsp + 0x10e2]
lea rbx, [rsp + 0xee]
mov rdx, rbx
mov rcx, r12
call fcn.140020a0c
lea rcx, [rsp + 0x10e0]
call fcn.1400209c4
mov r15, rax
mov ecx, dword [rbp + 0x1108]
mov edx, 8
cmp ecx, 3
jne 0x1400078e5
mov r12, qword [rsp + 0x48]
mov dword [r12], 0xa0000003
lea eax, [rax + r13 + 6]
add ax, ax
mov word [r12 + 4], ax
mov word [r12 + 6], di
mov word [r12 + 8], di
movzx ebx, r13w
add bx, bx
mov word [r12 + 0xa], bx
lea rcx, [r12 + 0x10]
lea rdx, [rsp + 0xe0]
call fcn.140020a0c
add bx, 2
mov word [r12 + 0xc], bx
add r15w, r15w
mov word [r12 + 0xe], r15w
mov rax, qword [rsp + 0x40]
lea rcx, [r12 + rax*2 + 0x12]
lea rdx, [rsp + 0x10e0]
call fcn.140020a0c
jmp 0x140007994
mov r13d, 2
cmp ecx, r13d
je 0x14000790b
cmp ecx, 1
je 0x14000790b
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x140007904
call fcn.1400208b0
xor al, al
jmp 0x140007b49
mov r12, qword [rsp + 0x48]
mov dword [r12], 0xa000000c
mov rcx, qword [rsp + 0x40]
add eax, ecx
add ax, dx
add ax, ax
mov word [r12 + 4], ax
mov word [r12 + 6], di
mov word [r12 + 8], di
movzx ebx, cx
add bx, bx
mov word [r12 + 0xa], bx
lea rcx, [r12 + 0x14]
lea rdx, [rsp + 0xe0]
call fcn.140020a0c
add bx, r13w
mov word [r12 + 0xc], bx
add r15w, r15w
mov word [r12 + 0xe], r15w
mov rax, qword [rsp + 0x40]
lea rcx, [r12 + rax*2 + 0x16]
lea rdx, [rsp + 0x10e0]
call fcn.140020a0c
mov r11d, edi
cmp byte [rsp + 0x3160], dil
sete r11b
mov dword [r12 + 0x10], r11d
mov qword [rsp + 0x30], rdi
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 rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400079d5
mov rcx, r12
call fcn.1400208b0
xor al, al
jmp 0x140007b49
movzx r9d, word [r12 + 4]
add r9d, 8
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x3168]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r8, r12
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
jne 0x140007a99
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.1400070e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007a59
mov dword [rsp + 0xd0], edi
mov dword [rsp + 0xd4], edi
mov dword [rsp + 0xd8], 0x16
lea rcx, [rsp + 0x70]
call fcn.140014ecc
lea rcx, [0x14003bb98]
call fcn.140007034
mov edx, 9
lea rcx, [0x14003bb98]
call fcn.140006fb8
cmp byte [rbp + 0x10f1], dil
je 0x140007a8a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007a94
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007b3e
lea rcx, [rsp + 0x20e0]
call fcn.140009c1c
nop
lea rcx, [rsp + 0x20e0]
call fcn.140009f70
mov qword [rsp + 0x20e8], rbx
mov eax, dword [r14 + 0x62ac]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r14 + 0x62a8]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r14 + 0x62a4]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0x20e0]
call fcn.14000a338
lea rcx, [rsp + 0x20e0]
call fcn.140009f70
cmp byte [r14 + 0x51b3], dil
jne 0x140007b2d
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.14000a718
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a244
nop
mov dil, 1
mov rcx, r12
call fcn.1400208b0
mov al, dil
mov rbx, qword [rsp + 0x3150]
add rsp, 0x3110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret