Function at 0x14005b490
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 [0x1400c7008]
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 0x14005b79a
test r9, r9
je 0x14005b79a
test r8, r8
je 0x14005b79a
test rbx, rbx
je 0x14005b79a
cmp qword [rcx + 0x18], 0
jne 0x14005b512
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Public_key_is_null
jmp 0x14005b7a7
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 0x14005b5d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x90], eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140059d60
mov rbx, rax
lea rdx, str.CryptCreateHash_failed:__1_x:__2_
lea rcx, [rbp - 0x80]
call fcn.14004a840
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.14005c7b0
mov rcx, rax
mov rdx, rbx
call fcn.14004bab0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14005c780
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.14004e170
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140023400
nop
lea rcx, [rbp - 0x80]
call fcn.140047e70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140023400
jmp 0x14005b7b0
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 0x14005b68b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x90], eax
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140059d60
mov rbx, rax
lea rdx, str.CryptHashData_failed:__1_x:__2_
lea rcx, [rbp - 0x80]
call fcn.14004a840
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.14005c7b0
mov rcx, rax
mov rdx, rbx
call fcn.14004bab0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14005c780
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.14004e170
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140023400
nop
lea rcx, [rbp - 0x80]
call fcn.140047e70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140023400
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14005b7b0
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.140059e50
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 0x14005b780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x90], eax
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140059d60
mov rbx, rax
lea rdx, str.CryptVerifySignature_failed:__1_x:__2_
lea rcx, [rbp - 0x80]
call fcn.14004a840
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.14005c7b0
mov rcx, rax
mov rdx, rbx
call fcn.14004bab0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14005c780
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.14004e170
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140023400
nop
lea rcx, [rbp - 0x80]
call fcn.140047e70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140023400
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 0x14005b7b0
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 0x14005b7b2
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Invalid_input_argument
add rcx, 0x38
call fcn.140023530
xor al, al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x1b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret