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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30a0
call fcn.14002ac70
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x30e0], rbx
mov rbp, r8
mov rsi, rdx
mov r14, rcx
xor edi, edi
cmp byte [0x140037d72], dil
jne 0x14000792d
lea rcx, str.SeRestorePrivilege
call fcn.140007474
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.140007474
mov byte [0x140037d72], 1
mov dl, 1
mov rcx, rsi
call fcn.14000acd0
cmp byte [rbp + 0x10f1], dil
jne 0x14000798a
cmp byte [rbp + 0x210c], dil
jne 0x14000798a
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, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000797f
xor al, al
jmp 0x140007d55
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400079a0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x1400079a0
xor al, al
jmp 0x140007d55
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov edx, 0x1418
lea rcx, [rsp + 0x48]
call fcn.140001100
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.1400141cc
lea rcx, [rsp + 0x70]
call fcn.1400204bc
mov r13, rax
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x70]
lea r12, [rsp + 0x1070]
mov r15d, 4
mov r8, r15
lea rdx, [0x14002cd18]
lea rcx, [rsp + 0x70]
call fcn.140021138
cmp eax, edi
sete al
mov byte [rsp + 0x30f0], al
cmp al, dil
je 0x140007a5b
lea rbx, [rsp + 0x78]
mov r8, r15
lea rdx, str.UNC_
lea rcx, [rsp + 0x78]
call fcn.140021138
cmp eax, edi
jne 0x140007a5b
lea eax, [r15 + 0x58]
mov word [rsp + 0x1070], ax
lea r12, [rsp + 0x1072]
lea rbx, [rsp + 0x7e]
mov rdx, rbx
mov rcx, r12
call fcn.140020504
lea rcx, [rsp + 0x1070]
call fcn.1400204bc
mov r15, rax
mov ecx, dword [rbp + 0x1108]
mov edx, 8
cmp ecx, 3
jne 0x140007af9
mov r12, qword [rsp + 0x48]
mov dword [r12], 0xa0000003
lea eax, [rax + r13 + 6]
add ax, ax
mov word [r12 + 4], ax
mov word [r12 + 6], di
mov word [r12 + 8], di
movzx ebx, r13w
add bx, bx
mov word [r12 + 0xa], bx
lea rcx, [r12 + 0x10]
lea rdx, [rsp + 0x70]
call fcn.140020504
add bx, 2
mov word [r12 + 0xc], bx
add r15w, r15w
mov word [r12 + 0xe], r15w
mov rax, qword [rsp + 0x40]
lea rcx, [r12 + rax*2 + 0x12]
lea rdx, [rsp + 0x1070]
call fcn.140020504
jmp 0x140007ba5
mov r13d, 2
cmp ecx, r13d
je 0x140007b1f
cmp ecx, 1
je 0x140007b1f
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x140007b18
call fcn.140020374
xor al, al
jmp 0x140007d55
mov r12, qword [rsp + 0x48]
mov dword [r12], 0xa000000c
mov rcx, qword [rsp + 0x40]
add eax, ecx
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 + 0x70]
call fcn.140020504
add bx, r13w
mov word [r12 + 0xc], bx
add r15w, r15w
mov word [r12 + 0xe], r15w
mov rax, qword [rsp + 0x40]
lea rcx, [r12 + rax*2 + 0x16]
lea rdx, [rsp + 0x1070]
call fcn.140020504
mov r11d, edi
cmp byte [rsp + 0x30f0], 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, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140007be6
mov rcx, r12
call fcn.140020374
xor al, al
jmp 0x140007d55
movzx r9d, word [r12 + 4]
add r9d, 8
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x30f8]
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 0x140007ca5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xdc
call fcn.14000e52c
mov rdx, rax
mov r8, rsi
xor ecx, ecx
call fcn.140010eac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007c65
mov ecx, 0xe1
call fcn.14000e52c
mov rdx, rax
xor ecx, ecx
call fcn.140010eac
lea rcx, [0x140037d88]
call fcn.14000a464
mov edx, 9
lea rcx, [0x140037d88]
call fcn.140006ffc
cmp byte [rbp + 0x10f1], dil
je 0x140007c96
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007ca0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007d4a
lea rcx, [rsp + 0x2070]
call fcn.140009e8c
nop
lea rcx, [rsp + 0x2070]
call fcn.14000a1b0
mov qword [rsp + 0x2078], rbx
mov eax, dword [r14 + 0x62a4]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r14 + 0x62a0]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r14 + 0x629c]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0x2070]
call fcn.14000a598
lea rcx, [rsp + 0x2070]
call fcn.14000a1b0
cmp byte [r14 + 0x51ab], dil
jne 0x140007d39
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.14000a978
nop
lea rcx, [rsp + 0x2070]
call fcn.14000a498
nop
mov dil, 1
mov rcx, r12
call fcn.140020374
mov al, dil
mov rbx, qword [rsp + 0x30e0]
add rsp, 0x30a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret