Function at 0x140017690
Capabilities:
Get file attributes

Disassembly:
jmp 0x140017690
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor r12d, r12d
mov qword [rbp - 0x78], rcx
mov r15, rcx
mov qword [rsp + 0x70], r12
xor ecx, ecx
mov qword [rsp + 0x78], r12
mov esi, r12d
mov r13d, r12d
mov r14d, r12d
mov edi, r12d
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017fae
test al, 0x50
jne 0x140017fae
cmp qword [0x140096f50], r12
jne 0x140017824
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.140012700
mov qword [0x140096f50], rax
test rax, rax
je 0x140017824
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CertCloseStore
mov qword [0x140096f58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CertFreeCertificateContext
mov qword [0x140096f60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CertFindCertificateInStore
mov qword [0x140096f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CryptMsgGetParam
mov qword [0x140096f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CryptQueryObject
mov qword [0x140096f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CertGetNameStringA
mov qword [0x140096f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CryptDecodeObjectEx
mov qword [0x140096f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140096f50]
lea rdx, str.CertGetIssuerCertificateFromStore
mov qword [0x140096f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x140096f98], rax
jmp 0x14001782b
mov rcx, qword [0x140096f98]
cmp qword [0x140096f58], r12
je 0x140017e8d
cmp qword [0x140096f60], r12
je 0x140017e8d
cmp qword [0x140096f68], r12
je 0x140017e8d
cmp qword [0x140096f70], r12
je 0x140017e8d
cmp qword [0x140096f78], r12
je 0x140017e8d
mov rax, qword [0x140096f80]
test rax, rax
je 0x140017e8d
cmp qword [0x140096f88], r12
je 0x140017e8d
cmp qword [0x140096f90], r12
je 0x140017e8d
test rcx, rcx
je 0x140017e8d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x48], rcx
mov r9d, 2
lea rcx, [rsp + 0x70]
mov r8d, 0x400
mov qword [rsp + 0x40], rcx
mov rdx, r15
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x6c]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x28], rcx
lea ecx, [r9 - 1]
mov dword [rsp + 0x20], r12d
call rax
mov r14d, eax
test eax, eax
jne 0x140017901
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140017fb3
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [0x140096f78]
mov r14d, eax
test eax, eax
jne 0x140017934
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140017fb3
mov edx, dword [rsp + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x14001795b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r14d, r12d
jmp 0x140017fb3
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9, rsi
lea edx, [r8 + 6]
call qword [0x140096f78]
mov r14d, eax
test eax, eax
jne 0x14001798e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140017fb3
movups xmm0, xmmword [rsi + 8]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], r12
mov r9d, 0xb0000
movaps xmmword [rbp + 0x40], xmm0
xor r8d, r8d
movups xmm1, xmmword [rsi + 0x18]
mov edx, 0x10001
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x18], xmm1
call qword [0x140096f70]
mov r13, rax
test rax, rax
jne 0x1400179dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r14d, r12d
jmp 0x140017fb3
test rbx, rbx
je 0x1400179fc
mov rcx, r13
call fcn.140011c40
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x140017fb3
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.1400102f0
test eax, eax
jne 0x140017a12
xor eax, eax
mov qword [rbp - 0x80], rax
mov r12, qword [rsp + 0x70]
xor r14d, r14d
xor ebx, ebx
mov qword [rsp + 0x60], r14
cmp dword [rsi + 0x78], ebx
jbe 0x140017b44
nop word [rax + rax]
test r14d, r14d
jne 0x140017b44
lea rcx, [rbx + rbx*2]
lea r15, [rcx*8]
mov rcx, qword [rsi + 0x80]
lea rdx, str.1.2.840.113549.1.9.6
mov rcx, qword [rcx + r15]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140017b39
mov rax, qword [rsi + 0x80]
mov edx, 0x1f4
mov ecx, 0x10001
mov r8, qword [rax + r15 + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov r9d, dword [r8]
mov r8, qword [r8 + 8]
mov dword [rsp + 0x20], 0x8000
call qword [0x140096f90]
test eax, eax
je 0x140017b44
mov rax, qword [rsp + 0x60]
mov r9d, 0xb0000
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov edx, 0x10001
mov rcx, r12
movups xmm0, xmmword [rax + 8]
movaps xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rax + 0x18]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0xe8], xmm1
call qword [0x140096f70]
mov r15, rax
test rax, rax
je 0x140017b44
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x1b0]
call fcn.1400102f0
test eax, eax
je 0x140017b30
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle r14b
mov rcx, r15
call qword [0x140096f68]
inc ebx
cmp ebx, dword [rsi + 0x78]
jb 0x140017a30
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
jne 0x140017c9d
xor r12d, r12d
xor r15d, r15d
mov ebx, r12d
mov qword [rsp + 0x60], r12
cmp dword [rsi + 0x78], r12d
jbe 0x140017c70
mov rcx, qword [rsi + 0x80]
lea rdx, str.1.3.6.1.4.1.311.3.3.1
mov r14d, ebx
lea rax, [r14 + r14*2]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140017b9f
inc ebx
cmp ebx, dword [rsi + 0x78]
jb 0x140017b70
jmp 0x140017c70
mov rax, qword [rsi + 0x80]
lea rdx, [r14 + r14*2]
mov ecx, 0x10001
mov r8, qword [rax + rdx*8 + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov edx, 0x21
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x8000
call qword [0x140096f90]
test eax, eax
je 0x140017c70
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, dword [rcx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140012ef0
mov rbx, rax
test rax, rax
je 0x140017c70
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [rbp + 0x1b0]
movzx eax, word [rbp + 0x1b8]
imul rdx, rcx, 0x64
movzx ecx, word [rbp + 0x1b2]
add rdx, rcx
movzx ecx, word [rbp + 0x1b6]
imul r8, rdx, 0x64
add r8, rcx
imul rcx, r8, 0x64
add rcx, rax
movzx eax, word [rbp + 0x1ba]
imul rdx, rcx, 0x64
add rdx, rax
movzx eax, word [rbp + 0x1bc]
imul rcx, rdx, 0x64
add rcx, rax
cmp rcx, rbx
setbe r15b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15d, r15d
jne 0x140017c9d
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x140017fb3
mov edi, 0x80096005
jmp 0x140017fb3
mov ecx, 0x23f0
call fcn.140012450
mov r12, qword [rbp - 0x78]
test eax, eax
jne 0x140017e3e
mov rcx, r12
call fcn.1400120d0
test eax, eax
je 0x140017e3e
xor eax, eax
xor r15d, r15d
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1c8], rax
mov qword [rbp + 0x1d0], rax
mov dword [rbp + 0x1d8], eax
mov rax, qword [0x140096fa0]
test rax, rax
jne 0x140017d0d
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.140012700
mov qword [0x140096fa0], rax
test rax, rax
je 0x140017e33
cmp qword [0x140096fc8], r15
jne 0x140017d3d
lea rdx, str.OpenSCManagerW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140096fc8], rax
test rax, rax
je 0x140017e33
mov rax, qword [0x140096fa0]
cmp qword [0x140096fd0], r15
jne 0x140017d6d
lea rdx, str.OpenServiceW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140096fd0], rax
test rax, rax
je 0x140017e33
mov rax, qword [0x140096fa0]
cmp qword [0x140096fe0], r15
jne 0x140017d9d
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140096fe0], rax
test rax, rax
je 0x140017e33
mov rax, qword [0x140096fa0]
cmp qword [0x140096fe8], r15
jne 0x140017dc2
lea rdx, str.CloseServiceHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140096fe8], rax
test rax, rax
je 0x140017e33
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x140096fc8]
mov r14, rax
test rax, rax
je 0x140017e2e
mov r8d, 4
lea rdx, str.CryptSvc
mov rcx, rax
call qword [0x140096fd0]
mov rbx, rax
test rax, rax
je 0x140017e25
lea rdx, [rbp + 0x1c0]
mov rcx, rax
call qword [0x140096fe0]
test eax, eax
je 0x140017e1c
mov ecx, dword [rbp + 0x1c4]
add ecx, 0xfffffffc
cmp ecx, 3
setbe r15b
mov rcx, rbx
call qword [0x140096fe8]
mov rcx, r14
call qword [0x140096fe8]
test r15d, r15d
jne 0x140017e3e
xor edi, edi
lea r14d, [rdi + 1]
jmp 0x140017fb3
cmp qword [0x140097030], 0
jne 0x140017e7e
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.140012700
mov qword [0x140097030], rax
test rax, rax
je 0x140017e7e
lea rdx, str.WinVerifyTrust
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [0x140097038], rax
jmp 0x140017e85
mov r15, qword [0x140097038]
xor r14d, r14d
test r15, r15
jne 0x140017e97
mov edi, 0x7e
jmp 0x140017fb3
xor ebx, ebx
nop dword [rax]
xor eax, eax
mov dword [rbp + 0x1b0], 0xaac56b
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x40]
xor edx, edx
mov dword [rbp + 0x1b4], 0x11d0cd44
mov dword [rbp + 0x1b8], 0xc000c28c
lea r8d, [rax + 0x50]
mov dword [rbp + 0x1bc], 0xee95c24f
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x60], 0x20
mov qword [rbp - 0x58], r12
call fcn.140002757
or dword [rbp + 8], 0x1000
lea r8, [rbp - 0x40]
mov eax, 1
mov dword [rbp - 0x40], 0x50
mov dword [rbp - 0x24], eax
lea rdx, [rbp + 0x1b0]
mov dword [rbp - 0x20], eax
mov rcx, 0xffffffffffffffff
lea rax, [rbp - 0x60]
mov dword [rbp - 0x28], 2
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], r14d
call r15
test eax, eax
je 0x140017f4a
inc ebx
mov edi, eax
cmp ebx, 1
jae 0x140017f50
mov r15, qword [0x140097038]
jmp 0x140017ea0
mov r14d, 1
mov r12d, 0x800b010a
cmp edi, r12d
jne 0x140017fb3
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x68], 0
mov rdx, r13
call qword [0x140096f98]
mov r15, rax
test rax, rax
je 0x140017fb3
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.140010a80
test eax, eax
mov ebx, eax
mov eax, 1
mov rcx, r15
cmovne r14d, eax
call qword [0x140096f68]
xor edi, edi
test ebx, ebx
cmove edi, r12d
jmp 0x140017fb3
mov edi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x140017fca
mov rcx, r13
call qword [0x140096f68]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017fdc
xor edx, edx
call qword [0x140096f60]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140017fec
call qword [0x140096f58]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r14d
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140003828
mov rbx, qword [rsp + 0x340]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret