Function at 0x140026850
Capabilities:
Get file attributes

Disassembly:
jmp 0x140026850
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 [0x14016c778]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor r12d, r12d
mov qword [rbp - 0x78], rcx
mov r14, rcx
mov qword [rsp + 0x78], r12
xor ecx, ecx
mov qword [rbp - 0x70], r12
mov esi, r12d
mov r13d, r12d
mov edi, r12d
mov ebx, r12d
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002728d
test al, 0x50
jne 0x14002728d
mov rax, qword [0x14016e310]
test rax, rax
jne 0x1400268ee
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.1400217f0
mov qword [0x14016e310], rax
test rax, rax
je 0x140027283
cmp qword [0x14016e318], rbx
jne 0x14002691e
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e318], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e320], rbx
jne 0x14002694e
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e320], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e328], rbx
jne 0x14002697e
lea rdx, str.CertFreeCertificateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e328], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e330], rbx
jne 0x1400269ae
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e330], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e338], rbx
jne 0x1400269de
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e338], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e340], rbx
jne 0x140026a0e
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e340], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e348], rbx
jne 0x140026a3e
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e348], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e350], rbx
jne 0x140026a6e
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e350], rax
test rax, rax
je 0x140027283
mov rax, qword [0x14016e310]
cmp qword [0x14016e358], rbx
jne 0x140026a97
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e358], rax
test rax, rax
je 0x140027283
cmp qword [0x14016e410], rbx
jne 0x140026ad2
xor edx, edx
lea rcx, str.cryptnet.dll
call fcn.1400217f0
mov qword [0x14016e410], rax
test rax, rax
jne 0x140026ad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, r12d
cmp eax, 0x7e
mov r12d, 1
cmovne r14d, r12d
jmp 0x140026adb
mov r12d, 1
mov r14d, r12d
cmp qword [0x14016e408], rbx
jne 0x140026af9
xor edx, edx
lea rcx, str.cryptbase.dll
call fcn.1400217f0
mov qword [0x14016e408], rax
test r14d, r14d
je 0x140027283
mov rdx, qword [rbp - 0x78]
lea rax, [rbp - 0x70]
xor r14d, r14d
mov r8d, 0x400
mov qword [rsp + 0x50], r14
mov ecx, r12d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea r9d, [r14 + 2]
lea rax, [rbp - 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [0x14016e340]
mov edi, eax
test eax, eax
jne 0x140026b67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140026c3b
mov rcx, qword [rbp - 0x70]
lea rax, [rsp + 0x74]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [0x14016e338]
mov edi, eax
test eax, eax
jne 0x140026b98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140026c3b
mov edx, dword [rsp + 0x74]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140026bbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edi, r14d
jmp 0x140026c3b
mov rcx, qword [rbp - 0x70]
lea rax, [rsp + 0x74]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9, rsi
lea edx, [r8 + 6]
call qword [0x14016e338]
mov edi, eax
test eax, eax
jne 0x140026bea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140026c3b
movups xmm0, xmmword [rsi + 8]
mov rcx, qword [rsp + 0x78]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], r14
mov r9d, 0xb0000
movaps xmmword [rbp + 0x50], xmm0
xor r8d, r8d
movups xmm1, xmmword [rsi + 0x18]
mov edx, 0x10001
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x28], xmm1
call qword [0x14016e330]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140026ca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edi, r14d
mov r13, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x140026c52
mov rcx, r13
call qword [0x14016e328]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140026c64
xor edx, edx
call qword [0x14016e320]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140026c73
call qword [0x14016e318]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140002b94
mov rbx, qword [rsp + 0x340]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r15, r15
je 0x140026cc7
mov rcx, rax
call fcn.140020d70
mov dword [r15], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140026c36
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.14001f0d0
mov rcx, qword [rbp - 0x80]
test eax, eax
mov r13, qword [rsp + 0x78]
cmove rcx, r14
mov qword [rsp + 0x68], r14
xor edi, edi
mov qword [rbp - 0x80], rcx
cmp dword [rsi + 0x78], edi
jbe 0x140026e05
test r14d, r14d
jne 0x140026e05
lea rcx, [rdi + rdi*2]
lea r15, [rcx*8]
mov rcx, qword [rsi + 0x80]
lea rdx, str.1.2.840.113549.1.9.6
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140026dfa
mov rax, qword [rsi + 0x80]
mov edx, 0x1f4
mov ecx, 0x10001
mov r8, qword [r15 + rax + 0x10]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
xor r15d, r15d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x8000
call qword [0x14016e350]
test eax, eax
je 0x140026e05
mov rax, qword [rsp + 0x68]
mov r9d, 0xb0000
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov edx, 0x10001
mov rcx, r13
movups xmm0, xmmword [rax + 8]
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rax + 0x18]
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0xf8], xmm1
call qword [0x14016e330]
mov r15, rax
test rax, rax
je 0x140026e05
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x1c0]
call fcn.14001f0d0
test eax, eax
je 0x140026df1
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle r14b
mov rcx, r15
call qword [0x14016e328]
inc edi
cmp edi, dword [rsi + 0x78]
jb 0x140026cf6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r13d, r13d
test r14d, r14d
jne 0x140026f63
mov r15d, r13d
mov qword [rsp + 0x68], r13
mov edi, r13d
cmp dword [rsi + 0x78], r13d
jbe 0x140026f31
mov rcx, qword [rsi + 0x80]
lea rdx, str.1.3.6.1.4.1.311.3.3.1
mov r14d, edi
lea rax, [r14 + r14*2]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140026e60
inc edi
cmp edi, dword [rsi + 0x78]
jb 0x140026e31
jmp 0x140026f31
mov rax, qword [rsi + 0x80]
lea rdx, [r14 + r14*2]
mov ecx, 0x10001
mov r8, qword [rax + rdx*8 + 0x10]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov edx, 0x21
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x8000
call qword [0x14016e350]
test eax, eax
je 0x140026f31
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov edx, dword [rcx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140021fe0
mov rdi, rax
test rax, rax
je 0x140026f31
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [rbp + 0x1c0]
movzx eax, word [rbp + 0x1c8]
imul rdx, rcx, 0x64
movzx ecx, word [rbp + 0x1c2]
add rdx, rcx
movzx ecx, word [rbp + 0x1c6]
imul r8, rdx, 0x64
add r8, rcx
imul rcx, r8, 0x64
add rcx, rax
movzx eax, word [rbp + 0x1ca]
imul rdx, rcx, 0x64
add rdx, rax
movzx eax, word [rbp + 0x1cc]
imul rcx, rdx, 0x64
add rcx, rax
cmp rcx, rdi
setbe r15b
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15d, r15d
jne 0x140026f63
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
jne 0x140026c3b
mov ebx, 0x80096005
jmp 0x140026c3b
mov ecx, 0x23f0
call fcn.140021530
mov r15, qword [rbp - 0x78]
test eax, eax
jne 0x140027108
mov rcx, r15
call fcn.1400211b0
test eax, eax
je 0x140027108
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x1d0], rax
mov r15d, r13d
mov dword [rbp + 0x1d8], eax
mov rax, qword [0x14016e360]
movups xmmword [rbp + 0x1c0], xmm0
test rax, rax
jne 0x140026fcf
xor edx, edx
lea rcx, [0x140130400]
call fcn.1400217f0
mov qword [0x14016e360], rax
test rax, rax
je 0x1400270f9
cmp qword [0x14016e388], 0
jne 0x140027000
lea rdx, str.OpenSCManagerW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e388], rax
test rax, rax
je 0x1400270f9
mov rax, qword [0x14016e360]
cmp qword [0x14016e390], 0
jne 0x140027031
lea rdx, str.OpenServiceW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e390], rax
test rax, rax
je 0x1400270f9
mov rax, qword [0x14016e360]
cmp qword [0x14016e3a0], 0
jne 0x140027062
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e3a0], rax
test rax, rax
je 0x1400270f9
mov rax, qword [0x14016e360]
cmp qword [0x14016e3a8], 0
jne 0x140027088
lea rdx, str.CloseServiceHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e3a8], rax
test rax, rax
je 0x1400270f9
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x14016e388]
mov r14, rax
test rax, rax
je 0x1400270f4
mov r8d, 4
lea rdx, str.CryptSvc
mov rcx, rax
call qword [0x14016e390]
mov rdi, rax
test rax, rax
je 0x1400270eb
lea rdx, [rbp + 0x1c0]
mov rcx, rax
call qword [0x14016e3a0]
test eax, eax
je 0x1400270e2
mov ecx, dword [rbp + 0x1c4]
add ecx, 0xfffffffc
cmp ecx, 3
setbe r15b
mov rcx, rdi
call qword [0x14016e3a8]
mov rcx, r14
call qword [0x14016e3a8]
test r15d, r15d
jne 0x140027104
mov edi, r12d
mov ebx, r13d
jmp 0x140026c36
mov r15, qword [rbp - 0x78]
mov rcx, qword [0x14016e3f0]
test rcx, rcx
jne 0x140027131
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.1400217f0
mov qword [0x14016e3f0], rax
mov rcx, rax
test rax, rax
je 0x140027156
mov rax, qword [0x14016e3f8]
test rax, rax
jne 0x140027163
lea rdx, str.WinVerifyTrust
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14016e3f8], rax
test rax, rax
jne 0x140027163
mov edi, r13d
mov ebx, 0x7e
jmp 0x140026c36
mov edi, r13d
mov r14d, r13d
nop dword [rax]
lea rcx, [rbp]
mov qword [rbp - 0xc], r13
or dword [rbp - 8], 0x1000
lea r8, [rbp - 0x50]
mov qword [rbp - 0x28], rcx
lea rdx, [rbp + 0x1c0]
xorps xmm0, xmm0
mov dword [rbp + 0x1c0], 0xaac56b
mov rcx, 0xffffffffffffffff
mov dword [rbp + 0x1c4], 0x11d0cd44
mov dword [rbp + 0x1c8], 0xc000c28c
mov dword [rbp + 0x1cc], 0xee95c24f
mov qword [rbp], 0x20
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 8], r15
mov qword [rbp - 0x4c], r13
mov qword [rbp - 0x44], r13
mov dword [rbp - 0x3c], r13d
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x1c], r13
mov qword [rbp - 0x14], r13
mov dword [rbp - 4], r13d
mov dword [rbp - 0x50], 0x50
mov dword [rbp - 0x38], 2
mov dword [rbp - 0x34], r12d
mov dword [rbp - 0x20], r13d
call rax
test eax, eax
je 0x140027224
inc r14d
mov ebx, eax
cmp r14d, 1
jae 0x140027227
mov rax, qword [0x14016e3f8]
jmp 0x140027170
mov edi, r12d
cmp ebx, 0x800b010a
jne 0x140026c36
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r13d
xor r8d, r8d
mov r13, qword [rsp + 0x60]
mov rdx, r13
call qword [0x14016e358]
mov r14, rax
test rax, rax
je 0x140026c3b
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.14001f840
test eax, eax
je 0x140027275
mov edi, r12d
xor ebx, ebx
mov rcx, r14
call qword [0x14016e328]
jmp 0x140026c3b
mov ebx, 0x7e
jmp 0x140026c3b
mov ebx, 2
jmp 0x140026c3b