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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fe0]
mov eax, 0x30e0
call fcn.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rbp + 0x2fd0], rax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
xor edi, edi
lea r15d, [rdi + 1]
cmp byte [0x1401c965f], dil
jne 0x14007d0a8
lea rcx, str.SeRestorePrivilege
call fcn.14007f094
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14007f094
mov byte [0x1401c965f], r15b
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov edx, 0x1418
lea rcx, [rsp + 0x60]
call fcn.1400081d0
nop
lea r13, [r14 + 0x1114]
mov r8d, 0x800
mov rdx, r13
lea rcx, [rbp + 0xfd0]
call fcn.1400aa9e4
lea rax, [rbp + 0xfd0]
or r12, 0xffffffffffffffff
inc r12
cmp word [rax + r12*2], di
jne 0x14007d0f3
lea rsi, [rbp + 0x1fd0]
mov r8d, 4
lea rdx, [0x140150668]
lea rcx, [rbp + 0xfd0]
call fcn.140124fa4
xor r9d, r9d
test eax, eax
sete cl
mov byte [rsp + 0x40], cl
lea rdi, [rbp + 0xfd8]
test eax, eax
lea rax, [rbp + 0xfd0]
cmovne rdi, rax
test cl, cl
je 0x14007d175
lea r8d, [r9 + 4]
lea rdx, str.UNC_
mov rcx, rdi
call fcn.140124fa4
xor r9d, r9d
mov cl, byte [rsp + 0x40]
test eax, eax
jne 0x14007d175
lea eax, [r9 + 0x5c]
mov word [rbp + 0x1fd0], ax
lea rsi, [rbp + 0x1fd2]
add rdi, 6
sub rsi, rdi
mov edx, 2
movzx eax, word [rdi]
mov word [rsi + rdi], ax
add rdi, rdx
test ax, ax
jne 0x14007d17d
lea rax, [rbp + 0x1fd0]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], r9w
jne 0x14007d197
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x7093], r9b
jne 0x14007d222
test cl, cl
jne 0x14007d1e5
mov rcx, r13
call fcn.1400948e8
xor r9d, r9d
test al, al
jne 0x14007d1e5
lea rdx, [r14 + 0x28]
mov r9, r13
mov r8, rbx
mov r13, qword [rsp + 0x48]
mov rcx, r13
call fcn.14007e730
xor r9d, r9d
test al, al
jne 0x14007d225
mov r15b, r9b
test rdi, rdi
je 0x14007d1f5
mov rcx, rdi
call fcn.140123a48
mov al, r15b
mov rcx, qword [rbp + 0x2fd0]
xor rcx, rsp
call fcn.140117fa0
mov rbx, qword [rsp + 0x3138]
add rsp, 0x30e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13, rax
mov r8b, byte [r13 + 0x7057]
mov dl, r15b
mov rcx, rbx
call fcn.140083924
mov rcx, rbx
call fcn.140083dd0
test al, al
je 0x14007d265
mov rcx, rbx
call fcn.140083e40
mov ecx, eax
call fcn.140083f5c
mov rcx, rbx
test al, al
je 0x14007d260
call fcn.140083a58
jmp 0x14007d265
call fcn.140083adc
xor eax, eax
cmp byte [r14 + 0x10f9], al
jne 0x14007d370
cmp byte [r14 + 0x2114], al
jne 0x14007d370
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14007d2c1
mov rdx, rbx
lea rcx, [0x1401c97d8]
call fcn.14007c894
jmp 0x14007d54c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov eax, dword [r14 + 0x1110]
mov ecx, 8
cmp eax, 3
jne 0x14007d3a2
mov dword [rdi], 0xa0000003
lea eax, [rsi + 6]
add ax, r12w
add ax, ax
mov word [rdi + 4], ax
and dword [rdi + 6], 0
movzx edx, r12w
add dx, dx
mov word [rdi + 0xa], dx
lea rcx, [rbp + 0xfd0]
lea rax, [rbp + 0xfd0]
mov r8, rdi
sub r8, rax
mov r10d, 2
movzx eax, word [rcx]
mov word [rcx + r8 + 0x10], ax
add rcx, r10
test ax, ax
jne 0x14007d31f
add dx, r10w
mov word [rdi + 0xc], dx
add si, si
mov word [rdi + 0xe], si
lea rcx, [rbp + 0x1fd0]
lea rax, [r12*2 + 0x12]
lea rdx, [rbp + 0x1fd0]
sub rax, rdx
lea rdx, [rax + rdi]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, r10
test ax, ax
jne 0x14007d35c
jmp 0x14007d441
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r9d, r9d
test eax, eax
jne 0x14007d2cd
mov qword [rsp + 0x48], r9
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea ecx, [rax + 0x14]
call fcn.140018c90
jmp 0x14007d482
dec eax
cmp eax, r15d
ja 0x14007d1e5
mov dword [rdi], 0xa000000c
lea eax, [r12 + rsi]
add ax, cx
add ax, ax
mov word [rdi + 4], ax
and dword [rdi + 6], 0
movzx edx, r12w
add dx, dx
mov word [rdi + 0xa], dx
lea rcx, [rbp + 0xfd0]
lea rax, [rbp + 0xfd0]
mov r8, rdi
sub r8, rax
mov r10d, 2
movzx eax, word [rcx]
mov word [rcx + r8 + 0x14], ax
add rcx, r10
test ax, ax
jne 0x14007d3ea
add dx, r10w
mov word [rdi + 0xc], dx
add si, si
mov word [rdi + 0xe], si
lea rcx, [rbp + 0x1fd0]
lea rax, [r12*2 + 0x16]
lea rdx, [rbp + 0x1fd0]
sub rax, rdx
lea rdx, [rax + rdi]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, r10
test ax, ax
jne 0x14007d427
movzx eax, byte [rsp + 0x40]
xor eax, r15d
mov dword [rdi + 0x10], eax
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007d498
mov rdx, rbx
lea rcx, [0x1401c97d8]
call fcn.14007c894
mov edx, 9
lea rcx, [0x1401c97d8]
call fcn.14007cb48
jmp 0x14007d54c
movzx r9d, word [rdi + 4]
add r9d, 8
xor r12d, r12d
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r8, rdi
mov edx, 0x900a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14007d55c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], r12
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea ecx, [r12 + 0x15]
call fcn.140018c90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14007d50a
cmp eax, 0x522
jne 0x14007d51d
call fcn.1400ab210
test al, al
jne 0x14007d51d
mov ecx, 0x18
call fcn.140018c14
lea rcx, [0x1401c97d8]
call fcn.14007cb90
mov edx, 9
lea rcx, [0x1401c97d8]
call fcn.14007cb48
mov rcx, rbx
cmp byte [r14 + 0x10f9], r12b
je 0x14007d554
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor r9d, r9d
jmp 0x14007d1e5
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14007d54c
lea rcx, [rbp - 0x80]
call fcn.1400824e4
nop
mov rax, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
mov rax, qword [rax + 0x10]
call qword [case.0x1400a07c7.0]
mov qword [rbp - 0x78], rsi
mov eax, dword [r13 + 0x83e8]
lea rcx, [r14 + 0x1058]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x83e4]
lea rcx, [r14 + 0x1050]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x83e0]
lea rcx, [r14 + 0x1048]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.1400830f0
lea rcx, [rbp - 0x80]
call fcn.1400825f0
cmp byte [r13 + 0x72be], r12b
jne 0x14007d5e6
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.140084754
nop
lea rcx, [rbp - 0x80]
call fcn.14008252c
jmp 0x14007d1e8