Function at 0x14001c33c
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 - 0x3030]
mov eax, 0x3130
call fcn.140055f20
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x3188], rbx
mov rax, qword [0x140081ee0]
xor rax, rsp
mov qword [rbp + 0x3020], rax
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
lea r15d, [rbx + 1]
cmp byte [0x140091fcf], bl
jne 0x14001c3b7
lea rcx, str.SeRestorePrivilege
call fcn.14001de54
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14001de54
mov byte [0x140091fcf], r15b
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov edx, 0x1418
lea rcx, [rsp + 0x58]
call fcn.140001858
nop
lea r13, [rdi + 0x110c]
mov r8d, 0x800
mov rdx, r13
lea rcx, [rbp + 0x1020]
call fcn.140046158
lea rax, [rbp + 0x1020]
or r12, 0xffffffffffffffff
inc r12
cmp word [rax + r12*2], bx
jne 0x14001c402
lea rbx, [rbp + 0x1020]
lea rsi, [rbp + 0x2020]
mov r8d, 4
lea rdx, str.___
lea rcx, [rbp + 0x1020]
call fcn.14005ecd0
xor edx, edx
test eax, eax
sete cl
mov byte [rsp + 0x40], cl
test cl, cl
je 0x14001c482
lea rbx, [rbp + 0x1028]
lea r8d, [rdx + 4]
lea rdx, str.UNC_
lea rcx, [rbp + 0x1028]
call fcn.14005ecd0
xor edx, edx
mov cl, byte [rsp + 0x40]
test eax, eax
jne 0x14001c482
lea eax, [rdx + 0x5c]
mov word [rbp + 0x2020], ax
lea rsi, [rbp + 0x2022]
lea rbx, [rbp + 0x102e]
sub rsi, rbx
mov r8d, 2
movzx eax, word [rbx]
mov word [rsi + rbx], ax
add rbx, r8
test ax, ax
jne 0x14001c48b
lea rax, [rbp + 0x2020]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], dx
jne 0x14001c4a5
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x61ab], dl
jne 0x14001c4f1
test cl, cl
jne 0x14001c815
mov rcx, r13
call fcn.140032174
test al, al
jne 0x14001c815
lea rcx, [rdi + 0x20]
mov rdx, r13
call fcn.14001d7f4
xor r13d, r13d
test al, al
je 0x14001c818
jmp 0x14001c4f4
xor r13d, r13d
mov dl, r15b
mov rcx, r14
call fcn.1400218f4
cmp byte [rdi + 0x10f1], r13b
jne 0x14001c54c
cmp byte [rdi + 0x210c], r13b
jne 0x14001c54c
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001c818
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001c55f
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001c818
mov eax, dword [rdi + 0x1108]
mov ecx, 8
cmp eax, 3
jne 0x14001c602
mov dword [rbx], 0xa0000003
lea eax, [r12 + 6]
add ax, si
add ax, ax
mov word [rbx + 4], ax
and dword [rbx + 6], 0
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0x1020]
lea rax, [rbp + 0x1020]
mov r8, rbx
sub r8, rax
mov r9d, 2
movzx eax, word [rcx]
mov word [r8 + rcx + 0x10], ax
add rcx, r9
test ax, ax
jne 0x14001c5b1
add dx, r9w
mov word [rbx + 0xc], dx
add si, si
mov word [rbx + 0xe], si
lea rcx, [rbp + 0x2020]
lea rax, [r12*2 + 0x12]
lea rdx, [rbp + 0x2020]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r9
test ax, ax
jne 0x14001c5ee
jmp 0x14001c6a4
dec eax
cmp eax, r15d
ja 0x14001c818
mov dword [rbx], 0xa000000c
lea eax, [rsi + r12]
add ax, cx
add ax, ax
mov word [rbx + 4], ax
and dword [rbx + 6], 0
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0x1020]
lea rax, [rbp + 0x1020]
mov r8, rbx
sub r8, rax
mov r9d, 2
movzx eax, word [rcx]
mov word [r8 + rcx + 0x14], ax
add rcx, r9
test ax, ax
jne 0x14001c64a
add dx, r9w
mov word [rbx + 0xc], dx
add si, si
mov word [rbx + 0xe], si
lea rcx, [rbp + 0x2020]
lea rax, [r12*2 + 0x16]
lea rdx, [rbp + 0x2020]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r9
test ax, ax
jne 0x14001c687
mov eax, r13d
cmp byte [rsp + 0x40], r13b
sete al
mov dword [rbx + 0x10], eax
mov qword [rsp + 0x30], r13
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 rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001c818
movzx r9d, word [rbx + 4]
add r9d, 8
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, rbx
mov edx, 0x900a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001c788
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, r14
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140001358
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x14001c749
and qword [rbp - 0x20], 0
mov dword [rbp - 0x18], 0x16
lea rcx, [rbp - 0x80]
call fcn.1400479a4
lea rcx, [0x140094860]
call fcn.14001bf78
mov edx, 9
lea rcx, [0x140094860]
call fcn.14001bf08
mov rcx, r14
cmp byte [rdi + 0x10f1], r13b
je 0x14001c77d
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001c818
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14001c818
lea rcx, [rbp - 0x10]
call fcn.14002071c
nop
lea rcx, [rbp - 0x10]
call fcn.1400207cc
mov qword [rbp - 8], rsi
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsi + 0x73cc]
lea rcx, [rdi + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [rsi + 0x73c8]
lea rcx, [rdi + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [rsi + 0x73c4]
lea rcx, [rdi + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140021078
lea rcx, [rbp - 0x10]
call fcn.1400207cc
cmp byte [rsi + 0x62d6], r13b
jne 0x14001c80a
mov edx, dword [rdi + 0x1c]
mov rcx, r14
call fcn.140022740
nop
lea rcx, [rbp - 0x10]
call fcn.140020758
jmp 0x14001c81b
xor r13d, r13d
mov r15b, r13b
test rbx, rbx
je 0x14001c828
mov rcx, rbx
call fcn.14005a938
mov al, r15b
mov rcx, qword [rbp + 0x3020]
xor rcx, rsp
call fcn.140055f90
mov rbx, qword [rsp + 0x3188]
add rsp, 0x3130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0x7f88], 3
jne 0x14001d231
add r8, 0x34f0
mov rdx, r9
jmp 0x14001c33c
xor al, al
ret