Function at 0x140018490
Capabilities:
Get file attributes

Disassembly:
jmp 0x140018490
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 [0x14009b798]
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 0x140018ecd
test al, 0x50
jne 0x140018ecd
mov rax, qword [0x14009d090]
test rax, rax
jne 0x14001852e
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.140013430
mov qword [0x14009d090], rax
test rax, rax
je 0x140018ec3
cmp qword [0x14009d098], rbx
jne 0x14001855e
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d098], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0a0], rbx
jne 0x14001858e
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0a0], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0a8], rbx
jne 0x1400185be
lea rdx, str.CertFreeCertificateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0a8], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0b0], rbx
jne 0x1400185ee
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0b0], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0b8], rbx
jne 0x14001861e
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0b8], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0c0], rbx
jne 0x14001864e
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0c0], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0c8], rbx
jne 0x14001867e
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0c8], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0d0], rbx
jne 0x1400186ae
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0d0], rax
test rax, rax
je 0x140018ec3
mov rax, qword [0x14009d090]
cmp qword [0x14009d0d8], rbx
jne 0x1400186d7
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d0d8], rax
test rax, rax
je 0x140018ec3
cmp qword [0x14009d190], rbx
jne 0x140018712
xor edx, edx
lea rcx, str.cryptnet.dll
call fcn.140013430
mov qword [0x14009d190], rax
test rax, rax
jne 0x140018712
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, r12d
cmp eax, 0x7e
mov r12d, 1
cmovne r14d, r12d
jmp 0x14001871b
mov r12d, 1
mov r14d, r12d
cmp qword [0x14009d188], rbx
jne 0x140018739
xor edx, edx
lea rcx, str.cryptbase.dll
call fcn.140013430
mov qword [0x14009d188], rax
test r14d, r14d
je 0x140018ec3
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 [0x14009d0c0]
mov edi, eax
test eax, eax
jne 0x1400187a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14001887b
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 [0x14009d0b8]
mov edi, eax
test eax, eax
jne 0x1400187d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14001887b
mov edx, dword [rsp + 0x74]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400187fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edi, r14d
jmp 0x14001887b
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 [0x14009d0b8]
mov edi, eax
test eax, eax
jne 0x14001882a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14001887b
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 [0x14009d0b0]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400188e7
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 0x140018892
mov rcx, r13
call qword [0x14009d0a8]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400188a4
xor edx, edx
call qword [0x14009d0a0]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400188b3
call qword [0x14009d098]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140001d2a
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 0x140018907
mov rcx, rax
call fcn.1400129b0
mov dword [r15], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140018876
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.140010d10
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 0x140018a45
test r14d, r14d
jne 0x140018a45
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 0x140018a3a
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 [0x14009d0d0]
test eax, eax
je 0x140018a45
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 [0x14009d0b0]
mov r15, rax
test rax, rax
je 0x140018a45
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x1c0]
call fcn.140010d10
test eax, eax
je 0x140018a31
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 [0x14009d0a8]
inc edi
cmp edi, dword [rsi + 0x78]
jb 0x140018936
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r13d, r13d
test r14d, r14d
jne 0x140018ba3
mov r15d, r13d
mov qword [rsp + 0x68], r13
mov edi, r13d
cmp dword [rsi + 0x78], r13d
jbe 0x140018b71
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 0x140018aa0
inc edi
cmp edi, dword [rsi + 0x78]
jb 0x140018a71
jmp 0x140018b71
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 [0x14009d0d0]
test eax, eax
je 0x140018b71
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov edx, dword [rcx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140013c20
mov rdi, rax
test rax, rax
je 0x140018b71
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 0x140018ba3
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
jne 0x14001887b
mov ebx, 0x80096005
jmp 0x14001887b
mov ecx, 0x23f0
call fcn.140013170
mov r15, qword [rbp - 0x78]
test eax, eax
jne 0x140018d48
mov rcx, r15
call fcn.140012df0
test eax, eax
je 0x140018d48
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x1d0], rax
mov r15d, r13d
mov dword [rbp + 0x1d8], eax
mov rax, qword [0x14009d0e0]
movups xmmword [rbp + 0x1c0], xmm0
test rax, rax
jne 0x140018c0f
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.140013430
mov qword [0x14009d0e0], rax
test rax, rax
je 0x140018d39
cmp qword [0x14009d108], 0
jne 0x140018c40
lea rdx, str.OpenSCManagerW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d108], rax
test rax, rax
je 0x140018d39
mov rax, qword [0x14009d0e0]
cmp qword [0x14009d110], 0
jne 0x140018c71
lea rdx, str.OpenServiceW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d110], rax
test rax, rax
je 0x140018d39
mov rax, qword [0x14009d0e0]
cmp qword [0x14009d120], 0
jne 0x140018ca2
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d120], rax
test rax, rax
je 0x140018d39
mov rax, qword [0x14009d0e0]
cmp qword [0x14009d128], 0
jne 0x140018cc8
lea rdx, str.CloseServiceHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d128], rax
test rax, rax
je 0x140018d39
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x14009d108]
mov r14, rax
test rax, rax
je 0x140018d34
mov r8d, 4
lea rdx, str.CryptSvc
mov rcx, rax
call qword [0x14009d110]
mov rdi, rax
test rax, rax
je 0x140018d2b
lea rdx, [rbp + 0x1c0]
mov rcx, rax
call qword [0x14009d120]
test eax, eax
je 0x140018d22
mov ecx, dword [rbp + 0x1c4]
add ecx, 0xfffffffc
cmp ecx, 3
setbe r15b
mov rcx, rdi
call qword [0x14009d128]
mov rcx, r14
call qword [0x14009d128]
test r15d, r15d
jne 0x140018d44
mov edi, r12d
mov ebx, r13d
jmp 0x140018876
mov r15, qword [rbp - 0x78]
mov rcx, qword [0x14009d170]
test rcx, rcx
jne 0x140018d71
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.140013430
mov qword [0x14009d170], rax
mov rcx, rax
test rax, rax
je 0x140018d96
mov rax, qword [0x14009d178]
test rax, rax
jne 0x140018da3
lea rdx, str.WinVerifyTrust
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d178], rax
test rax, rax
jne 0x140018da3
mov edi, r13d
mov ebx, 0x7e
jmp 0x140018876
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 0x140018e64
inc r14d
mov ebx, eax
cmp r14d, 1
jae 0x140018e67
mov rax, qword [0x14009d178]
jmp 0x140018db0
mov edi, r12d
cmp ebx, 0x800b010a
jne 0x140018876
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 [0x14009d0d8]
mov r14, rax
test rax, rax
je 0x14001887b
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.140011480
test eax, eax
je 0x140018eb5
mov edi, r12d
xor ebx, ebx
mov rcx, r14
call qword [0x14009d0a8]
jmp 0x14001887b
mov ebx, 0x7e
jmp 0x14001887b
mov ebx, 2
jmp 0x14001887b