Function at 0x18001e820
Capabilities:
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov r14d, r8d
mov qword [rbp - 9], rax
mov esi, edx
mov qword [rbp - 1], rax
mov edi, 1
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
call fcn.1800f3bc0
xor r8d, r8d
lea rcx, [rbp - 0x19]
mov rdx, rbx
call fcn.1800f3ec8
test eax, eax
je 0x18001eaa7
mov r12d, 0x800
lea rcx, [rbp - 0x19]
call fcn.1800f41b8
lea rcx, [rbp - 0x19]
mov r15d, eax
call fcn.1800f47dc
test eax, eax
jne 0x18001ea9e
mov r8, qword [rbp - 0x19]
lea edx, [rax + 0x10]
lea rcx, [rbp - 0x19]
call qword [r8 + 0x70]
test eax, eax
je 0x18001e971
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x19]
call fcn.1800f4354
mov rbx, rax
mov rcx, qword [rax]
mov rcx, qword [rcx - 0x18]
test rcx, rcx
je 0x18001e8f1
mov rdx, qword [rcx]
call qword [rdx + 0x20]
test rax, rax
jne 0x18001e908
call fcn.1800f3548
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x20]
test rax, rax
je 0x18001ead0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rdx, qword [rbx]
lea r9, [0x180155a80]
add rax, 0x18
mov dword [rsp + 0x20], 4
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
mov r8d, dword [rdx - 0x10]
call fcn.18000f130
mov rbx, qword [rbp - 0x39]
mov r8d, r14d
mov rcx, rbx
mov edx, esi
call sym.SafeBase64.dll_SetFileDirAttributes
mov edi, eax
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x18001e968
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rdx, qword [rbp - 0x31]
jmp 0x18001ea82
cmp r14d, 2
jne 0x18001e97e
mov ebx, esi
jmp 0x18001ea18
mov rax, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
mov edx, r12d
call qword [rax + 0x70]
xor ebx, ebx
lea rcx, [rbp - 0x19]
test eax, eax
mov edx, 2
mov rax, qword [rbp - 0x19]
cmovne ebx, r12d
call qword [rax + 0x70]
test eax, eax
je 0x18001e9ab
or ebx, 2
mov rax, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
mov edx, 0x80
call qword [rax + 0x70]
test eax, eax
je 0x18001e9c3
bts ebx, 7
mov rax, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
mov edx, 1
call qword [rax + 0x70]
test eax, eax
je 0x18001e9da
or ebx, 1
mov rax, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
mov edx, 4
call qword [rax + 0x70]
test eax, eax
je 0x18001e9f1
or ebx, 4
mov rax, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
mov edx, 0x100
call qword [rax + 0x70]
test eax, eax
je 0x18001ea09
bts ebx, 8
test r14d, r14d
je 0x18001ea12
or ebx, esi
jmp 0x18001ea18
mov eax, esi
not eax
and ebx, eax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.1800f4354
mov edx, ebx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 0x29]
mov edi, eax
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001ea52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test edi, edi
jne 0x18001ea9e
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x19]
call fcn.1800f4354
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
lea rcx, str.SetFileDirAttributes:_name_s_err_x
mov r8d, eax
call sym.SafeBase64.dll_DbgPrintW
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001ea9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r15d, r15d
jne 0x18001e896
lea rcx, [rbp - 0x19]
call fcn.1800f3dc8
mov eax, edi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.180007f70
int3