Function at 0x140008a50
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
mov dword [rsp + 0x40], 0x400
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x48], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x320
lea rcx, str._____BEGIN_PUBLIC_KEY______nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAl3sverw9HQrYQNn9Ca7_n9LU62nG6NozE_FsIVNerW_hueE8WQ1mrFP2yAiYRutYPeEgpxtodHhgkR4pEK_nVnrr18q4szlv89QI7t8lMoLTlFt1IR0V4wJV34I3C359KixnzL0Bl9aj_zDcrX_nWl5pHTioJwYOgMiBGLyPeitMFdjjTIpCMmxTWXCrZ9dPUKvZtgzjdIzlHidHtO_nORBN5mRs8LNO58k79r77DcgQYPNiiCtWgCY4K7uSZX3Hveom2tHbVXy0L_Cl7fM_nHKqfcQGuyrvud42OrWarAsn2p2Ei6Kzxb3G6ESCw15nHAgLal8zSq7raE_xkLpC_nbYg5gmY6vbmWnq9dqWrUzaqOfrZPgvgG0WvkBShfaEOBaIUxA3QBgzAZhqeedF9h_nafMGMM9qVbfwuuzJ2uhInaGaeH2c04oVcDFfeOaDuxRjCCbqr5sLSo1CWokynjN_nCBb2rQF7DPPbD4s_nT9Nsck_NFzrBXROdqkeBwDUCv7bZgW7OxuOX07LTqfp5s_nOeGgububiwY3UdHYqL9JqISG1tM4HeKjaHju1MDjvHZ2DbmLwUxuYa6JZDKWs7r_nIrdDwx3JwacF66h3YUW6tzUZhztcmQepP_u7BgGrkOPPpYA0NEJ80SeAx7hiN4va_neEQKnRnEpBN6UBa5f7LoK8CAwEAAQ_n_____END_PUBLIC_KEY______nbool
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140008c52
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x8000
mov r9d, dword [rsp + 0x40]
lea r8, [rbp - 0x70]
lea edx, [r12 + 8]
lea ecx, [rdx - 7]
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x140008c52
mov rax, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x8000
mov r9d, dword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea edx, [r12 + 0x13]
lea ecx, [rdx - 0x12]
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x140008c52
mov ecx, dword [0x1402f8090]
mov rax, qword gs:[0x58]
mov edx, 8
mov rdi, qword [rax + rcx*8]
add rdi, rdx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140008c52
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800e
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140008c52
xor r9d, r9d
mov r8d, r15d
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140008c52
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400090e0
mov edx, r12d
test rbx, rbx
je 0x140008c28
lea r9, [rsi - 1]
add r9, rbx
nop dword [rax]
movzx ecx, byte [r9]
mov rax, qword [rsp + 0x70]
mov byte [rax + rdx], cl
inc rdx
lea r9, [r9 - 1]
cmp rdx, rbx
jb 0x140008c10
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9, qword [rsp + 0x58]
mov r8d, ebx
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x140008c52
mov bl, 1
jmp 0x140008c54
xor bl, bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140008c9f
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008c8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008c8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d5ad0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008caf
call sub.ADVAPI32.dll_CryptDestroyHash
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140008cbf
call sub.ADVAPI32.dll_CryptDestroyKey
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008cd0
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140008ce0
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, bl
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1401d5bf0
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret