Function at 0x140007924
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.14002af30
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 [0x140038d72], dil
jne 0x140007981
lea rcx, str.SeRestorePrivilege
call fcn.1400074c8
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400074c8
mov byte [0x140038d72], 1
mov dl, 1
mov rcx, rsi
call fcn.14000ad24
cmp byte [rbp + 0x10f1], dil
jne 0x1400079de
cmp byte [rbp + 0x210c], dil
jne 0x1400079de
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 0x1400079d3
xor al, al
jmp 0x140007da9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400079f4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x1400079f4
xor al, al
jmp 0x140007da9
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.140001104
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.140014420
lea rcx, [rsp + 0x70]
call fcn.140020788
mov r13, rax
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x70]
lea r12, [rsp + 0x1070]
mov r15d, 4
mov r8, r15
lea rdx, str.___
lea rcx, [rsp + 0x70]
call fcn.1400213f8
cmp eax, edi
sete al
mov byte [rsp + 0x30f0], al
cmp al, dil
je 0x140007aaf
lea rbx, [rsp + 0x78]
mov r8, r15
lea rdx, str.UNC_
lea rcx, [rsp + 0x78]
call fcn.1400213f8
cmp eax, edi
jne 0x140007aaf
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.1400207d0
lea rcx, [rsp + 0x1070]
call fcn.140020788
mov r15, rax
mov ecx, dword [rbp + 0x1108]
mov edx, 8
cmp ecx, 3
jne 0x140007b4d
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.1400207d0
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.1400207d0
jmp 0x140007bf9
mov r13d, 2
cmp ecx, r13d
je 0x140007b73
cmp ecx, 1
je 0x140007b73
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x140007b6c
call fcn.140020640
xor al, al
jmp 0x140007da9
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.1400207d0
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.1400207d0
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 0x140007c3a
mov rcx, r12
call fcn.140020640
xor al, al
jmp 0x140007da9
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 0x140007cf9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xdc
call fcn.14000e7a4
mov rdx, rax
mov r8, rsi
xor ecx, ecx
call fcn.140011100
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007cb9
mov ecx, 0xe1
call fcn.14000e7a4
mov rdx, rax
xor ecx, ecx
call fcn.140011100
lea rcx, [0x140038d88]
call fcn.140001000
mov edx, 9
lea rcx, [0x140038d88]
call fcn.140007040
cmp byte [rbp + 0x10f1], dil
je 0x140007cea
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007cf4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007d9e
lea rcx, [rsp + 0x2070]
call fcn.140009ee4
nop
lea rcx, [rsp + 0x2070]
call fcn.14000a208
mov qword [rsp + 0x2078], rbx
mov eax, dword [r14 + 0x62ac]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r14 + 0x62a8]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r14 + 0x62a4]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0x2070]
call fcn.14000a5ec
lea rcx, [rsp + 0x2070]
call fcn.14000a208
cmp byte [r14 + 0x51b3], dil
jne 0x140007d8d
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.14000a9cc
nop
lea rcx, [rsp + 0x2070]
call fcn.14000a4ec
nop
mov dil, 1
mov rcx, r12
call fcn.140020640
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