Function at 0x14000c4e0
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 [0x140057038]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r14, r8
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x58], rdx
and dword [rsp + 0x40], 0
mov edi, 1
cmp byte [0x1400592f0], 0
jne 0x14000c550
lea rcx, str.SeRestorePrivilege
call fcn.14000c424
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000c424
mov byte [0x1400592f0], dil
lea r15, [r14 + 0x130]
mov rcx, r15
call fcn.140001ae4
mov qword [rsp + 0x48], rax
lea edx, [rax*4 + 0x1c]
lea rcx, [rsp + 0x70]
call fcn.14000d03c
nop
lea rcx, [rsp + 0x70]
call fcn.140001adc
mov r12, rax
lea rdx, [0x14004d8f8]
mov rcx, r15
call fcn.14000d0b8
mov qword [rsp + 0x50], rax
mov ebx, 2
cmp rax, 0xffffffffffffffff
je 0x14000c5bb
or r9, 0xffffffffffffffff
lea r8d, [rbx + 2]
lea rdx, [rbp + 8]
mov rcx, r15
call fcn.140009768
nop
mov ebx, edi
jmp 0x14000c5c8
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.14000a120
nop
mov dword [rsp + 0x40], ebx
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000a120
nop
test bl, 2
je 0x14000c5eb
and ebx, 0xfffffffd
lea rcx, [rbp - 0x18]
call fcn.140002254
nop
test dil, bl
je 0x14000c5f9
lea rcx, [rbp + 8]
call fcn.140002254
mov rdx, qword [rsp + 0x50]
or rbx, 0xffffffffffffffff
cmp rdx, rbx
je 0x14000c668
lea rdx, str.UNC_
lea rcx, [rbp - 0x58]
call fcn.14000d0b8
cmp rax, rbx
je 0x14000c663
mov r9, rbx
lea r8d, [rbx + 4]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140009768
nop
mov r8, rax
lea rdx, [0x14004d914]
lea rcx, [rbp - 0x78]
call fcn.140006a6c
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
cmp byte [r13 + 0x93], 0
jne 0x14000c6c9
cmp rdx, rbx
jne 0x14000c6b3
mov rcx, r15
call fcn.1400140f0
test al, al
jne 0x14000c6b3
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1400020b4
lea rdx, [r14 + 0x28]
mov r9, r15
mov r8, rax
mov rcx, r13
call fcn.14000cdd4
test al, al
jne 0x14000c6c9
lea rdx, [r14 + 0x28]
mov r8, r15
mov ecx, 0x67
call fcn.140006a00
jmp 0x14000c8f8
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
mov dl, dil
lea rcx, [rbp - 0x78]
call fcn.1400112c8
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x78]
call fcn.1400115d4
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140002254
test bl, bl
je 0x14000c768
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x78]
call fcn.14001160c
mov ecx, eax
call fcn.1400115e8
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140002254
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
test bl, bl
je 0x14000c755
lea rcx, [rbp - 0x78]
call fcn.140011a2c
nop
jmp 0x14000c75f
lea rcx, [rbp - 0x78]
call fcn.1400119a0
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
xor ebx, ebx
cmp byte [r14 + 0x111], bl
jne 0x14000c8bb
cmp byte [r14 + 0x150], bl
jne 0x14000c8bb
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c816
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rdx, [rbp - 0x78]
call fcn.14000b86c
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
xor r15d, r15d
mov dil, r15b
lea rcx, [rbp - 0x58]
call fcn.140002254
nop
lea rcx, [rsp + 0x70]
call fcn.1400037c8
mov al, dil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400292f0
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]
mov eax, dword [r14 + 0x128]
mov edx, 8
cmp eax, 3
jne 0x14000c90b
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.140030794
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.140030794
xor r15d, r15d
jmp 0x14000c9a7
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x78]
call fcn.1400112b0
mov bl, al
lea rcx, [rbp - 0x78]
call fcn.140002254
test bl, bl
jne 0x14000c81f
lea r8, [rsp + 0x58]
mov ecx, 0x14
call fcn.14000d244
mov edi, 9
mov edx, edi
lea rcx, [0x1400593e0]
call fcn.14000b9c0
jmp 0x14000c7cf
dec eax
cmp eax, edi
ja 0x14000c7cf
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.140030794
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.140030794
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, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ca0d
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
lea rdx, [rbp - 0x78]
call fcn.14000b86c
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
lea edx, [rbx + 0xa]
lea rcx, [0x1400593e0]
call fcn.14000b9c0
jmp 0x14000c7d2
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 0x14000caba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x58]
mov ecx, 0x15
call fcn.14000d244
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14000ca6f
cmp eax, 0x522
jne 0x14000ca82
call fcn.14001ae3c
test al, al
jne 0x14000ca82
mov ecx, 0x18
call fcn.140006aa0
call fcn.14000baa8
mov edx, 9
lea rcx, [0x1400593e0]
call fcn.14000b9c0
mov rcx, rsi
cmp byte [r14 + 0x111], r15b
je 0x14000caaf
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14000c7d2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000c7d2
lea rcx, [rbp + 0x30]
call fcn.1400104a0
nop
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.14000d6ac
mov eax, dword [r13 + 0x1d8]
lea rcx, [r14 + 0x70]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x1d4]
lea rcx, [r14 + 0x68]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x1d0]
lea rcx, [r14 + 0x60]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp + 0x30]
call fcn.140011020
lea rcx, [rbp + 0x30]
call fcn.140010910
cmp byte [r13 + 0xa8], r15b
jne 0x14000cb4b
mov ebx, dword [r14 + 0x24]
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.1400020b4
nop
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.140011694
nop
lea rcx, [rbp - 0x78]
call fcn.140002254
nop
lea rcx, [rbp + 0x30]
call fcn.140010534
jmp 0x14000c7d5