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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3010]
mov eax, 0x3110
call fcn.140021ac0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x3158], rbx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
mov r14d, 1
cmp byte [0x140046f53], 0
jne 0x1400076ad
lea rcx, str.SeRestorePrivilege
call fcn.140008178
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.140008178
mov byte [0x140046f53], r14b
mov edx, 0x1418
lea rcx, [rsp + 0x48]
call fcn.140001420
nop
lea r15, [rdi + 0x1114]
mov r8d, 0x800
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.14001084c
lea rcx, [rbp - 0x20]
call fcn.1400257a4
mov qword [rbp + 0x3068], rax
lea rbx, [rbp - 0x20]
lea r12, [rbp + 0xfe0]
mov r8d, 4
lea rdx, str.___
lea rcx, [rbp - 0x20]
call fcn.140026f38
test eax, eax
sete al
mov byte [rbp + 0x3050], al
test al, al
je 0x14000774b
lea rbx, [rbp - 0x18]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rbp - 0x18]
call fcn.140026f38
test eax, eax
jne 0x14000774b
mov eax, 0x5c
mov word [rbp + 0xfe0], ax
lea r12, [rbp + 0xfe2]
lea rbx, [rbp - 0x12]
mov rdx, rbx
mov rcx, r12
call fcn.140025788
lea rcx, [rbp + 0xfe0]
call fcn.1400257a4
mov r12, rax
xor ebx, ebx
cmp byte [r13 + 0x51ab], bl
jne 0x1400077a0
cmp byte [rbp + 0x3050], bl
jne 0x140007aac
mov rcx, r15
call fcn.14000c478
test al, al
jne 0x140007aac
lea rcx, [rdi + 0x20]
mov rdx, r15
call fcn.140007f9c
test al, al
je 0x140007aac
mov dl, r14b
mov rcx, rsi
call fcn.14000a90c
cmp byte [rdi + 0x10f9], bl
jne 0x1400077f6
cmp byte [rdi + 0x2114], bl
jne 0x1400077f6
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140007aac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007809
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140007aac
mov eax, dword [rdi + 0x1110]
mov edx, 8
cmp eax, 3
jne 0x140007889
mov r15, qword [rsp + 0x48]
mov dword [r15], 0xa0000003
mov rcx, qword [rbp + 0x3068]
lea eax, [rcx + 6]
add ax, r12w
add ax, ax
mov word [r15 + 4], ax
mov dword [r15 + 6], ebx
movzx ebx, cx
add bx, bx
mov word [r15 + 0xa], bx
lea rcx, [r15 + 0x10]
lea rdx, [rbp - 0x20]
call fcn.140025788
add bx, 2
mov word [r15 + 0xc], bx
add r12w, r12w
mov word [r15 + 0xe], r12w
mov rax, qword [rbp + 0x3068]
add rax, 9
lea rcx, [r15 + rax*2]
lea rdx, [rbp + 0xfe0]
call fcn.140025788
jmp 0x14000790d
dec eax
cmp eax, r14d
ja 0x140007aac
mov r15, qword [rsp + 0x48]
mov dword [r15], 0xa000000c
mov rcx, qword [rbp + 0x3068]
lea eax, [r12 + rcx]
add ax, dx
add ax, ax
mov word [r15 + 4], ax
mov dword [r15 + 6], ebx
movzx ebx, cx
add bx, bx
mov word [r15 + 0xa], bx
lea rcx, [r15 + 0x14]
lea rdx, [rbp - 0x20]
call fcn.140025788
add bx, 2
mov word [r15 + 0xc], bx
add r12w, r12w
mov word [r15 + 0xe], r12w
mov rax, qword [rbp + 0x3068]
add rax, 0xb
lea rcx, [r15 + rax*2]
lea rdx, [rbp + 0xfe0]
call fcn.140025788
movzx eax, byte [rbp + 0x3050]
xor eax, r14d
mov dword [r15 + 0x10], eax
xor r12d, r12d
mov qword [rsp + 0x30], r12
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
je 0x140007aaa
movzx r9d, word [r15 + 4]
add r9d, 8
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x3060]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r8, r15
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140007a0d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 0x14]
call fcn.140002128
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400079ab
cmp eax, 0x522
jne 0x1400079cd
call fcn.140010a4c
xor ebx, ebx
test al, al
jne 0x1400079cf
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x28], 0x16
lea rcx, [rsp + 0x70]
call fcn.140011c3c
jmp 0x1400079cf
xor ebx, ebx
lea rcx, [0x140046fd8]
call fcn.1400075a4
mov edx, 9
lea rcx, [0x140046fd8]
call fcn.140007560
mov rcx, rsi
cmp byte [rdi + 0x10f9], bl
je 0x140007a02
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007aac
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140007aac
lea rcx, [rbp + 0x1fe0]
call fcn.140009e70
nop
lea rcx, [rbp + 0x1fe0]
call fcn.140009f20
mov qword [rbp + 0x1fe8], rbx
mov eax, dword [r13 + 0x62b4]
lea rcx, [rdi + 0x1058]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x62b0]
lea rcx, [rdi + 0x1050]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x62ac]
lea rcx, [rdi + 0x1048]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp + 0x1fe0]
call fcn.14000a5cc
lea rcx, [rbp + 0x1fe0]
call fcn.140009f20
cmp byte [r13 + 0x51bc], r12b
jne 0x140007a9c
mov edx, dword [rdi + 0x1c]
mov rcx, rsi
call fcn.14000ad98
nop
lea rcx, [rbp + 0x1fe0]
call fcn.140009eac
jmp 0x140007aaf
xor ebx, ebx
mov r14b, bl
lea rcx, [rsp + 0x48]
call fcn.14000166c
mov al, r14b
mov rbx, qword [rsp + 0x3158]
add rsp, 0x3110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0x6da0], 3
jne 0x140007ef1
add r8, 0x22f8
mov rdx, r9
jmp 0x140007644
xor al, al
ret