Function at 0x1401118f0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14011193d
test byte [rcx + 0x1c], 1
je 0x14011193d
cmp byte [rcx + 0x19], 5
jb 0x14011193d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
call fcn.14001dd24
test rdi, rdi
jne 0x14011195a
lea r8, [0x140009698]
lea rcx, [0x140011cb8]
mov edx, 0x186
call fcn.1400a8be8
and qword [rsp + 0x78], 0
xor esi, esi
xor r15b, r15b
mov dword [rsp + 0x70], esi
test r14, r14
je 0x140111975
mov esi, dword [r14]
mov dword [rsp + 0x70], esi
test rbx, rbx
je 0x14011197d
mov byte [rbx], 0
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14010f78c
mov rbp, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x140111bb2
test r14, r14
je 0x1401119a4
test byte [r14], 7
je 0x140111a0f
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.1401116f4
mov edi, eax
test eax, eax
jns 0x140111a08
test rbx, rbx
je 0x1401119bf
mov byte [rbx], 1
mov rcx, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
cmp rcx, rbx
je 0x1401119ff
test byte [rcx + 0x1c], 1
je 0x1401119ff
cmp byte [rcx + 0x19], 2
jb 0x1401119ff
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, CoRevokeClassObject
mov r9d, eax
call fcn.14001de24
mov esi, dword [rsp + 0x70]
jmp 0x140111b2a
mov esi, dword [rsp + 0x70]
jmp 0x140111b31
mov esi, dword [rsp + 0x70]
mov r15b, 1
test sil, 0x10
je 0x140111a94
bt esi, 0xa
jb 0x140111a94
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140111b23
test rbx, rbx
je 0x140111a34
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
cmp rcx, rbx
je 0x140111b31
test byte [rcx + 0x1c], 1
je 0x140111b31
cmp byte [rcx + 0x19], 2
jb 0x140111b31
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, reloc.ole32.dll_CoRevokeClassObject
mov r9, rbp
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
jmp 0x140111b2a
and qword [rsp + 0x30], 0
xor r9d, r9d
mov edx, 0x10000
lea r8d, [r9 + 7]
mov rcx, rbp
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140111b1a
test rbx, rbx
je 0x140111acd
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
cmp rcx, rbx
je 0x140111b31
test byte [rcx + 0x1c], 1
je 0x140111b31
cmp byte [rcx + 0x19], 2
jb 0x140111b31
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, CoDisconnectObject
mov r9d, edi
call fcn.14001de24
jmp 0x140111b2a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
test edi, edi
jns 0x140111bb9
test r15b, r15b
je 0x140111bb9
cmp rcx, rbx
je 0x140111b6b
test byte [rcx + 0x1c], 1
je 0x140111b6b
cmp byte [rcx + 0x19], 4
jb 0x140111b6b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, reloc.ole32.dll_CoDisconnectObject
mov r9, rbp
mov dword [rsp + 0x20], esi
call fcn.14001ecbc
xor r8d, r8d
mov edx, esi
mov rcx, rbp
call fcn.14010e978
test eax, eax
jns 0x140111bb9
mov rcx, qword [0x14017d3a8]
cmp rcx, rbx
je 0x140111bb9
test byte [rcx + 0x1c], 1
je 0x140111bb9
cmp byte [rcx + 0x19], 2
jb 0x140111bb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, 0x14
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x140111bb9
lea rbx, [0x14017d3a8]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [0x14017d3a8]
cmp rcx, rbx
je 0x140111bef
test byte [rcx + 0x1c], 1
je 0x140111bef
cmp byte [rcx + 0x19], 5
jb 0x140111bef
mov rcx, qword [rcx + 0x10]
lea r8, [0x140011ce8]
mov edx, 0x15
call fcn.14001dd24
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret