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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3110
call fcn.14002e6d0
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x3158], rbx
mov rsi, r8
mov rbp, rdx
mov r13, rcx
xor edi, edi
cmp byte [0x14003bb83], dil
jne 0x1400076d9
lea rcx, str.SeRestorePrivilege
call fcn.14000721c
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000721c
mov byte [0x14003bb83], 1
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov edx, 0x1418
lea rcx, [rsp + 0x40]
call fcn.140001108
nop
mov r8d, 0x800
lea rdx, [rsi + 0x110c]
lea rcx, [rsp + 0xe0]
call fcn.140014298
lea rcx, [rsp + 0xe0]
call fcn.140020914
mov qword [rsp + 0x3160], rax
lea rbx, [rsp + 0xe0]
lea r14, [rsp + 0x10e0]
mov r8d, 4
lea rdx, str.___
lea rcx, [rsp + 0xe0]
call fcn.1400213cc
cmp eax, edi
sete r15b
cmp r15b, dil
je 0x1400077a4
lea rbx, [rsp + 0xe8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0xe8]
call fcn.1400213cc
cmp eax, edi
jne 0x1400077a4
mov eax, 0x5c
mov word [rsp + 0x10e0], ax
lea r14, [rsp + 0x10e2]
lea rbx, [rsp + 0xee]
mov rdx, rbx
mov rcx, r14
call fcn.14002095c
lea rcx, [rsp + 0x10e0]
call fcn.140020914
mov rbx, rax
mov qword [rsp + 0x3168], rax
cmp byte [r13 + 0x51a3], dil
jne 0x140007811
cmp r15b, dil
jne 0x1400077fb
lea rcx, [rsi + 0x110c]
call fcn.14000be10
cmp al, dil
jne 0x1400077fb
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 0x110c]
call fcn.1400072c0
cmp al, dil
jne 0x140007811
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x14000780a
call fcn.140020800
xor al, al
jmp 0x140007ba3
mov dl, 1
mov rcx, rbp
call fcn.14000ab68
cmp byte [rsi + 0x10f1], dil
jne 0x14000787d
cmp byte [rsi + 0x210c], dil
jne 0x14000787d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140007872
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x14000786b
call fcn.140020800
xor al, al
jmp 0x140007ba3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400078a2
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x1400078a2
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x14000789b
call fcn.140020800
xor al, al
jmp 0x140007ba3
mov eax, dword [rsi + 0x1108]
mov edx, 8
cmp eax, 3
jne 0x140007936
mov r12, qword [rsp + 0x40]
mov dword [r12], 0xa0000003
mov r15, qword [rsp + 0x3160]
lea eax, [rbx + r15 + 6]
add ax, ax
mov word [r12 + 4], ax
mov word [r12 + 6], di
mov word [r12 + 8], di
movzx ebx, r15w
add bx, bx
mov word [r12 + 0xa], bx
lea rcx, [r12 + 0x10]
lea rdx, [rsp + 0xe0]
call fcn.14002095c
add bx, 2
mov word [r12 + 0xc], bx
mov rax, qword [rsp + 0x3168]
add ax, ax
mov word [r12 + 0xe], ax
lea rcx, [r12 + r15*2 + 0x12]
lea rdx, [rsp + 0x10e0]
call fcn.14002095c
jmp 0x1400079ee
mov r14d, 2
cmp eax, r14d
je 0x14000795c
cmp eax, 1
je 0x14000795c
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007955
call fcn.140020800
xor al, al
jmp 0x140007ba3
mov r12, qword [rsp + 0x40]
mov dword [r12], 0xa000000c
mov rcx, qword [rsp + 0x3160]
lea eax, [rbx + rcx]
add ax, dx
add ax, ax
mov word [r12 + 4], ax
mov word [r12 + 6], di
mov word [r12 + 8], di
movzx ebx, cx
add bx, bx
mov word [r12 + 0xa], bx
lea rcx, [r12 + 0x14]
lea rdx, [rsp + 0xe0]
call fcn.14002095c
add bx, r14w
mov word [r12 + 0xc], bx
mov rax, qword [rsp + 0x3168]
add ax, ax
mov word [r12 + 0xe], ax
mov rax, qword [rsp + 0x3160]
lea rcx, [r12 + rax*2 + 0x16]
lea rdx, [rsp + 0x10e0]
call fcn.14002095c
mov r11d, edi
cmp r15b, dil
sete r11b
mov dword [r12 + 0x10], r11d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140007a2f
mov rcx, r12
call fcn.140020800
xor al, al
jmp 0x140007ba3
movzx r9d, word [r12 + 4]
add r9d, 8
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x3150]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r8, r12
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
jne 0x140007af3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbp
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140001e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007ab3
mov dword [rsp + 0xd0], edi
mov dword [rsp + 0xd4], edi
mov dword [rsp + 0xd8], 0x16
lea rcx, [rsp + 0x70]
call fcn.140015120
lea rcx, [0x14003bb98]
call entry0
mov edx, 9
lea rcx, [0x14003bb98]
call fcn.140006e94
cmp byte [rsi + 0x10f1], dil
je 0x140007ae4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007aee
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007b98
lea rcx, [rsp + 0x20e0]
call fcn.140009ce8
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a03c
mov qword [rsp + 0x20e8], rbx
mov eax, dword [r13 + 0x62ac]
lea rcx, [rsi + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x62a8]
lea rcx, [rsi + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x62a4]
lea rcx, [rsi + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0x20e0]
call fcn.14000a420
lea rcx, [rsp + 0x20e0]
call fcn.14000a03c
cmp byte [r13 + 0x51b3], dil
jne 0x140007b87
mov edx, dword [rsi + 0x1c]
mov rcx, rbp
call fcn.14000a800
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a32c
nop
mov dil, 1
mov rcx, r12
call fcn.140020800
mov al, dil
mov rbx, qword [rsp + 0x3158]
add rsp, 0x3110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret