Function at 0x1400af9a0
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 r12
push r13
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, r9
mov r12, r8
mov r15, rdx
mov rdi, rcx
mov rsi, qword [rbp + 0x118]
xor r13d, r13d
mov qword [rsi], r13
test rdx, rdx
je 0x1400afd41
test rbx, rbx
je 0x1400afd41
cmp qword [rbp + 0x110], r13
jbe 0x1400afd41
cmp qword [rcx + 0x18], r13
jne 0x1400afa22
lea r8d, [r13 + 0x13]
lea rdx, str.Private_key_is_null
jmp 0x1400afd4e
mov qword [rsi], r13
mov qword [rbp + 0x98], r13
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 0x1400afae2
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 0x1400afd57
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400afb9a
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 0x1400afd57
mov dword [rbp + 0x94], r13d
lea rax, [rbp + 0x94]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
jne 0x1400afc4b
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.CryptSignHash_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
jmp 0x1400afb79
mov eax, dword [rbp + 0x94]
cmp qword [rbp + 0x110], rax
jae 0x1400afc75
lea rcx, [rdi + 0x38]
mov r8d, 0x18
lea rdx, str.Insufficient_buffer_size
call fcn.140022880
jmp 0x1400afb88
lea rax, [rbp + 0x94]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
jne 0x1400afd1f
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.CryptSignHash_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
jmp 0x1400afb79
mov edx, dword [rbp + 0x94]
mov qword [rsi], rdx
mov rcx, rbx
call fcn.1400ae740
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, 1
jmp 0x1400afd59
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, 0x1b0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret