Function at 0x180021ce0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x84f0
call fcn.180110950
sub rsp, rax
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x84e0], rax
mov rsi, rcx
mov rdi, rdx
lea rcx, str.Kernel32.dll
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.FindFirstStreamW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.Kernel32.dll
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.FindNextStreamW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rbp, rbp
je 0x180021da8
test rax, rax
je 0x180021da8
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call rbp
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180021da8
lea rdx, [rsp + 0x70]
mov rcx, rax
call r14
test eax, eax
je 0x180021da1
nop
lea r8, [rsp + 0x78]
mov rdx, rdi
mov rcx, rsi
call fcn.180021b20
lea rdx, [rsp + 0x70]
mov rcx, rbp
mov ebx, eax
call r14
test eax, eax
jne 0x180021d80
mov eax, ebx
jmp 0x180022012
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180021e13
lea r8, [rsp + 0x4c]
xor ecx, ecx
lea rdx, str.SeBackupPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180021e46
xor eax, eax
jmp 0x180022012
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x8530], r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov rcx, r14
cmp rax, 0xffffffffffffffff
je 0x180022002
mov r9d, 0x8000
mov dword [rsp + 0x20], 0x16
lea r8, [rsp + 0x4e0]
lea rdx, [rsp + 0x58]
lea rbx, [rsp + 0x4e0]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x180021ff6
mov eax, dword [rsp + 0x4e0]
test eax, eax
je 0x180021ff6
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x2d0]
mov r8d, 0x208
add rbx, rax
call fcn.180113150
mov eax, dword [rbx + 4]
lea rcx, [rbx + 0x18]
test rax, rax
je 0x180021f40
test rcx, rcx
je 0x180021f1b
cmp rax, 0x104
ja 0x180021f16
mov rdx, rcx
mov r8d, eax
lea rcx, [rsp + 0x2d0]
call fcn.180112cb0
jmp 0x180021f40
test rcx, rcx
jne 0x180021f28
call fcn.18011a7d0
mov dword [rax], 0x16
jmp 0x180021f3b
cmp rax, 0x104
jbe 0x180021f40
call fcn.18011a7d0
mov dword [rax], 0x22
call fcn.18011a64c
lea r8, [rsp + 0x2d0]
mov rdx, rdi
mov rcx, rsi
call fcn.180021b20
mov ebp, eax
mov eax, dword [rbx]
test eax, eax
jne 0x180021ed0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x180021f7c
mov eax, ebp
jmp 0x18002200a
lea r8, [0x1801560d0]
mov rdx, rdi
mov rcx, rsi
call fcn.180021b20
lea r8, [0x180156100]
mov rdx, rdi
mov rcx, rsi
mov ebx, eax
call fcn.180021b20
lea r8, str.:Zone.Identifier
mov rdx, rdi
mov rcx, rsi
or ebx, eax
call fcn.180021b20
lea r8, str.:favicon
mov rdx, rdi
mov rcx, rsi
or ebx, eax
call fcn.180021b20
lea r8, str.:file.md5
mov rdx, rdi
mov rcx, rsi
or ebx, eax
call fcn.180021b20
lea r8, str.:file.sctime
mov rdx, rdi
mov rcx, rsi
or ebx, eax
call fcn.180021b20
or eax, ebx
jmp 0x18002200a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r15, qword [rsp + 0x8530]
mov rcx, qword [rsp + 0x84e0]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x84f0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret