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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30a0
call fcn.14002b110
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x30e0], rbx
mov rbp, r8
mov rsi, rdx
mov r14, rcx
xor edi, edi
cmp byte [0x140038d82], dil
jne 0x140007b19
lea rcx, str.SeRestorePrivilege
call fcn.1400075fc
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400075fc
mov byte [0x140038d82], 1
mov dl, 1
mov rcx, rsi
call fcn.14000aedc
cmp byte [rbp + 0x10f1], dil
jne 0x140007b76
cmp byte [rbp + 0x210c], dil
jne 0x140007b76
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 0x140007b6b
xor al, al
jmp 0x140007f41
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007b8c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x140007b8c
xor al, al
jmp 0x140007f41
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.140001104
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.140014678
lea rcx, [rsp + 0x70]
call fcn.140020934
mov r13, rax
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x70]
lea r12, [rsp + 0x1070]
mov r15d, 4
mov r8, r15
lea rdx, str.___
lea rcx, [rsp + 0x70]
call fcn.1400215d8
cmp eax, edi
sete al
mov byte [rsp + 0x30f0], al
cmp al, dil
je 0x140007c47
lea rbx, [rsp + 0x78]
mov r8, r15
lea rdx, str.UNC_
lea rcx, [rsp + 0x78]
call fcn.1400215d8
cmp eax, edi
jne 0x140007c47
lea eax, [r15 + 0x58]
mov word [rsp + 0x1070], ax
lea r12, [rsp + 0x1072]
lea rbx, [rsp + 0x7e]
mov rdx, rbx
mov rcx, r12
call fcn.14002097c
lea rcx, [rsp + 0x1070]
call fcn.140020934
mov r15, rax
mov ecx, dword [rbp + 0x1108]
mov edx, 8
cmp ecx, 3
jne 0x140007ce5
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 + 0x70]
call fcn.14002097c
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 + 0x1070]
call fcn.14002097c
jmp 0x140007d91
mov r13d, 2
cmp ecx, r13d
je 0x140007d0b
cmp ecx, 1
je 0x140007d0b
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x140007d04
call fcn.140020820
xor al, al
jmp 0x140007f41
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 + 0x70]
call fcn.14002097c
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 + 0x1070]
call fcn.14002097c
mov r11d, edi
cmp byte [rsp + 0x30f0], 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 0x140007dd2
mov rcx, r12
call fcn.140020820
xor al, al
jmp 0x140007f41
movzx r9d, word [r12 + 4]
add r9d, 8
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x30f8]
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 0x140007e91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xdc
call fcn.14000e9fc
mov rdx, rax
mov r8, rsi
xor ecx, ecx
call fcn.140011358
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007e51
mov ecx, 0xe1
call fcn.14000e9fc
mov rdx, rax
xor ecx, ecx
call fcn.140011358
lea rcx, [0x140038d98]
call fcn.140001000
mov edx, 9
lea rcx, [0x140038d98]
call fcn.14000717c
cmp byte [rbp + 0x10f1], dil
je 0x140007e82
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007e8c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007f36
lea rcx, [rsp + 0x2070]
call fcn.14000a098
nop
lea rcx, [rsp + 0x2070]
call fcn.14000a3d0
mov qword [rsp + 0x2078], 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 + 0x2070]
call fcn.14000a7a4
lea rcx, [rsp + 0x2070]
call fcn.14000a3d0
cmp byte [r14 + 0x51b3], dil
jne 0x140007f25
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.14000ab84
nop
lea rcx, [rsp + 0x2070]
call fcn.14000a6a4
nop
mov dil, 1
mov rcx, r12
call fcn.140020820
mov al, dil
mov rbx, qword [rsp + 0x30e0]
add rsp, 0x30a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret