Function at 0x140007814
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.14002ea50
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 0x140007871
lea rcx, str.SeRestorePrivilege
call fcn.1400073b4
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400073b4
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.140001100
nop
mov r8d, 0x800
lea rdx, [rsi + 0x110c]
lea rcx, [rsp + 0xe0]
call fcn.140014338
lea rcx, [rsp + 0xe0]
call fcn.140020c58
mov qword [rsp + 0x3160], rax
lea rbx, [rsp + 0xe0]
lea r12, [rsp + 0x10e0]
mov r8d, 4
lea rdx, str.___
lea rcx, [rsp + 0xe0]
call fcn.14002174c
cmp eax, edi
sete r15b
cmp r15b, dil
je 0x14000793c
lea rbx, [rsp + 0xe8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0xe8]
call fcn.14002174c
cmp eax, edi
jne 0x14000793c
mov eax, 0x5c
mov word [rsp + 0x10e0], ax
lea r12, [rsp + 0x10e2]
lea rbx, [rsp + 0xee]
mov rdx, rbx
mov rcx, r12
call fcn.140020ca0
lea rcx, [rsp + 0x10e0]
call fcn.140020c58
mov rbx, rax
mov qword [rsp + 0x3168], rax
cmp byte [r13 + 0x51a3], dil
jne 0x140007998
cmp r15b, dil
jne 0x140007982
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 0x110c]
call fcn.140007458
cmp al, dil
jne 0x140007998
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007991
call fcn.140020b44
xor al, al
jmp 0x140007d2a
mov dl, 1
mov rcx, rbp
call fcn.14000acb8
cmp byte [rsi + 0x10f1], dil
jne 0x140007a04
cmp byte [rsi + 0x210c], dil
jne 0x140007a04
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 0x1400079f9
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x1400079f2
call fcn.140020b44
xor al, al
jmp 0x140007d2a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007a29
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x140007a29
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007a22
call fcn.140020b44
xor al, al
jmp 0x140007d2a
mov eax, dword [rsi + 0x1108]
mov edx, 8
cmp eax, 3
jne 0x140007abd
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.140020ca0
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.140020ca0
jmp 0x140007b75
mov r14d, 2
cmp eax, r14d
je 0x140007ae3
cmp eax, 1
je 0x140007ae3
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007adc
call fcn.140020b44
xor al, al
jmp 0x140007d2a
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.140020ca0
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.140020ca0
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 0x140007bb6
mov rcx, r12
call fcn.140020b44
xor al, al
jmp 0x140007d2a
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 0x140007c7a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbp
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140001e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007c3a
mov dword [rsp + 0xd0], edi
mov dword [rsp + 0xd4], edi
mov dword [rsp + 0xd8], 0x16
lea rcx, [rsp + 0x70]
call fcn.140015134
lea rcx, [0x14003bb98]
call fcn.140027eec
mov edx, 9
lea rcx, [0x14003bb98]
call fcn.140007068
cmp byte [rsi + 0x10f1], dil
je 0x140007c6b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007c75
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007d1f
lea rcx, [rsp + 0x20e0]
call fcn.140009e38
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a18c
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.14000a570
lea rcx, [rsp + 0x20e0]
call fcn.14000a18c
cmp byte [r13 + 0x51b3], dil
jne 0x140007d0e
mov edx, dword [rsi + 0x1c]
mov rcx, rbp
call fcn.14000a950
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a47c
nop
mov dil, 1
mov rcx, r12
call fcn.140020b44
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