Function at 0x14009d280
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14026de28]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r12d, r12d
mov qword [rbp - 0x78], rcx
mov r15, rcx
mov qword [rsp + 0x70], r12
xor ecx, ecx
mov qword [rbp - 0x80], r12
mov r14d, r12d
mov r13d, r12d
mov esi, 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 0x14009dc48
test al, 0x50
jne 0x14009dc48
mov rax, qword [0x140271a60]
test rax, rax
jne 0x14009d31e
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.140099260
mov qword [0x140271a60], rax
test rax, rax
je 0x14009d510
cmp qword [0x140271a68], rsi
jne 0x14009d34e
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a68], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271a70], rsi
jne 0x14009d37e
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a70], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271a78], rsi
jne 0x14009d3ae
lea rdx, [0x140206430]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a78], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271a80], rsi
jne 0x14009d3de
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a80], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271a88], rsi
jne 0x14009d40e
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a88], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271a90], rsi
jne 0x14009d43e
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a90], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271a98], rsi
jne 0x14009d46e
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271a98], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271aa0], rsi
jne 0x14009d49a
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271aa0], rax
test rax, rax
je 0x14009d510
mov rax, qword [0x140271a60]
cmp qword [0x140271aa8], rsi
jne 0x14009d4bf
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271aa8], rax
test rax, rax
je 0x14009d510
cmp qword [0x140271b60], rsi
jne 0x14009d4e2
xor edx, edx
lea rcx, str.cryptnet.dll
call fcn.140099260
mov qword [0x140271b60], rax
test rax, rax
je 0x14009d510
cmp qword [0x140271b58], rsi
jne 0x14009d51a
xor edx, edx
lea rcx, str.cryptbase.dll
call fcn.140099260
mov qword [0x140271b58], rax
test rax, rax
jne 0x14009d51a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
je 0x14009d51a
mov edi, 0x7e
jmp 0x14009dc4d
mov qword [rsp + 0x50], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x70]
mov r8d, 0x400
mov qword [rsp + 0x40], rax
mov rdx, r15
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea ecx, [r9 - 1]
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [0x140271a90]
mov esi, eax
test eax, eax
jne 0x14009d57e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14009dc4d
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [0x140271a88]
mov esi, eax
test eax, eax
jne 0x14009d5af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14009dc4d
mov edx, dword [rsp + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x14009d5d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r12d
jmp 0x14009dc4d
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9, r14
lea edx, [r8 + 6]
call qword [0x140271a88]
mov esi, eax
test eax, eax
jne 0x14009d607
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14009dc4d
movups xmm0, xmmword [r14 + 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 [r14 + 0x18]
mov edx, 0x10001
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x18], xmm1
call qword [0x140271a80]
mov r13, rax
test rax, rax
jne 0x14009d658
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r12d
jmp 0x14009dc4d
test rbx, rbx
je 0x14009d677
mov rcx, r13
call fcn.1400989f0
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14009dc4d
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400975d0
mov rcx, qword [rsp + 0x78]
test eax, eax
cmove rcx, r12
mov r12, qword [rsp + 0x70]
xor esi, esi
mov qword [rsp + 0x78], rcx
xor ebx, ebx
mov qword [rsp + 0x60], rsi
cmp dword [r14 + 0x78], ebx
jbe 0x14009d7c0
nop dword [rax]
test esi, esi
jne 0x14009d7c0
lea rcx, [rbx + rbx*2]
lea r15, [rcx*8]
mov rcx, qword [r14 + 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 0x14009d7b4
mov rax, qword [r14 + 0x80]
mov edx, 0x1f4
mov ecx, 0x10001
mov r8, qword [r15 + rax + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
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 [0x140271aa0]
test eax, eax
je 0x14009d7c0
mov rax, qword [rsp + 0x60]
mov r9d, 0xb0000
mov qword [rsp + 0x28], r15
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 [0x140271a80]
mov r15, rax
test rax, rax
je 0x14009d7c0
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x1b0]
call fcn.1400975d0
test eax, eax
je 0x14009d7ab
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle sil
mov rcx, r15
call qword [0x140271a78]
inc ebx
cmp ebx, dword [r14 + 0x78]
jb 0x14009d6b0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r12d, r12d
test esi, esi
jne 0x14009d91e
mov r15d, r12d
mov qword [rsp + 0x60], r12
mov ebx, r12d
cmp dword [r14 + 0x78], r12d
jbe 0x14009d8f1
nop dword [rax + rax]
mov rcx, qword [r14 + 0x80]
lea rdx, str.1.3.6.1.4.1.311.3.3.1
mov esi, ebx
lea rax, [rsi + rsi*2]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14009d81f
inc ebx
cmp ebx, dword [r14 + 0x78]
jb 0x14009d7f0
jmp 0x14009d8f1
mov rax, qword [r14 + 0x80]
lea rdx, [rsi + rsi*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 [0x140271aa0]
test eax, eax
je 0x14009d8f1
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, dword [rcx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.1400998c0
mov rbx, rax
test rax, rax
je 0x14009d8f1
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x78]
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 0x14009d91e
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14009dc4d
mov edi, 0x80096005
jmp 0x14009dc4d
mov ecx, 0x23f0
call fcn.140099030
mov r15, qword [rbp - 0x78]
test eax, eax
jne 0x14009dac5
mov rcx, r15
call fcn.140098d60
test eax, eax
je 0x14009dac5
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x1c0], rax
mov r15d, r12d
mov dword [rbp + 0x1c8], eax
mov rax, qword [0x140271ab0]
movups xmmword [rbp + 0x1b0], xmm0
test rax, rax
jne 0x14009d98a
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.140099260
mov qword [0x140271ab0], rax
test rax, rax
je 0x14009dab4
cmp qword [0x140271ad8], 0
jne 0x14009d9bb
lea rdx, str.OpenSCManagerW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271ad8], rax
test rax, rax
je 0x14009dab4
mov rax, qword [0x140271ab0]
cmp qword [0x140271ae0], 0
jne 0x14009d9ec
lea rdx, str.OpenServiceW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271ae0], rax
test rax, rax
je 0x14009dab4
mov rax, qword [0x140271ab0]
cmp qword [0x140271af0], 0
jne 0x14009da1d
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271af0], rax
test rax, rax
je 0x14009dab4
mov rax, qword [0x140271ab0]
cmp qword [0x140271af8], 0
jne 0x14009da43
lea rdx, str.CloseServiceHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271af8], rax
test rax, rax
je 0x14009dab4
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x140271ad8]
mov rsi, rax
test rax, rax
je 0x14009daaf
mov r8d, 4
lea rdx, str.CryptSvc
mov rcx, rax
call qword [0x140271ae0]
mov rbx, rax
test rax, rax
je 0x14009daa6
lea rdx, [rbp + 0x1b0]
mov rcx, rax
call qword [0x140271af0]
test eax, eax
je 0x14009da9d
mov ecx, dword [rbp + 0x1b4]
add ecx, 0xfffffffc
cmp ecx, 3
setbe r15b
mov rcx, rbx
call qword [0x140271af8]
mov rcx, rsi
call qword [0x140271af8]
test r15d, r15d
jne 0x14009dac1
mov esi, 1
mov edi, r12d
jmp 0x14009dc4d
mov r15, qword [rbp - 0x78]
mov rcx, qword [0x140271b40]
test rcx, rcx
jne 0x14009daee
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.140099260
mov qword [0x140271b40], rax
mov rcx, rax
test rax, rax
je 0x14009db13
mov rax, qword [0x140271b48]
test rax, rax
jne 0x14009db20
lea rdx, str.WinVerifyTrust
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140271b48], rax
test rax, rax
jne 0x14009db20
mov esi, r12d
mov edi, 0x7e
jmp 0x14009dc4d
mov esi, r12d
mov ebx, r12d
nop word [rax + rax]
mov ecx, 1
mov qword [rbp - 0x1c], r12
or dword [rbp - 0x18], 0x1000
lea r8, [rbp - 0x60]
mov dword [rbp - 0x44], ecx
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x1b0], 0xaac56b
mov qword [rbp - 0x38], rcx
xorps xmm0, xmm0
mov rcx, 0xffffffffffffffff
mov dword [rbp + 0x1b4], 0x11d0cd44
mov dword [rbp + 0x1b8], 0xc000c28c
mov dword [rbp + 0x1bc], 0xee95c24f
mov qword [rbp - 0x10], 0x20
movdqu xmmword [rbp], xmm0
mov qword [rbp - 8], r15
mov qword [rbp - 0x5c], r12
mov qword [rbp - 0x54], r12
mov dword [rbp - 0x4c], r12d
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x2c], r12
mov qword [rbp - 0x24], r12
mov dword [rbp - 0x14], r12d
mov dword [rbp - 0x60], 0x50
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x30], r12d
call rax
test eax, eax
je 0x14009dbe6
inc ebx
mov edi, eax
cmp ebx, 1
jae 0x14009dbeb
mov rax, qword [0x140271b48]
jmp 0x14009db30
mov esi, 1
mov eax, 0x800b010a
cmp edi, eax
jne 0x14009dc4d
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x68], r12d
mov rdx, r13
call qword [0x140271aa8]
mov r15, rax
test rax, rax
je 0x14009dc4d
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.140097bd0
test eax, eax
mov ebx, eax
mov eax, 1
mov rcx, r15
cmovne esi, eax
call qword [0x140271a78]
test ebx, ebx
mov edi, r12d
mov eax, 0x800b010a
cmove edi, eax
jmp 0x14009dc4d
mov edi, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x14009dc64
mov rcx, r13
call qword [0x140271a78]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14009dc76
xor edx, edx
call qword [0x140271a70]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14009dc85
call qword [0x140271a68]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14014e130
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret