Function at 0x140011768
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x190
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x14006e368]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, r8
mov qword [rsp + 0x40], rbx
mov r15, rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x60], rdx
xor r13d, r13d
mov dword [rsp + 0x68], r13d
lea r12d, [r13 + 1]
cmp byte [0x140072e5e], r13b
jne 0x1400117e7
lea rcx, str.SeRestorePrivilege
call fcn.140013c58
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.140013c58
mov byte [0x140072e5e], r12b
lea rsi, [rbx + 0x130]
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x50], rax
lea edx, [rax*4 + 0x1c]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r13
lea rcx, [rsp + 0x78]
call fcn.1400011cc
nop
mov rcx, rsi
mov eax, 8
cmp qword [rsi + 0x18], rax
jb 0x140011827
mov rcx, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x20], 4
lea r9, str.___
xor r8d, r8d
mov rdx, rbx
call fcn.140011514
mov r14, rax
mov qword [rsp + 0x58], rax
or rdi, 0xffffffffffffffff
xorps xmm0, xmm0
cmp rax, rdi
je 0x1400118a0
mov qword [rbp - 0x70], r13
movdqu xmmword [rbp - 0x60], xmm0
cmp rbx, 4
jb 0x140012337
lea rax, [rbx - 4]
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140011888
mov rdx, qword [rsi]
add rdx, 8
lea rcx, [rbp - 0x70]
call fcn.1400033a4
lea rax, [rbp - 0x70]
mov ebx, 5
jmp 0x1400118cb
mov qword [rbp - 0x30], r13
movdqu xmmword [rbp - 0x20], xmm0
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400118b6
mov rdx, qword [rsi]
mov r8, rbx
lea rcx, [rbp - 0x30]
call fcn.140008de0
lea rax, [rbp - 0x30]
mov ebx, 2
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov eax, 8
test bl, 2
je 0x14001193b
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x18]
cmp rdx, rax
jb 0x14001193b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011931
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001233d
call fcn.140040ee4
mov eax, 8
test r12b, bl
je 0x14001197f
mov rdx, qword [rbp - 0x58]
cmp rdx, rax
jb 0x14001197f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001197a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012343
call fcn.140040ee4
mov r13, qword [rbp - 0x40]
cmp r14, rdi
je 0x140011a83
lea rcx, [rbp - 0x50]
mov r14d, 8
cmp qword [rbp - 0x38], r14
cmovae rcx, qword [rbp - 0x50]
mov qword [rsp + 0x20], 4
lea r9, str.UNC_
xor r8d, r8d
mov rdx, r13
call fcn.140011514
cmp rax, rdi
je 0x140011a83
xor ebx, ebx
mov qword [rbp - 0x70], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
cmp r13, 3
jb 0x140012349
lea rax, [r13 - 3]
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], r14
cmovae rdx, qword [rbp - 0x50]
add rdx, 6
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
mov r9, r12
lea r8, [0x140058fb4]
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140007180
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rbp - 0x38]
cmp rdx, r14
jb 0x140011a6e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011a69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001234f
call fcn.140040ee4
movups xmmword [rbp - 0x50], xmm6
movups xmmword [rbp - 0x40], xmm7
lea rcx, [rbp - 0x70]
call fcn.140003250
mov r13, qword [rbp - 0x40]
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
cmp byte [rbx + 0x9b], cl
jne 0x140011b02
cmp qword [rsp + 0x58], rdi
jne 0x140011cb6
mov rcx, rsi
call fcn.140022cfc
xor ecx, ecx
test al, al
jne 0x140011cb6
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rcx
mov r8, rdi
inc r8
cmp word [r15 + r8*2], cx
jne 0x140011ac3
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + 0x28]
mov r9, rsi
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.140013750
xor ecx, ecx
test al, al
je 0x140011cbb
mov rbx, qword [rsp + 0x48]
mov qword [rbp - 0x70], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov r8, rdi
inc r8
cmp word [r15 + r8*2], cx
jne 0x140011b11
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
mov r8b, byte [rbx + 0x5f]
mov dl, r12b
lea rcx, [rbp - 0x70]
call fcn.14001ada0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140011b79
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012355
call fcn.140040ee4
xor eax, eax
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov r8, rdi
inc r8
cmp word [r15 + r8*2], ax
jne 0x140011b8a
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rcx, [rbp - 0x70]
call fcn.14001b144
mov bl, al
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140011bec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001235b
call fcn.140040ee4
xor eax, eax
test bl, bl
je 0x140011d32
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov r8, rdi
inc r8
cmp word [r15 + r8*2], ax
jne 0x140011c05
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rcx, [rbp - 0x70]
call fcn.14001b158
mov ecx, eax
call fcn.14001b318
mov bl, al
lea rcx, [rbp - 0x70]
call fcn.140003250
xor eax, eax
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
mov r8, rdi
movdqu xmmword [rbp - 0x60], xmm0
test bl, bl
je 0x140011cd1
inc r8
cmp word [r15 + r8*2], ax
jne 0x140011c50
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rcx, [rbp - 0x70]
call fcn.14001af6c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140011d32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011d2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012331
jmp 0x140011d2d
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + 0x28]
mov r8, rsi
mov ecx, 0x67
call fcn.140001678
jmp 0x140011f1e
inc r8
cmp word [r15 + r8*2], ax
jne 0x140011cd1
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rcx, [rbp - 0x70]
call fcn.14001b058
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140011d32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011d2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012361
call fcn.140040ee4
mov rax, qword [rsp + 0x40]
xor ebx, ebx
cmp byte [rax + 0x111], bl
jne 0x140011ec0
cmp byte [rax + 0x150], bl
jne 0x140011ec0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, rdi
jne 0x140011e07
xor r13d, r13d
mov qword [rbp - 0x70], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
inc rdi
cmp word [r15 + rdi*2], r13w
jne 0x140011d8f
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rdx, [rbp - 0x70]
lea rcx, [0x140072f00]
call fcn.140010b30
nop
mov rdx, qword [rbp - 0x58]
mov esi, 8
cmp rdx, rsi
jb 0x140011f30
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011dfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012367
call fcn.140040ee4
jmp 0x140011f30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, dword [rbx + 0x128]
cmp eax, 3
jne 0x140011ff5
mov dword [r14], 0xa0000003
mov r8, qword [rsp + 0x50]
lea eax, [r13 + 6]
add ax, r8w
add ax, ax
mov word [r14 + 4], ax
and dword [r14 + 6], 0
movzx ecx, r8w
add cx, cx
mov word [r14 + 0xa], cx
cmp qword [rsi + 0x18], 8
jb 0x140011e5b
mov rsi, qword [rsi]
mov rdx, r14
sub rdx, rsi
mov r10d, 2
movzx eax, word [rsi]
mov word [rdx + rsi + 0x10], ax
add rsi, r10
test ax, ax
jne 0x140011e67
add cx, r10w
mov word [r14 + 0xc], cx
add r13w, r13w
mov word [r14 + 0xe], r13w
lea rcx, [rbp - 0x50]
mov esi, 8
cmp qword [rbp - 0x38], rsi
cmovae rcx, qword [rbp - 0x50]
lea rdx, [r8*2 + 0x12]
sub rdx, rcx
add rdx, r14
xor r13d, r13d
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
test ax, ax
jne 0x140011eac
jmp 0x1400120ab
mov qword [rbp - 0x70], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov r8, rdi
inc r8
cmp word [r15 + r8*2], bx
jne 0x140011ecf
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rcx, [rbp - 0x70]
call fcn.14001ad88
mov bl, al
lea rcx, [rbp - 0x70]
call fcn.140003250
test bl, bl
jne 0x140011e10
lea r8, [rsp + 0x60]
lea rdx, [0x140058fd4]
mov ecx, 0x14
call fcn.1400115a4
mov r12d, 9
mov edx, r12d
lea rcx, [0x140072f00]
call fcn.140010fe0
xor r13d, r13d
mov r12b, r13b
mov rdx, qword [rbp - 0x38]
mov eax, 8
cmp rdx, rax
jb 0x140011f77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011f72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001236d
call fcn.140040ee4
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r13w
test r14, r14
je 0x140011fc1
mov rdx, qword [rbp - 0x78]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x140011fb9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001232b
mov rcx, r14
call fcn.140040ee4
mov al, r12b
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140041060
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
dec eax
cmp eax, r12d
ja 0x140011f2d
mov dword [r14], 0xa000000c
mov r8, qword [rsp + 0x50]
lea eax, [r8 + r13]
mov r10d, 8
add ax, r10w
add ax, ax
mov word [r14 + 4], ax
and dword [r14 + 6], 0
movzx ecx, r8w
add cx, cx
mov word [r14 + 0xa], cx
cmp qword [rsi + 0x18], r10
jb 0x14001203c
mov rsi, qword [rsi]
mov rdx, r14
sub rdx, rsi
mov r11d, 2
movzx eax, word [rsi]
mov word [rdx + rsi + 0x14], ax
add rsi, r11
test ax, ax
jne 0x140012048
add cx, r11w
mov word [r14 + 0xc], cx
add r13w, r13w
mov word [r14 + 0xe], r13w
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], r10
cmovae rcx, qword [rbp - 0x50]
lea rdx, [r8*2 + 0x16]
sub rdx, rcx
add rdx, r14
xor r13d, r13d
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r11
test ax, ax
jne 0x140012088
mov eax, r13d
cmp qword [rsp + 0x58], rdi
sete al
mov dword [r14 + 0x10], eax
mov esi, 8
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rdi
jne 0x14001216c
mov qword [rbp - 0x70], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
inc rdi
cmp word [r15 + rdi*2], r13w
jne 0x1400120ec
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
lea rdx, [rbp - 0x70]
lea rcx, [0x140072f00]
call fcn.140010b30
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, rsi
jb 0x140012156
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012151
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012373
call fcn.140040ee4
mov edx, 9
lea rcx, [0x140072f00]
call fcn.140010fe0
jmp 0x140011f30
movzx r9d, word [r14 + 4]
add r9d, esi
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r8, r14
mov edx, 0x900a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001222e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x60]
lea rdx, [0x140058ffc]
mov ecx, 0x15
call fcn.1400115a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400121d7
cmp eax, 0x522
jne 0x1400121ea
call fcn.140032360
test al, al
jne 0x1400121ea
mov ecx, 0x18
call fcn.140003c50
lea rcx, [0x140072f00]
call fcn.140011050
mov edx, 9
lea rcx, [0x140072f00]
call fcn.140010fe0
mov rax, qword [rsp + 0x40]
mov rcx, r15
cmp byte [rax + 0x111], r13b
je 0x140012223
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140011f30
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140011f30
lea rcx, [rbp - 0x10]
call fcn.140019b0c
nop
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x10]
mov rax, qword [rax + 0x10]
call qword [0x140058518]
mov qword [rbp - 8], rbx
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsi + 0x3e0]
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx + 0x70]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [rsi + 0x3dc]
lea rcx, [rbx + 0x68]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [rsi + 0x3d8]
lea rcx, [rbx + 0x60]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14001a610
lea rcx, [rbp - 0x10]
call fcn.140019bf0
cmp byte [rsi + 0x2b2], r13b
jne 0x14001231d
mov qword [rbp - 0x70], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
inc rdi
cmp word [r15 + rdi*2], r13w
jne 0x1400122b5
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400033a4
nop
mov edx, dword [rbx + 0x24]
lea rcx, [rbp - 0x70]
call fcn.14001c06c
nop
mov rdx, qword [rbp - 0x58]
mov eax, 8
cmp rdx, rax
jb 0x14001231d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012317
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012379
call fcn.140040ee4
nop
lea rcx, [rbp - 0x10]
call fcn.140019b64
jmp 0x140011f33
call fcn.140046414
nop
call fcn.140046414
nop
call fcn.140006fc8
nop
call fcn.140046414
nop
call fcn.140046414
int3
call fcn.140006fc8
nop
call fcn.140046414
nop
call fcn.140046414
int3
call fcn.140046414
int3
call fcn.140046414
int3
call fcn.140046414
nop
call fcn.140046414
nop
call fcn.140046414
nop
call fcn.140046414
int3