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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fc8]
mov eax, 0x30c8
call fcn.140025440
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov r13, rcx
xor ebx, ebx
lea r15d, [rbx + 1]
cmp byte [0x14004e473], bl
jne 0x140008ce8
lea rcx, str.SeRestorePrivilege
call fcn.1400099b0
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400099b0
mov byte [0x14004e473], r15b
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov edx, 0x1418
lea rcx, [rsp + 0x48]
call fcn.1400019b4
nop
lea r12, [r14 + 0x1114]
mov r8d, 0x800
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.140014018
lea rcx, [rsp + 0x70]
call fcn.14002a3e8
mov qword [rbp + 0x3028], rax
lea rsi, [rbp + 0xf70]
mov r8d, 4
lea rdx, [0x14003abb0]
lea rcx, [rsp + 0x70]
call fcn.14002ce80
test eax, eax
sete cl
mov byte [rbp + 0x3010], cl
lea rbx, [rsp + 0x78]
test eax, eax
lea rax, [rsp + 0x70]
cmovne rbx, rax
test cl, cl
je 0x140008da4
mov r8d, 4
lea rdx, str.UNC_
mov rcx, rbx
call fcn.14002ce80
test eax, eax
jne 0x140008da4
mov eax, 0x5c
mov word [rbp + 0xf70], ax
lea rsi, [rbp + 0xf72]
add rbx, 6
mov rdx, rbx
mov rcx, rsi
call fcn.14002ce64
lea rcx, [rbp + 0xf70]
call fcn.14002a3e8
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rsi, qword [rsp + 0x48]
cmp byte [r13 + 0x708b], 0
jne 0x140008e0e
cmp byte [rbp + 0x3010], 0
jne 0x1400091ac
mov rcx, r12
call fcn.14000ec50
test al, al
jne 0x1400091ac
lea rdx, [r14 + 0x28]
mov r9, r12
mov r8, rdi
mov rcx, r13
call fcn.140009708
xor r12d, r12d
test al, al
je 0x1400091af
jmp 0x140008e11
xor r12d, r12d
mov r8b, byte [r13 + 0x7053]
mov dl, r15b
mov rcx, rdi
call fcn.14000ca10
mov rcx, rdi
call fcn.14000cbcc
test al, al
je 0x140008e51
mov rcx, rdi
call fcn.14000cbe0
mov ecx, eax
call fcn.14000cc3c
mov rcx, rdi
test al, al
je 0x140008e4c
call fcn.14000cb0c
jmp 0x140008e51
call fcn.14000cb6c
cmp byte [r14 + 0x10f9], r12b
jne 0x140008f30
cmp byte [r14 + 0x2114], r12b
jne 0x140008f30
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140008eab
mov rdx, rdi
lea rcx, [0x14004e538]
call fcn.1400086f8
jmp 0x1400091af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [r14 + 0x1110]
mov ecx, 8
cmp eax, 3
jne 0x140008f65
mov dword [rsi], 0xa0000003
mov r12, qword [rbp + 0x3028]
lea eax, [rbx + 6]
add ax, r12w
add ax, ax
mov word [rsi + 4], ax
xor eax, eax
mov dword [rsi + 6], eax
movzx ebx, r12w
add bx, bx
mov word [rsi + 0xa], bx
lea rcx, [rsi + 0x10]
lea rdx, [rsp + 0x70]
call fcn.14002ce64
add bx, 2
mov word [rsi + 0xc], bx
mov rax, qword [rsp + 0x40]
add ax, ax
mov word [rsi + 0xe], ax
lea rcx, [r12 + 9]
lea rcx, [rsi + rcx*2]
lea rdx, [rbp + 0xf70]
call fcn.14002ce64
jmp 0x140008fdf
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008eb4
mov qword [rbp + 0x3010], r12
lea r8, [rbp + 0x3018]
lea rdx, [rbp + 0x3010]
lea ecx, [rax + 0x14]
call fcn.140008578
jmp 0x140009023
dec eax
cmp eax, r15d
ja 0x1400091af
mov dword [rsi], 0xa000000c
mov r12, qword [rbp + 0x3028]
lea eax, [r12 + rbx]
add ax, cx
add ax, ax
mov word [rsi + 4], ax
xor eax, eax
mov dword [rsi + 6], eax
movzx ebx, r12w
add bx, bx
mov word [rsi + 0xa], bx
lea rcx, [rsi + 0x14]
lea rdx, [rsp + 0x70]
call fcn.14002ce64
add bx, 2
mov word [rsi + 0xc], bx
mov rax, qword [rsp + 0x40]
add ax, ax
mov word [rsi + 0xe], ax
lea rcx, [r12 + 0xb]
lea rcx, [rsi + rcx*2]
lea rdx, [rbp + 0xf70]
call fcn.14002ce64
movzx eax, byte [rbp + 0x3010]
xor eax, r15d
mov dword [rsi + 0x10], eax
xor r12d, r12d
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, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140009039
mov rdx, rdi
lea rcx, [0x14004e538]
call fcn.1400086f8
mov edx, 9
lea rcx, [0x14004e538]
call fcn.140008944
jmp 0x1400091af
movzx r9d, word [rsi + 4]
add r9d, 8
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x3020]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140009102
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x3010], r12
lea r8, [rbp + 0x3018]
lea rdx, [rbp + 0x3010]
mov ecx, 0x15
call fcn.140008578
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400090b0
cmp eax, 0x522
jne 0x1400090c3
call fcn.140014218
test al, al
jne 0x1400090c3
mov ecx, 0x18
call fcn.140002760
lea rcx, [0x14004e538]
call fcn.140008988
mov edx, 9
lea rcx, [0x14004e538]
call fcn.140008944
mov rcx, rdi
cmp byte [r14 + 0x10f9], r12b
je 0x1400090f7
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400091af
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400091af
lea rcx, [rbp + 0x1f70]
call fcn.14000bd4c
nop
mov rax, qword [rbp + 0x1f70]
lea rcx, [rbp + 0x1f70]
mov rax, qword [rax + 0x10]
call qword [0x14003a508]
mov qword [rbp + 0x1f78], rbx
mov eax, dword [r13 + 0x81c8]
lea rcx, [r14 + 0x1058]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x81c4]
lea rcx, [r14 + 0x1050]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x81c0]
lea rcx, [r14 + 0x1048]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp + 0x1f70]
call fcn.14000c6a0
lea rcx, [rbp + 0x1f70]
call fcn.14000be10
cmp byte [r13 + 0x709c], r12b
jne 0x14000919e
mov edx, dword [r14 + 0x24]
mov rcx, rdi
call fcn.14000d094
nop
lea rcx, [rbp + 0x1f70]
call fcn.14000bd94
jmp 0x1400091b2
xor r12d, r12d
mov r15b, r12b
test rsi, rsi
je 0x1400091bf
mov rcx, rsi
call fcn.14002a6a8
mov al, r15b
add rsp, 0x30c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [r8 + 0x66b0], 3
jne 0x14000965d
add r8, 0x1c60
mov rdx, r9
jmp 0x140008c8c
xor al, al
ret