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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r14, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov rbx, qword [rbp + 0x110]
test rdx, rdx
je 0x1400b008a
test r9, r9
je 0x1400b008a
test r8, r8
je 0x1400b008a
test rbx, rbx
je 0x1400b008a
cmp qword [rcx + 0x18], 0
jne 0x1400afe02
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Public_key_is_null
jmp 0x1400b0097
mov qword [rbp + 0x98], 0
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400afec3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x90], eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400ae650
mov rbx, rax
lea rdx, str.CryptCreateHash_failed:__1_x:__2_
lea rcx, [rbp - 0x80]
call fcn.14009f420
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.1400b1060
mov rcx, rax
mov rdx, rbx
call fcn.1400a0630
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400b1030
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.1400a2db0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140022800
nop
lea rcx, [rbp - 0x80]
call fcn.14009caf0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140022800
jmp 0x1400b00a0
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400aff7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x90], eax
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400ae650
mov rbx, rax
lea rdx, str.CryptHashData_failed:__1_x:__2_
lea rcx, [rbp - 0x80]
call fcn.14009f420
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.1400b1060
mov rcx, rax
mov rdx, rbx
call fcn.1400a0630
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400b1030
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.1400a2db0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140022800
nop
lea rcx, [rbp - 0x80]
call fcn.14009caf0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140022800
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1400b00a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8, rbx
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rbx
mov rcx, rsi
call fcn.1400ae740
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
jne 0x1400b0070
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x90], eax
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400ae650
mov rbx, rax
lea rdx, str.CryptVerifySignature_failed:__1_x:__2_
lea rcx, [rbp - 0x80]
call fcn.14009f420
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.1400b1060
mov rcx, rax
mov rdx, rbx
call fcn.1400a0630
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400b1030
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.1400a2db0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140022800
nop
lea rcx, [rbp - 0x80]
call fcn.14009caf0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140022800
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400b00a0
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
jmp 0x1400b00a2
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Invalid_input_argument
add rcx, 0x38
call fcn.140022880
xor al, al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x1b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret