Function at 0x140028890
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rdx
mov r14, rcx
test rdx, rdx
jne 0x1400288c4
mov eax, 0x80070057
jmp 0x140028b04
test byte [rcx + 0xc], 2
jne 0x1400288d4
mov eax, 0x800b0100
jmp 0x140028b04
lea rax, [rsp + 0x48]
mov qword [rsp + 0x130], r12
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
xor r12d, r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x38]
lea rax, fcn.140031c90
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x48], r12
movups xmmword [rsp + 0x58], xmm0
mov qword [rbp + 8], r12
call fcn.140031c90
mov rcx, qword [rbp - 0x78]
mov qword [rbp + 8], rax
test rcx, rcx
je 0x14002894c
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x170], rsi
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov qword [rsp + 0x138], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x128], r13
mov r9d, 1
xor edx, edx
mov qword [rsp + 0x120], r15
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400289bf
movzx r8d, word [rbx + 0x10]
lea rax, [rsp + 0x48]
mov rdx, qword [rbx + 8]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x41
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400289eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x1400289e1
test eax, 0xffff0000
jne 0x140028aad
or ebx, 0x80070000
jmp 0x140028aad
mov ebx, 0x80004005
jmp 0x140028aad
mov edx, dword [r14 + 0xc]
movzx ecx, word [r14 + 8]
and edx, 1
mov r15d, dword [r14 + 4]
add rcx, r14
add r15, r14
lea r8, [rcx + rdx*4]
lea rax, [r8 + 8]
cmp r15, rax
jb 0x140028c3b
mov eax, dword [r8 + 4]
lea r13, [rax + r14]
lea rbx, [r13 + 4]
cmp r15, rbx
jb 0x140028c3b
movzx eax, word [r13 + 2]
test ax, ax
jne 0x140028a38
mov ebx, 0x800b0100
jmp 0x140028aad
movzx esi, word [r13]
add rsi, r13
cmp r15, rsi
jb 0x140028c3b
movzx r8d, ax
mov edx, r12d
test r8d, r8d
je 0x140028aa8
mov r10d, 0x8004
nop dword [rax + rax]
lea rcx, [rbx + 8]
cmp rsi, rcx
jb 0x140028c3b
movzx edi, word [rbx + 2]
add rdi, rbx
cmp rcx, rdi
ja 0x140028a9a
movzx ecx, word [rbx + 6]
movzx eax, word [rbx]
add rcx, rdi
add rax, rbx
cmp rax, rcx
jb 0x140028c3b
cmp word [rbx + 4], r10w
je 0x140028b1c
movzx eax, word [rbx]
inc edx
lea rbx, [rbx + rax*8]
cmp edx, r8d
jne 0x140028a60
mov ebx, 0x80004001
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140028c4b
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140028ada
mov r8, qword [rcx]
lea rax, [rbp - 0x30]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov r13, qword [rsp + 0x128]
mov eax, ebx
mov rsi, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x138]
mov r15, qword [rsp + 0x120]
mov r12, qword [rsp + 0x130]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400408d0
add rsp, 0x140
pop r14
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov edx, r10d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140028b4f
call fcn.14001b570
mov ebx, eax
jmp 0x140028aad
lea rax, fcn.140031c50
mov qword [rbp - 0x38], r12
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x70]
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
call fcn.140031c50
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0x38], rax
test rcx, rcx
je 0x140028b9e
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
sub r13d, r14d
mov r8d, r13d
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140028c03
mov rcx, qword [rsp + 0x38]
sub r15d, esi
mov r8d, r15d
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140028c03
movzx r8d, word [rbx + 6]
mov rdx, rdi
mov r9, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
mov ebx, 0x80070241
cmovne ebx, r12d
jmp 0x140028c0a
call fcn.14001b570
mov ebx, eax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140028c45
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140028aad
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140028aad
mov ebx, 0x8007000b
jmp 0x140028aad
call fcn.1400398f8
int3
call fcn.1400398f8
int3