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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fc0]
mov eax, 0x30c0
call fcn.140001a50
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x3118], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2fb0], rax
mov r15, r8
mov r14, rdx
mov r13, rcx
mov esi, 1
xor r12d, r12d
cmp byte [0x140188c18], r12b
jne 0x1400d12d8
lea rcx, str.SeRestorePrivilege
call fcn.1400d11a0
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400d11a0
mov byte [0x140188c18], sil
mov rcx, r14
call fcn.1400d3bfc
cmp byte [r15 + 0x10f1], r12b
jne 0x1400d1328
cmp byte [r15 + 0x210c], r12b
jne 0x1400d1328
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400d1337
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400d133e
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x1400d133e
xor al, al
jmp 0x1400d16a8
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x60], 0x1418
lea rcx, [rsp + 0x58]
call fcn.1400cad10
nop
lea rdx, [r15 + 0x110c]
mov r8d, 0x7ff
lea rcx, [rbp + 0xfb0]
call qword [sym.imp.msvcrt.dll_wcsncpy]
mov word [rbp + 0x1fae], r12w
lea rcx, [rbp + 0xfb0]
call qword [sym.imp.msvcrt.dll_wcslen]
mov qword [rsp + 0x48], rax
lea rbx, [rbp + 0xfb0]
lea rdi, [rbp + 0x1fb0]
mov r8d, 4
lea rdx, [0x140116250]
lea rcx, [rbp + 0xfb0]
call qword [sym.imp.msvcrt.dll_wcsncmp]
test eax, eax
sete al
mov byte [rsp + 0x40], al
test al, al
je 0x1400d1409
lea rbx, [rbp + 0xfb8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rbp + 0xfb8]
call qword [sym.imp.msvcrt.dll_wcsncmp]
test eax, eax
jne 0x1400d1409
mov eax, 0x5c
mov word [rbp + 0x1fb0], ax
lea rdi, [rbp + 0x1fb2]
lea rbx, [rbp + 0xfbe]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcscpy]
lea rcx, [rbp + 0x1fb0]
call qword [sym.imp.msvcrt.dll_wcslen]
mov r12, rax
mov eax, dword [r15 + 0x1108]
mov rdi, qword [rsp + 0x58]
mov edx, 8
cmp eax, 3
jne 0x1400d14a4
mov dword [rdi], 0xa0000003
mov rcx, qword [rsp + 0x48]
lea eax, [rcx + 6]
add ax, r12w
add ax, ax
mov word [rdi + 4], ax
xor eax, eax
mov dword [rdi + 6], eax
movzx ebx, cx
add bx, bx
mov word [rdi + 0xa], bx
lea rcx, [rdi + 0x10]
lea rdx, [rbp + 0xfb0]
call qword [sym.imp.msvcrt.dll_wcscpy]
add bx, 2
mov word [rdi + 0xc], bx
add r12w, r12w
mov word [rdi + 0xe], r12w
mov rcx, qword [rsp + 0x48]
add rcx, 9
lea rcx, [rdi + rcx*2]
lea rdx, [rbp + 0x1fb0]
call qword [sym.imp.msvcrt.dll_wcscpy]
xor r12d, r12d
jmp 0x1400d1523
dec eax
cmp eax, esi
ja 0x1400d1691
mov dword [rdi], 0xa000000c
mov rcx, qword [rsp + 0x48]
lea eax, [r12 + rcx]
add ax, dx
add ax, ax
mov word [rdi + 4], ax
xor eax, eax
mov dword [rdi + 6], eax
movzx ebx, cx
add bx, bx
mov word [rdi + 0xa], bx
lea rcx, [rdi + 0x14]
lea rdx, [rbp + 0xfb0]
call qword [sym.imp.msvcrt.dll_wcscpy]
add bx, 2
mov word [rdi + 0xc], bx
add r12w, r12w
mov word [rdi + 0xe], r12w
mov rcx, qword [rsp + 0x48]
add rcx, 0xb
lea rcx, [rdi + rcx*2]
lea rdx, [rbp + 0x1fb0]
call qword [sym.imp.msvcrt.dll_wcscpy]
xor r12d, r12d
mov eax, r12d
cmp byte [rsp + 0x40], r12b
sete al
mov dword [rdi + 0x10], eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d1694
movzx r9d, word [rdi + 4]
add r9d, 8
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r8, rdi
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x1400d15d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x140173d98], 9
add dword [0x140173d9c], esi
mov rcx, r14
cmp byte [r15 + 0x10f1], r12b
je 0x1400d15c6
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x1400d1694
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x1400d1694
lea rax, vtable.File.0
mov qword [rbp - 0x80], rax
or qword [rbp - 0x78], 0xffffffffffffffff
mov word [rbp - 0x5a], r12w
mov dword [rbp - 0x67], 0x1010000
mov byte [rbp - 0x70], r12b
mov dword [rbp - 0x6c], r12d
mov byte [rbp - 0x68], r12b
mov dword [rbp + 0xfa8], r12d
mov byte [rbp - 0x5c], r12b
mov byte [rbp - 0x63], r12b
mov dword [rbp - 0x60], 0x100
lea rcx, [rbp - 0x80]
call fcn.1400d3524
mov qword [rbp - 0x78], rbx
mov eax, dword [r13 + 0x62ac]
lea rcx, [r15 + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x62a8]
lea rcx, [r15 + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x62a4]
lea rcx, [r15 + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.1400d39d0
lea rcx, [rbp - 0x80]
call fcn.1400d3524
cmp byte [r13 + 0x51b3], r12b
jne 0x1400d1686
mov edx, dword [r15 + 0x1c]
mov rcx, r14
call fcn.1400d3f3c
nop
lea rcx, [rbp - 0x80]
call fcn.1400d31e8
jmp 0x1400d1697
xor r12d, r12d
mov sil, r12b
test rdi, rdi
je 0x1400d16a5
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov al, sil
mov rcx, qword [rbp + 0x2fb0]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0x3118]
add rsp, 0x30c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret