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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30b0
call fcn.1400614d0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x3108], rbx
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x30a0], rax
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
cmp byte [0x14008300f], bl
jne 0x14001d472
lea rcx, str.SeRestorePrivilege
call fcn.14001bfac
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14001bfac
mov byte [0x14008300f], 1
mov dl, 1
mov rcx, rsi
call fcn.1400220ec
cmp byte [rbp + 0x10f1], bl
jne 0x14001d4cd
cmp byte [rbp + 0x210c], bl
jne 0x14001d4cd
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 0x14001d4c2
xor al, al
jmp 0x14001d8d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001d4e3
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x14001d4e3
xor al, al
jmp 0x14001d8d1
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.1400075b8
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0x10a0]
call fcn.140044cfc
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x10a0]
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
lea rdi, [rsp + 0x10a0]
lea r12, [rsp + 0x20a0]
lea r8d, [rax + 4]
lea rdx, str.___
lea rcx, [rsp + 0x10a0]
call fcn.140056834
cmp eax, ebx
sete r14b
cmp r14b, bl
je 0x14001d5af
lea rdi, [rsp + 0x10a8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0x10a8]
call fcn.140056834
cmp eax, ebx
jne 0x14001d5af
mov eax, 0x5c
mov word [rsp + 0x20a0], ax
lea r12, [rsp + 0x20a2]
lea rdi, [rsp + 0x10ae]
sub r12, rdi
mov r10d, 2
movzx eax, word [rdi]
mov word [r12 + rdi], ax
add rdi, r10
cmp ax, bx
jne 0x14001d5b8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20a0]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
mov eax, dword [rbp + 0x1108]
mov ecx, 8
cmp eax, 3
jne 0x14001d683
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 + 0x10a0]
lea r9, [rdi + 0x10]
lea rax, [rsp + 0x10a0]
sub r9, rax
movzx eax, word [rcx]
mov word [r9 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14001d637
add r8w, r10w
mov word [rdi + 0xc], r8w
add dx, dx
mov word [rdi + 0xe], dx
lea rcx, [rsp + 0x20a0]
lea rdx, [rdi + r13*2 + 0x12]
lea rax, [rsp + 0x20a0]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14001d66f
jmp 0x14001d73a
cmp eax, r10d
je 0x14001d6a3
cmp eax, 1
je 0x14001d6a3
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x14001d69c
call fcn.140053fa0
xor al, al
jmp 0x14001d8d1
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 + 0x10a0]
lea r9, [rdi + 0x14]
lea rax, [rsp + 0x10a0]
sub r9, rax
movzx eax, word [rcx]
mov word [r9 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14001d6e8
add r8w, r10w
mov word [rdi + 0xc], r8w
add dx, dx
mov word [rdi + 0xe], dx
lea rcx, [rsp + 0x20a0]
lea rdx, [rdi + r13*2 + 0x16]
lea rax, [rsp + 0x20a0]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x14001d720
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 0x14001d77b
mov rcx, rdi
call fcn.140053fa0
xor al, al
jmp 0x14001d8d1
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 0x14001d835
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xeb8
call fcn.14003f40c
mov rdx, rax
mov r8, rsi
xor ecx, ecx
call fcn.1400177a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x14001d7f6
mov ecx, 0xebc
call fcn.14003f40c
mov rdx, rax
xor ecx, ecx
call fcn.1400177a4
lea rcx, [0x140085830]
call fcn.14001b924
mov edx, 9
lea rcx, [0x140085830]
call fcn.14001b774
cmp byte [rbp + 0x10f1], bl
je 0x14001d826
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001d830
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x14001d8c7
lea rcx, [rsp + 0x70]
call fcn.1400203e0
nop
lea rcx, [rsp + 0x70]
call fcn.14002070c
mov qword [rsp + 0x78], r12
mov eax, dword [r15 + 0x73c4]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r15 + 0x73c0]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r15 + 0x73bc]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140020c68
lea rcx, [rsp + 0x70]
call fcn.14002070c
cmp byte [r15 + 0x62ce], bl
jne 0x14001d8ba
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.140021340
nop
lea rcx, [rsp + 0x70]
call fcn.140020b20
nop
mov bl, 1
mov rcx, rdi
call fcn.140053fa0
mov al, bl
mov rcx, qword [rsp + 0x30a0]
xor rcx, rsp
call fcn.140053930
mov rbx, qword [rsp + 0x3108]
add rsp, 0x30b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret