Function at 0x1400078dc
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.14002ecc0
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 0x140007939
lea rcx, str.SeRestorePrivilege
call fcn.14000747c
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.14000747c
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.140001120
nop
mov r8d, 0x800
lea rdx, [rsi + 0x110c]
lea rcx, [rsp + 0xe0]
call fcn.140014580
lea rcx, [rsp + 0xe0]
call fcn.140020f0c
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.1400219bc
cmp eax, edi
sete r15b
cmp r15b, dil
je 0x140007a04
lea rbx, [rsp + 0xe8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0xe8]
call fcn.1400219bc
cmp eax, edi
jne 0x140007a04
mov eax, 0x5c
mov word [rsp + 0x10e0], ax
lea r14, [rsp + 0x10e2]
lea rbx, [rsp + 0xee]
mov rdx, rbx
mov rcx, r14
call fcn.140020f54
lea rcx, [rsp + 0x10e0]
call fcn.140020f0c
mov rbx, rax
mov qword [rsp + 0x3168], rax
cmp byte [r13 + 0x51a3], dil
jne 0x140007a71
cmp r15b, dil
jne 0x140007a5b
lea rcx, [rsi + 0x110c]
call fcn.14000c048
cmp al, dil
jne 0x140007a5b
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 0x110c]
call fcn.140007520
cmp al, dil
jne 0x140007a71
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007a6a
call fcn.140020df8
xor al, al
jmp 0x140007e03
mov dl, 1
mov rcx, rbp
call fcn.14000adb8
cmp byte [rsi + 0x10f1], dil
jne 0x140007add
cmp byte [rsi + 0x210c], dil
jne 0x140007add
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 0x140007ad2
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007acb
call fcn.140020df8
xor al, al
jmp 0x140007e03
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007b02
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x140007b02
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007afb
call fcn.140020df8
xor al, al
jmp 0x140007e03
mov eax, dword [rsi + 0x1108]
mov edx, 8
cmp eax, 3
jne 0x140007b96
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.140020f54
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.140020f54
jmp 0x140007c4e
mov r14d, 2
cmp eax, r14d
je 0x140007bbc
cmp eax, 1
je 0x140007bbc
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x140007bb5
call fcn.140020df8
xor al, al
jmp 0x140007e03
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.140020f54
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.140020f54
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 0x140007c8f
mov rcx, r12
call fcn.140020df8
xor al, al
jmp 0x140007e03
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 0x140007d53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbp
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140001e7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140007d13
mov dword [rsp + 0xd0], edi
mov dword [rsp + 0xd4], edi
mov dword [rsp + 0xd8], 0x16
lea rcx, [rsp + 0x70]
call fcn.1400153d4
lea rcx, [0x14003bb98]
call fcn.140001000
mov edx, 9
lea rcx, [0x14003bb98]
call fcn.140007100
cmp byte [rsi + 0x10f1], dil
je 0x140007d44
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007d4e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140007df8
lea rcx, [rsp + 0x20e0]
call fcn.140009f38
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a28c
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.14000a670
lea rcx, [rsp + 0x20e0]
call fcn.14000a28c
cmp byte [r13 + 0x51b3], dil
jne 0x140007de7
mov edx, dword [rsi + 0x1c]
mov rcx, rbp
call fcn.14000aa50
nop
lea rcx, [rsp + 0x20e0]
call fcn.14000a57c
nop
mov dil, 1
mov rcx, r12
call fcn.140020df8
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