Function at 0x14006a330
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 - 0x2fd0]
mov eax, 0x30d0
call fcn.140101610
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x3128], rbx
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rbp + 0x2fc0], rax
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
lea r15d, [rbx + 1]
cmp byte [0x1401d556f], bl
jne 0x14006a3ab
lea rcx, str.SeRestorePrivilege
call fcn.14006c054
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14006c054
mov byte [0x1401d556f], r15b
mov edx, 0x1418
lea rcx, [rsp + 0x60]
call fcn.140004d50
nop
lea r13, [rsi + 0x111c]
mov r8d, 0x800
mov rdx, r13
lea rcx, [rbp + 0xfc0]
call fcn.140096ef0
lea rax, [rbp + 0xfc0]
or r12, 0xffffffffffffffff
inc r12
cmp word [rax + r12*2], bx
jne 0x14006a3e2
lea rbx, [rbp + 0xfc0]
lea r14, [rbp + 0x1fc0]
mov r8d, 4
lea rdx, [0x140155b78]
lea rcx, [rbp + 0xfc0]
call fcn.140127fd0
test eax, eax
sete cl
mov byte [rsp + 0x40], cl
test cl, cl
je 0x14006a462
lea rbx, [rbp + 0xfc8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rbp + 0xfc8]
call fcn.140127fd0
mov cl, byte [rsp + 0x40]
test eax, eax
jne 0x14006a462
mov eax, 0x5c
mov word [rbp + 0x1fc0], ax
lea r14, [rbp + 0x1fc2]
lea rbx, [rbp + 0xfce]
sub r14, rbx
mov r8d, 2
movzx eax, word [rbx]
mov word [r14 + rbx], ax
add rbx, r8
test ax, ax
jne 0x14006a46b
lea rax, [rbp + 0x1fc0]
or r14, 0xffffffffffffffff
xor ebx, ebx
inc r14
cmp word [rax + r14*2], bx
jne 0x14006a488
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x61b3], bl
jne 0x14006a4d8
test cl, cl
jne 0x14006a8a0
mov rcx, r13
call fcn.140080a1c
test al, al
jne 0x14006a8a0
lea rdx, [rsi + 0x28]
mov r9, r13
mov r8, rdi
mov r13, qword [rsp + 0x48]
mov rcx, r13
call fcn.14006b8dc
test al, al
je 0x14006a8a0
jmp 0x14006a4db
mov r13, rax
mov r8b, byte [r13 + 0x6153]
mov dl, r15b
mov rcx, rdi
call fcn.14006ffa8
mov rcx, rdi
call fcn.140070448
test al, al
je 0x14006a51b
mov rcx, rdi
call fcn.1400704bc
mov ecx, eax
call fcn.1400705d8
mov rcx, rdi
test al, al
je 0x14006a516
call fcn.1400700dc
jmp 0x14006a51b
call fcn.140070160
cmp byte [rsi + 0x1101], bl
jne 0x14006a576
cmp byte [rsi + 0x211c], bl
jne 0x14006a576
mov qword [rsp + 0x30], rbx
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 0x14006a56b
mov rdx, rdi
lea rcx, [0x1401d5778]
call fcn.140069bc4
jmp 0x14006a8a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006a5a8
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006a5a8
mov r8, rdi
xor edx, edx
lea ecx, [rax + 0x14]
call fcn.140004ca4
mov edx, 9
lea rcx, [0x1401d5778]
call fcn.140069e78
jmp 0x14006a8a0
mov eax, dword [rsi + 0x1118]
mov ecx, 8
cmp eax, 3
jne 0x14006a654
mov rbx, qword [rsp + 0x60]
mov dword [rbx], 0xa0000003
lea eax, [r12 + 6]
add ax, r14w
add ax, ax
mov word [rbx + 4], ax
xor r9d, r9d
mov dword [rbx + 6], r9d
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0xfc0]
lea rax, [rbp + 0xfc0]
mov r8, rbx
sub r8, rax
lea r10d, [r9 + 2]
movzx eax, word [rcx]
mov word [r8 + rcx + 0x10], ax
add rcx, r10
test ax, ax
jne 0x14006a601
add dx, r10w
mov word [rbx + 0xc], dx
add r14w, r14w
mov word [rbx + 0xe], r14w
lea rcx, [rbp + 0x1fc0]
lea rax, [r12*2 + 0x12]
lea rdx, [rbp + 0x1fc0]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
test ax, ax
jne 0x14006a640
jmp 0x14006a6fb
dec eax
cmp eax, r15d
ja 0x14006a8a0
mov rbx, qword [rsp + 0x60]
mov dword [rbx], 0xa000000c
lea eax, [r14 + r12]
add ax, cx
add ax, ax
mov word [rbx + 4], ax
xor r9d, r9d
mov dword [rbx + 6], r9d
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0xfc0]
lea rax, [rbp + 0xfc0]
mov r8, rbx
sub r8, rax
lea r10d, [r9 + 2]
movzx eax, word [rcx]
mov word [r8 + rcx + 0x14], ax
add rcx, r10
test ax, ax
jne 0x14006a6a2
add dx, r10w
mov word [rbx + 0xc], dx
add r14w, r14w
mov word [rbx + 0xe], r14w
lea rcx, [rbp + 0x1fc0]
lea rax, [r12*2 + 0x16]
lea rdx, [rbp + 0x1fc0]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
test ax, ax
jne 0x14006a6e1
movzx eax, byte [rsp + 0x40]
xor eax, r15d
mov dword [rbx + 0x10], eax
mov qword [rsp + 0x30], r9
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 r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14006a753
mov rdx, rdi
lea rcx, [0x1401d5778]
call fcn.140069bc4
lea edx, [r14 + 0xa]
lea rcx, [0x1401d5778]
call fcn.140069e78
xor ebx, ebx
jmp 0x14006a8a0
movzx r9d, word [rbx + 4]
add r9d, 8
xor ecx, ecx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov edx, 0x900a4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
test eax, eax
jne 0x14006a806
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rdi
xor edx, edx
lea ecx, [rbx + 0x15]
call fcn.140004ca4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14006a7b5
cmp eax, 0x522
jne 0x14006a7c8
call fcn.140097790
test al, al
jne 0x14006a7c8
mov ecx, 0x18
call fcn.140019784
lea rcx, [0x1401d5778]
call fcn.140069ec0
mov edx, 9
lea rcx, [0x1401d5778]
call fcn.140069e78
mov rcx, rdi
cmp byte [rsi + 0x1101], bl
je 0x14006a7fb
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14006a8a0
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14006a8a0
lea rcx, [rbp - 0x70]
call fcn.14006ebf0
nop
mov rax, qword [rbp - 0x70]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140016c20]
lea rcx, [rbp - 0x70]
call rbx
mov qword [rbp - 0x68], r14
mov eax, dword [r13 + 0x7508]
lea rcx, [rsi + 0x1060]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x7504]
lea rcx, [rsi + 0x1058]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x7500]
lea rcx, [rsi + 0x1050]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x70]
call fcn.14006f740
lea rcx, [rbp - 0x70]
call fcn.14006ed00
cmp byte [r13 + 0x63de], 0
jne 0x14006a895
mov edx, dword [rsi + 0x24]
mov rcx, rdi
call fcn.140070dd4
nop
lea rcx, [rbp - 0x70]
call fcn.14006ec30
jmp 0x14006a8a3
mov r15b, bl
lea rcx, [rsp + 0x60]
call fcn.140004f0c
mov al, r15b
mov rcx, qword [rbp + 0x2fc0]
xor rcx, rsp
call fcn.140101680
mov rbx, qword [rsp + 0x3128]
add rsp, 0x30d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0x7f80], 3
jne 0x14006b329
add r8, 0x3520
mov rdx, r9
jmp 0x14006a330
xor al, al
ret