Function at 0x14000c4d0
Capabilities:
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, r8
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x58], rdx
xor eax, eax
mov dword [rsp + 0x40], eax
lea r14d, [rax + 1]
cmp byte [0x1400572f0], al
jne 0x14000c53f
lea rcx, str.SeRestorePrivilege
call fcn.14000c414
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000c414
mov byte [0x1400572f0], r14b
lea r15, [rsi + 0x130]
mov rcx, r15
call fcn.140001ae4
mov qword [rsp + 0x48], rax
lea edx, [rax*4 + 0x1c]
lea rcx, [rsp + 0x70]
call fcn.14000d010
nop
lea rcx, [rsp + 0x70]
call fcn.140001adc
mov r12, rax
lea rdx, [0x14004c8d8]
mov rcx, r15
call fcn.14000d08c
mov qword [rsp + 0x50], rax
mov ebx, 2
cmp rax, 0xffffffffffffffff
je 0x14000c5ab
or r9, 0xffffffffffffffff
lea r8d, [rbx + 2]
lea rdx, [rbp + 8]
mov rcx, r15
call fcn.140009740
nop
mov ebx, r14d
jmp 0x14000c5b8
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.14000a0f8
nop
mov dword [rsp + 0x40], ebx
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000a0f8
nop
test bl, 2
je 0x14000c5db
and ebx, 0xfffffffd
lea rcx, [rbp - 0x18]
call fcn.140002254
nop
test r14b, bl
je 0x14000c5e9
lea rcx, [rbp + 8]
call fcn.140002254
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xffffffffffffffff
je 0x14000c657
lea rdx, str.UNC_
lea rcx, [rbp - 0x58]
call fcn.14000d08c
cmp rax, 0xffffffffffffffff
je 0x14000c652
or r9, 0xffffffffffffffff
lea r8d, [r9 + 4]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140009740
nop
mov r8, rax
lea rdx, [0x14004c8f4]
lea rcx, [rbp - 0x78]
call fcn.140006a64
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400037f4
lea rcx, [rbp - 0x78]
call fcn.140002254
nop
lea rcx, [rbp - 0x38]
call fcn.140002254
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x58]
call fcn.140001ae4
mov qword [rsp + 0x40], rax
xor ebx, ebx
cmp byte [r13 + 0x93], bl
jne 0x14000c6b0
cmp rdx, 0xffffffffffffffff
jne 0x14000c7b5
mov rcx, r15
call fcn.140013eac
test al, al
jne 0x14000c7b5
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400020b4
lea rdx, [rsi + 0x28]
mov r9, r15
mov r8, rax
mov rcx, r13
call fcn.14000cda8
test al, al
je 0x14000c7b5
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
mov dl, r14b
lea rcx, [rbp - 0x78]
call fcn.1400112e8
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x78]
call fcn.1400115f4
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140002254
test bl, bl
je 0x14000c74f
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x78]
call fcn.14001162c
mov ecx, eax
call fcn.140011608
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140002254
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
test bl, bl
je 0x14000c73c
lea rcx, [rbp - 0x78]
call fcn.140011a4c
nop
jmp 0x14000c746
lea rcx, [rbp - 0x78]
call fcn.1400119c0
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
xor ebx, ebx
cmp byte [rsi + 0x111], bl
jne 0x14000c804
cmp byte [rsi + 0x150], bl
jne 0x14000c804
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c7f9
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rdx, [rbp - 0x78]
call fcn.14000b85c
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
mov r14b, bl
lea rcx, [rbp - 0x58]
call fcn.140002254
nop
lea rcx, [rsp + 0x70]
call fcn.1400037c8
mov al, r14b
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400289c0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c83f
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x78]
call fcn.1400112d0
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140002254
test bl, bl
jne 0x14000c83d
lea r8, [rsp + 0x58]
mov ecx, 0x14
call fcn.14000d218
jmp 0x14000c9c9
xor ebx, ebx
mov eax, dword [rsi + 0x128]
mov edx, 8
cmp eax, 3
jne 0x14000c8da
mov dword [r12], 0xa0000003
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add ax, 6
add ax, cx
add ax, ax
mov word [r12 + 4], ax
and dword [r12 + 6], 0
movzx ebx, cx
add bx, bx
mov word [r12 + 0xa], bx
mov rcx, r15
call fcn.14000128c
mov rdx, rax
lea rcx, [r12 + 0x10]
call fcn.14002fe64
add bx, 2
mov word [r12 + 0xc], bx
mov rax, qword [rsp + 0x40]
add ax, ax
mov word [r12 + 0xe], ax
lea rcx, [rbp - 0x58]
call fcn.14000128c
mov rdx, rax
mov rax, qword [rsp + 0x48]
add rax, 9
lea rcx, [r12 + rax*2]
call fcn.14002fe64
xor r15d, r15d
jmp 0x14000c977
dec eax
cmp eax, r14d
ja 0x14000c7b5
mov dword [r12], 0xa000000c
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add ax, cx
add ax, dx
add ax, ax
mov word [r12 + 4], ax
and dword [r12 + 6], 0
movzx ebx, cx
add bx, bx
mov word [r12 + 0xa], bx
mov rcx, r15
call fcn.14000128c
mov rdx, rax
lea rcx, [r12 + 0x14]
call fcn.14002fe64
add bx, 2
mov word [r12 + 0xc], bx
mov rax, qword [rsp + 0x40]
add ax, ax
mov word [r12 + 0xe], ax
lea rcx, [rbp - 0x58]
call fcn.14000128c
mov rdx, rax
mov rax, qword [rsp + 0x48]
add rax, 0xb
lea rcx, [r12 + rax*2]
call fcn.14002fe64
xor r15d, r15d
mov eax, r15d
cmp qword [rsp + 0x50], 0xffffffffffffffff
sete al
mov dword [r12 + 0x10], eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c9e1
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rdx, [rbp - 0x78]
call fcn.14000b85c
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
mov edx, 9
lea rcx, [0x1400573e0]
call fcn.14000b9b0
xor ebx, ebx
jmp 0x14000c7b5
movzx r9d, word [r12 + 4]
add r9d, 8
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r8, r12
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000ca91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x58]
mov ecx, 0x15
call fcn.14000d218
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14000ca43
cmp eax, 0x522
jne 0x14000ca58
call fcn.14001aafc
xor ebx, ebx
test al, al
jne 0x14000ca5a
lea ecx, [rbx + 0x18]
call fcn.140006a98
jmp 0x14000ca5a
xor ebx, ebx
call fcn.14000ba98
mov edx, 9
lea rcx, [0x1400573e0]
call fcn.14000b9b0
mov rcx, rdi
cmp byte [rsi + 0x111], bl
je 0x14000ca86
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000c7b5
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000c7b5
lea rcx, [rbp + 0x30]
call fcn.1400104c4
nop
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.14000d680
mov eax, dword [r13 + 0x1d8]
lea rcx, [rsi + 0x70]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x1d4]
lea rcx, [rsi + 0x68]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x1d0]
lea rcx, [rsi + 0x60]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp + 0x30]
call fcn.140011040
lea rcx, [rbp + 0x30]
call fcn.140010930
cmp byte [r13 + 0xa8], r15b
jne 0x14000cb21
mov ebx, dword [rsi + 0x24]
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1400116b4
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
nop
lea rcx, [rbp + 0x30]
call fcn.140010554
jmp 0x14000c7b8