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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3130
call fcn.1800302b0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x3170], rbx
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x3120], rax
mov r12, r8
mov r13, rdx
mov r14, rcx
cmp byte [0x18003ecb3], 0
jne 0x18000bcbd
lea rcx, str.SeRestorePrivilege
call fcn.18000b0a0
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.18000b0a0
mov byte [0x18003ecb3], 1
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], 0x1418
mov edx, 0x1418
xor ecx, ecx
call fcn.180025d38
mov rbx, rax
test rax, rax
jne 0x18000bced
lea rcx, [0x18003ecb8]
call fcn.18000acb0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], 0x1418
mov r8d, 0x800
lea rdx, [r12 + 0x1108]
lea rcx, [rsp + 0x1120]
call fcn.1800175e0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1120]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [rsp + 0x48], rcx
lea rdi, [rsp + 0x1120]
lea rbp, [rsp + 0x2120]
lea r8d, [rax + 4]
lea rdx, str.___
lea rcx, [rsp + 0x1120]
call fcn.180026fd4
test eax, eax
sete dl
mov byte [rsp + 0x40], dl
test dl, dl
je 0x18000bdb5
lea rdi, [rsp + 0x1128]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0x1128]
call fcn.180026fd4
test eax, eax
jne 0x18000bdb1
mov eax, 0x5c
mov word [rsp + 0x2120], ax
lea rbp, [rsp + 0x2122]
lea rdi, [rsp + 0x112e]
movzx edx, byte [rsp + 0x40]
jmp 0x18000bdb5
mov dl, byte [rsp + 0x40]
sub rbp, rdi
nop dword [rax + rax]
movzx eax, word [rdi]
mov word [rdi + rbp], ax
add rdi, 2
test ax, ax
jne 0x18000bdc0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2120]
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
cmp byte [r14 + 0x619f], al
jne 0x18000be1f
test dl, dl
jne 0x18000be0b
lea rcx, [r12 + 0x20]
lea rdx, [r12 + 0x1108]
call fcn.18000b150
test al, al
jne 0x18000be1f
test rbx, rbx
je 0x18000be18
mov rcx, rbx
call fcn.180025cf8
xor al, al
jmp 0x18000c219
mov dl, 1
mov rcx, r13
call fcn.18000fdb0
cmp byte [r12 + 0x10f1], 0
jne 0x18000be8d
cmp byte [r12 + 0x2108], 0
jne 0x18000be8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x18000be82
test rbx, rbx
je 0x18000be7b
mov rcx, rbx
call fcn.180025cf8
xor al, al
jmp 0x18000c219
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000beb0
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000beb0
test rbx, rbx
je 0x18000bea9
mov rcx, rbx
call fcn.180025cf8
xor al, al
jmp 0x18000c219
mov eax, dword [r12 + 0x1104]
cmp eax, 3
jne 0x18000bf65
mov dword [rbx], 0xa0000003
mov r8, qword [rsp + 0x48]
lea eax, [rbp + r8 + 6]
add ax, ax
mov word [rbx + 4], ax
mov word [rbx + 6], si
mov word [rbx + 8], si
movzx edi, r8w
add di, di
mov word [rbx + 0xa], di
lea rcx, [rsp + 0x1120]
lea rdx, [rbx + 0x10]
lea rax, [rsp + 0x1120]
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x18000bf10
add di, 2
mov word [rbx + 0xc], di
add bp, bp
mov word [rbx + 0xe], bp
lea rcx, [rsp + 0x2120]
lea rdx, [rbx + r8*2 + 0x12]
lea rax, [rsp + 0x2120]
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x18000bf50
jmp 0x18000c02c
cmp eax, 2
je 0x18000bf83
cmp eax, 1
je 0x18000bf83
test rbx, rbx
je 0x18000bf7c
mov rcx, rbx
call fcn.180025cf8
xor al, al
jmp 0x18000c219
mov dword [rbx], 0xa000000c
mov r8, qword [rsp + 0x48]
lea eax, [rbp + r8 + 8]
add ax, ax
mov word [rbx + 4], ax
mov word [rbx + 6], si
mov word [rbx + 8], si
movzx edi, r8w
add di, di
mov word [rbx + 0xa], di
lea rcx, [rsp + 0x1120]
lea rdx, [rbx + 0x14]
lea rax, [rsp + 0x1120]
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x18000bfd0
add di, 2
mov word [rbx + 0xc], di
add bp, bp
mov word [rbx + 0xe], bp
lea rcx, [rsp + 0x2120]
lea rdx, [rbx + r8*2 + 0x16]
lea rax, [rsp + 0x2120]
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x18000c010
mov eax, esi
cmp byte [rsp + 0x40], al
sete al
mov dword [rbx + 0x10], eax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000c06d
mov rcx, rbx
call fcn.180025cf8
xor al, al
jmp 0x18000c219
movzx r9d, word [rbx + 4]
add r9d, 8
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov edx, 0x900a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18000c169
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0xe4], esi
mov dword [rsp + 0xe8], 0x14
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r13
mov dword [rsp + 0xe0], 2
lea rcx, [rsp + 0x80]
call fcn.1800183d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x18000c11d
mov dword [rsp + 0xe0], esi
mov dword [rsp + 0xe4], esi
mov dword [rsp + 0xe8], 0x16
lea rcx, [rsp + 0x80]
call fcn.1800183d0
lea rcx, [0x18003ecb8]
call fcn.1800183d0
mov edx, 9
lea rcx, [0x18003ecb8]
call fcn.18000ab90
cmp byte [r12 + 0x10f1], 0
je 0x18000c150
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18000c15a
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, rbx
call fcn.180025cf8
xor al, al
jmp 0x18000c219
lea rcx, [rsp + 0xf0]
call fcn.18000eb30
nop
lea rcx, [rsp + 0xf0]
call fcn.18000eef0
mov qword [rsp + 0xf8], rdi
cmp dword [r14 + 0x73a8], 0
jne 0x18000c19b
mov r9, rsi
jmp 0x18000c1a3
lea r9, [r12 + 0x1050]
cmp dword [r14 + 0x73a4], 0
jne 0x18000c1b2
mov r8, rsi
jmp 0x18000c1ba
lea r8, [r12 + 0x1048]
cmp dword [r14 + 0x73a0], 0
je 0x18000c1cc
lea rsi, [r12 + 0x1040]
mov rdx, rsi
lea rcx, [rsp + 0xf0]
call fcn.18000f3c0
lea rcx, [rsp + 0xf0]
call fcn.18000eef0
cmp byte [r14 + 0x62b0], 0
jne 0x18000c201
mov edx, dword [r12 + 0x1c]
mov rcx, r13
call fcn.18000f870
nop
lea rcx, [rsp + 0xf0]
call fcn.18000f250
nop
mov rcx, rbx
call fcn.180025cf8
mov al, 1
mov rcx, qword [rsp + 0x3120]
xor rcx, rsp
call fcn.180025eb0
mov rbx, qword [rsp + 0x3170]
add rsp, 0x3130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0xc42c], 3
jne 0x18000c2e9
add r8, 0x79a0
mov rdx, r9
jmp 0x18000bc50
xor al, al
ret