Function at 0x140007668
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.14002f8d0
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 [0x14003de83], dil
jne 0x1400076c5
lea rcx, str.SeRestorePrivilege
call fcn.140007208
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.140007208
mov byte [0x14003de83], 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.140014278
lea rcx, [rsp + 0xe0]
call fcn.140021b14
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.1400225cc
cmp eax, edi
sete r15b
cmp r15b, dil
je 0x140007790
lea rbx, [rsp + 0xe8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0xe8]
call fcn.1400225cc
cmp eax, edi
jne 0x140007790
mov eax, 0x5c
mov word [rsp + 0x10e0], ax
lea r14, [rsp + 0x10e2]
lea rbx, [rsp + 0xee]
mov rdx, rbx
mov rcx, r14
call fcn.140021b5c
lea rcx, [rsp + 0x10e0]
call fcn.140021b14
mov rbx, rax
mov qword [rsp + 0x3168], rax
cmp byte [r13 + 0x51a3], dil
jne 0x1400077fd
cmp r15b, dil
jne 0x1400077e7
lea rcx, [rsi + 0x110c]
call fcn.14000bde4
cmp al, dil
jne 0x1400077e7
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 0x110c]
call fcn.1400072ac
cmp al, dil
jne 0x1400077fd
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x1400077f6
call fcn.140021a00
xor al, al
jmp 0x140007b8f
mov dl, 1
mov rcx, rbp
call fcn.14000ab54
cmp byte [rsi + 0x10f1], dil
jne 0x140007869
cmp byte [rsi + 0x210c], dil
jne 0x140007869
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 0x14000785e
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007857
call fcn.140021a00
xor al, al
jmp 0x140007b8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000788e
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x14000788e
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007887
call fcn.140021a00
xor al, al
jmp 0x140007b8f
mov eax, dword [rsi + 0x1108]
mov edx, 8
cmp eax, 3
jne 0x140007922
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.140021b5c
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.140021b5c
jmp 0x1400079da
mov r14d, 2
cmp eax, r14d
je 0x140007948
cmp eax, 1
je 0x140007948
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007941
call fcn.140021a00
xor al, al
jmp 0x140007b8f
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.140021b5c
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.140021b5c
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 0x140007a1b
mov rcx, r12
call fcn.140021a00
xor al, al
jmp 0x140007b8f
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 0x140007adf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbp
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140006f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007a9f
mov dword [rsp + 0xd0], edi
mov dword [rsp + 0xd4], edi
mov dword [rsp + 0xd8], 0x16
lea rcx, [rsp + 0x70]
call fcn.1400158c4
lea rcx, [0x14003de98]
call fcn.140001000
mov edx, 9
lea rcx, [0x14003de98]
call fcn.140006e7c
cmp byte [rsi + 0x10f1], dil
je 0x140007ad0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007ada
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007b84
lea rcx, [rsp + 0x20e0]
call fcn.140009cd4
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a028
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.14000a40c
lea rcx, [rsp + 0x20e0]
call fcn.14000a028
cmp byte [r13 + 0x51b3], dil
jne 0x140007b73
mov edx, dword [rsi + 0x1c]
mov rcx, rbp
call fcn.14000a7ec
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a318
nop
mov dil, 1
mov rcx, r12
call fcn.140021a00
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