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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30b0
call fcn.1400d8110
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x3108], rbx
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x30a0], rax
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
cmp byte [0x140132363], bl
jne 0x140035b92
lea rcx, str.SeRestorePrivilege
call fcn.1400346cc
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400346cc
mov byte [0x140132363], 1
mov dl, 1
mov rcx, rsi
call fcn.14003cae4
cmp byte [rbp + 0x10f1], bl
jne 0x140035bed
cmp byte [rbp + 0x210c], bl
jne 0x140035bed
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140035be2
xor al, al
jmp 0x140035ff1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140035c03
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x140035c03
xor al, al
jmp 0x140035ff1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov edx, 0x1418
lea rcx, [rsp + 0x40]
call fcn.14000bf10
nop
lea rdx, [rbp + 0x110c]
mov r8d, 0x800
lea rcx, [rsp + 0x10a0]
call fcn.1400805a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x10a0]
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
lea rdi, [rsp + 0x10a0]
lea r12, [rsp + 0x20a0]
lea r8d, [rax + 4]
lea rdx, [0x1400e31f0]
lea rcx, [rsp + 0x10a0]
call fcn.1400c94cc
cmp eax, ebx
sete r14b
cmp r14b, bl
je 0x140035ccf
lea rdi, [rsp + 0x10a8]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rsp + 0x10a8]
call fcn.1400c94cc
cmp eax, ebx
jne 0x140035ccf
mov eax, 0x5c
mov word [rsp + 0x20a0], ax
lea r12, [rsp + 0x20a2]
lea rdi, [rsp + 0x10ae]
sub r12, rdi
mov r10d, 2
movzx eax, word [rdi]
mov word [r12 + rdi], ax
add rdi, r10
cmp ax, bx
jne 0x140035cd8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20a0]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
mov eax, dword [rbp + 0x1108]
mov ecx, 8
cmp eax, 3
jne 0x140035da3
mov rdi, qword [rsp + 0x40]
mov dword [rdi], 0xa0000003
lea eax, [rdx + r13 + 6]
add ax, ax
mov word [rdi + 4], ax
mov word [rdi + 6], bx
mov word [rdi + 8], bx
movzx r8d, r13w
add r8w, r8w
mov word [rdi + 0xa], r8w
lea rcx, [rsp + 0x10a0]
lea r9, [rdi + 0x10]
lea rax, [rsp + 0x10a0]
sub r9, rax
movzx eax, word [rcx]
mov word [r9 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x140035d57
add r8w, r10w
mov word [rdi + 0xc], r8w
add dx, dx
mov word [rdi + 0xe], dx
lea rcx, [rsp + 0x20a0]
lea rdx, [rdi + r13*2 + 0x12]
lea rax, [rsp + 0x20a0]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x140035d8f
jmp 0x140035e5a
cmp eax, r10d
je 0x140035dc3
cmp eax, 1
je 0x140035dc3
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x140035dbc
call fcn.1400c7040
xor al, al
jmp 0x140035ff1
mov rdi, qword [rsp + 0x40]
mov dword [rdi], 0xa000000c
lea eax, [rdx + r13]
add ax, cx
add ax, ax
mov word [rdi + 4], ax
mov word [rdi + 6], bx
mov word [rdi + 8], bx
movzx r8d, r13w
add r8w, r8w
mov word [rdi + 0xa], r8w
lea rcx, [rsp + 0x10a0]
lea r9, [rdi + 0x14]
lea rax, [rsp + 0x10a0]
sub r9, rax
movzx eax, word [rcx]
mov word [r9 + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x140035e08
add r8w, r10w
mov word [rdi + 0xc], r8w
add dx, dx
mov word [rdi + 0xe], dx
lea rcx, [rsp + 0x20a0]
lea rdx, [rdi + r13*2 + 0x16]
lea rax, [rsp + 0x20a0]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
cmp ax, bx
jne 0x140035e40
mov eax, ebx
cmp r14b, bl
sete al
mov dword [rdi + 0x10], eax
mov qword [rsp + 0x30], rbx
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 r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140035e9b
mov rcx, rdi
call fcn.1400c7040
xor al, al
jmp 0x140035ff1
movzx r9d, word [rdi + 4]
add r9d, 8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov edx, 0x900a4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x140035f55
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x654
call fcn.140076080
mov rdx, rax
mov r8, rsi
xor ecx, ecx
call fcn.1400b1ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140035f16
mov ecx, 0x659
call fcn.140076080
mov rdx, rax
xor ecx, ecx
call fcn.1400b1ef4
lea rcx, [0x140134b90]
call fcn.1400330fc
mov edx, 9
lea rcx, [0x140134b90]
call fcn.140033020
cmp byte [rbp + 0x10f1], bl
je 0x140035f46
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140035f50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x140035fe7
lea rcx, [rsp + 0x70]
call fcn.14003abdc
nop
lea rcx, [rsp + 0x70]
call fcn.14003af08
mov qword [rsp + 0x78], r12
mov eax, dword [r15 + 0x73c4]
lea rcx, [rbp + 0x1050]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r15 + 0x73c0]
lea rcx, [rbp + 0x1048]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r15 + 0x73bc]
lea rcx, [rbp + 0x1040]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.14003b468
lea rcx, [rsp + 0x70]
call fcn.14003af08
cmp byte [r15 + 0x62ce], bl
jne 0x140035fda
mov edx, dword [rbp + 0x1c]
mov rcx, rsi
call fcn.14003bd54
nop
lea rcx, [rsp + 0x70]
call fcn.14003b320
nop
mov bl, 1
mov rcx, rdi
call fcn.1400c7040
mov al, bl
mov rcx, qword [rsp + 0x30a0]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x3108]
add rsp, 0x30b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret