Function at 0x1400639c0
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 - 0x3040]
mov eax, 0x3140
call fcn.1400f1270
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x3198], rbx
mov rax, qword [0x1401412b0]
xor rax, rsp
mov qword [rbp + 0x3030], rax
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
lea r15d, [rbx + 1]
cmp byte [0x14017c90f], bl
jne 0x140063a3b
lea rcx, str.SeRestorePrivilege
call fcn.1400656b4
lea rcx, str.SeCreateSymbolicLinkPrivilege
call fcn.1400656b4
mov byte [0x14017c90f], r15b
mov edx, 0x1418
lea rcx, [rsp + 0x60]
call fcn.140004068
nop
lea r13, [rsi + 0x1114]
mov r8d, 0x800
mov rdx, r13
lea rcx, [rbp + 0x1030]
call fcn.14008e2e4
lea rax, [rbp + 0x1030]
or r12, 0xffffffffffffffff
inc r12
cmp word [rax + r12*2], bx
jne 0x140063a72
lea rbx, [rbp + 0x1030]
lea r14, [rbp + 0x2030]
mov r8d, 4
lea rdx, [0x140117168]
lea rcx, [rbp + 0x1030]
call fcn.1400f8574
test eax, eax
sete cl
mov byte [rsp + 0x40], cl
test cl, cl
je 0x140063af2
lea rbx, [rbp + 0x1038]
mov r8d, 4
lea rdx, str.UNC_
lea rcx, [rbp + 0x1038]
call fcn.1400f8574
mov cl, byte [rsp + 0x40]
test eax, eax
jne 0x140063af2
mov eax, 0x5c
mov word [rbp + 0x2030], ax
lea r14, [rbp + 0x2032]
lea rbx, [rbp + 0x103e]
sub r14, rbx
mov r8d, 2
movzx eax, word [rbx]
mov word [r14 + rbx], ax
add rbx, r8
test ax, ax
jne 0x140063afb
lea rax, [rbp + 0x2030]
or r14, 0xffffffffffffffff
xor ebx, ebx
inc r14
cmp word [rax + r14*2], bx
jne 0x140063b18
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x61b3], bl
jne 0x140063b68
test cl, cl
jne 0x140063ead
mov rcx, r13
call fcn.14007908c
test al, al
jne 0x140063ead
lea rdx, [rsi + 0x20]
mov r9, r13
mov r8, rdi
mov r13, qword [rsp + 0x48]
mov rcx, r13
call fcn.140064f44
test al, al
je 0x140063ead
jmp 0x140063b6b
mov r13, rax
mov dl, r15b
mov rcx, rdi
call fcn.140068ee4
cmp byte [rsi + 0x10f9], bl
jne 0x140063bc1
cmp byte [rsi + 0x2114], bl
jne 0x140063bc1
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140063ead
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140063bd4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140063ead
mov eax, dword [rsi + 0x1110]
mov ecx, 8
cmp eax, 3
jne 0x140063c80
mov rbx, qword [rsp + 0x60]
mov dword [rbx], 0xa0000003
lea eax, [r12 + 6]
add ax, r14w
add ax, ax
mov word [rbx + 4], ax
xor r9d, r9d
mov dword [rbx + 6], r9d
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0x1030]
lea rax, [rbp + 0x1030]
mov r8, rbx
sub r8, rax
lea r10d, [r9 + 2]
movzx eax, word [rcx]
mov word [r8 + rcx + 0x10], ax
add rcx, r10
test ax, ax
jne 0x140063c2d
add dx, r10w
mov word [rbx + 0xc], dx
add r14w, r14w
mov word [rbx + 0xe], r14w
lea rcx, [rbp + 0x2030]
lea rax, [r12*2 + 0x12]
lea rdx, [rbp + 0x2030]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
test ax, ax
jne 0x140063c6c
jmp 0x140063d27
dec eax
cmp eax, r15d
ja 0x140063ead
mov rbx, qword [rsp + 0x60]
mov dword [rbx], 0xa000000c
lea eax, [r14 + r12]
add ax, cx
add ax, ax
mov word [rbx + 4], ax
xor r9d, r9d
mov dword [rbx + 6], r9d
movzx edx, r12w
add dx, dx
mov word [rbx + 0xa], dx
lea rcx, [rbp + 0x1030]
lea rax, [rbp + 0x1030]
mov r8, rbx
sub r8, rax
lea r10d, [r9 + 2]
movzx eax, word [rcx]
mov word [r8 + rcx + 0x14], ax
add rcx, r10
test ax, ax
jne 0x140063cce
add dx, r10w
mov word [rbx + 0xc], dx
add r14w, r14w
mov word [rbx + 0xe], r14w
lea rcx, [rbp + 0x2030]
lea rax, [r12*2 + 0x16]
lea rdx, [rbp + 0x2030]
sub rax, rdx
lea rdx, [rax + rbx]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, r10
test ax, ax
jne 0x140063d0d
movzx eax, byte [rsp + 0x40]
xor eax, r15d
mov dword [rbx + 0x10], eax
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140063eab
movzx r9d, word [rbx + 4]
add r9d, 8
xor ecx, ecx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov edx, 0x900a4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
test eax, eax
jne 0x140063e1e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rdi
xor edx, edx
lea ecx, [rbx + 0x15]
call fcn.140004010
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140063dc3
cmp eax, 0x522
jne 0x140063de0
call fcn.14008eb08
test al, al
jne 0x140063de0
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], 0x18
lea rcx, [rbp - 0x70]
call fcn.14008fc50
lea rcx, [0x14017f200]
call fcn.14006355c
mov edx, 9
lea rcx, [0x14017f200]
call fcn.140063514
mov rcx, rdi
cmp byte [rsi + 0x10f9], bl
je 0x140063e13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140063ead
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140063ead
lea rcx, [rbp]
call fcn.140067cfc
nop
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + 0x10]
mov qword [rbp + 8], r14
mov eax, dword [r13 + 0x73d8]
lea rcx, [rsi + 0x1058]
neg eax
sbb r9, r9
and r9, rcx
mov eax, dword [r13 + 0x73d4]
lea rcx, [rsi + 0x1050]
neg eax
sbb r8, r8
and r8, rcx
mov eax, dword [r13 + 0x73d0]
lea rcx, [rsi + 0x1048]
neg eax
sbb rdx, rdx
and rdx, rcx
lea rcx, [rbp]
call fcn.1400686d8
lea rcx, [rbp]
call fcn.140067dec
cmp byte [r13 + 0x62de], bl
jne 0x140063ea0
mov edx, dword [rsi + 0x1c]
mov rcx, rdi
call fcn.140069d44
nop
lea rcx, [rbp]
call fcn.140067d38
jmp 0x140063eb0
xor ebx, ebx
mov r15b, bl
lea rcx, [rsp + 0x60]
call fcn.14000413c
mov al, r15b
mov rcx, qword [rbp + 0x3030]
xor rcx, rsp
call fcn.1400f12e0
mov rbx, qword [rsp + 0x3198]
add rsp, 0x3140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r8 + 0x7f68], 3
jne 0x140064991
add r8, 0x3518
mov rdx, r9
jmp 0x1400639c0
xor al, al
ret