Function at 0x1400073a0
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 - 0x3010]
mov eax, 0x3110
call fcn.140021b80
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x3158], rbx
mov rdi, r8
mov r14, rdx
mov r13, rcx
xor ebx, ebx
lea r15d, [rbx + 1]
cmp byte [0x140045fa2], bl
jne 0x140007408
lea rcx, str.SeRestorePrivilege
call fcn.140007eac
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.140007eac
mov byte [0x140045fa2], 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.140001880
nop
lea r12, [rdi + 0x110c]
mov r8d, 0x800
mov rdx, r12
lea rcx, [rbp - 0x20]
call fcn.1400105c4
lea rcx, [rbp - 0x20]
call fcn.140025c44
mov qword [rbp + 0x3068], rax
lea rbx, [rbp - 0x20]
lea rsi, [rbp + 0xfe0]
mov r8d, 4
lea rdx, str.___
lea rcx, [rbp - 0x20]
call fcn.1400273d8
test eax, eax
sete al
mov byte [rbp + 0x3050], al
test al, al
je 0x1400074ba
lea rbx, [rbp - 0x18]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rbp - 0x18]
call fcn.1400273d8
test eax, eax
jne 0x1400074ba
mov eax, 0x5c
mov word [rbp + 0xfe0], ax
lea rsi, [rbp + 0xfe2]
lea rbx, [rbp - 0x12]
mov rdx, rbx
mov rcx, rsi
call fcn.140025c28
lea rcx, [rbp + 0xfe0]
call fcn.140025c44
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rsi, qword [rsp + 0x48]
cmp byte [r13 + 0x51a3], 0
jne 0x14000751e
cmp byte [rbp + 0x3050], 0
jne 0x140007804
mov rcx, r12
call fcn.14000c184
test al, al
jne 0x140007804
lea rcx, [rdi + 0x20]
mov rdx, r12
call fcn.140007cf4
xor r12d, r12d
test al, al
je 0x140007807
jmp 0x140007521
xor r12d, r12d
mov dl, r15b
mov rcx, r14
call fcn.14000a650
cmp byte [rdi + 0x10f1], r12b
jne 0x140007579
cmp byte [rdi + 0x210c], r12b
jne 0x140007579
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, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140007807
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000758c
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140007807
mov eax, dword [rdi + 0x1108]
mov ecx, 8
cmp eax, 3
jne 0x140007602
mov dword [rsi], 0xa0000003
mov r12, qword [rbp + 0x3068]
lea eax, [r12 + 6]
add ax, bx
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, [rbp - 0x20]
call fcn.140025c28
add bx, 2
mov word [rsi + 0xc], bx
mov rax, qword [rsp + 0x40]
add ax, ax
mov word [rsi + 0xe], ax
add r12, 9
lea rcx, [rsi + r12*2]
lea rdx, [rbp + 0xfe0]
call fcn.140025c28
xor r12d, r12d
jmp 0x140007680
dec eax
cmp eax, r15d
ja 0x140007807
mov dword [rsi], 0xa000000c
mov r12, qword [rbp + 0x3068]
lea eax, [rbx + r12]
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, [rbp - 0x20]
call fcn.140025c28
add bx, 2
mov word [rsi + 0xc], bx
mov rax, qword [rsp + 0x40]
add ax, ax
mov word [rsi + 0xe], ax
add r12, 0xb
lea rcx, [rsi + r12*2]
lea rdx, [rbp + 0xfe0]
call fcn.140025c28
xor r12d, r12d
mov eax, r12d
cmp byte [rbp + 0x3050], r12b
sete al
mov dword [rsi + 0x10], eax
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, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007807
movzx r9d, word [rsi + 4]
add r9d, 8
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x3060]
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 0x140007767
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, r14
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140002110
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007728
and qword [rbp - 0x30], 0
mov dword [rbp - 0x28], 0x16
lea rcx, [rsp + 0x70]
call fcn.1400118fc
lea rcx, [0x140045fd8]
call fcn.140007300
mov edx, 9
lea rcx, [0x140045fd8]
call fcn.1400072bc
mov rcx, r14
cmp byte [rdi + 0x10f1], r12b
je 0x14000775c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007807
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140007807
lea rcx, [rbp + 0x1fe0]
call fcn.140009bbc
nop
lea rcx, [rbp + 0x1fe0]
call fcn.140009c6c
mov qword [rbp + 0x1fe8], rbx
mov eax, dword [r13 + 0x62ac]
lea rcx, [rdi + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x62a8]
lea rcx, [rdi + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x62a4]
lea rcx, [rdi + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp + 0x1fe0]
call fcn.14000a310
lea rcx, [rbp + 0x1fe0]
call fcn.140009c6c
cmp byte [r13 + 0x51b4], r12b
jne 0x1400077f6
mov edx, dword [rdi + 0x1c]
mov rcx, r14
call fcn.14000aadc
nop
lea rcx, [rbp + 0x1fe0]
call fcn.140009bf8
jmp 0x14000780a
xor r12d, r12d
mov r15b, r12b
test rsi, rsi
je 0x140007817
mov rcx, rsi
call fcn.140025c60
mov al, r15b
mov rbx, qword [rsp + 0x3158]
add rsp, 0x3110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0x6d90], 3
jne 0x140007c51
add r8, 0x22f8
mov rdx, r9
jmp 0x1400073a0
xor al, al
ret