Function at 0x14005b0b0
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 [0x1400c7008]
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 0x14005b451
test rbx, rbx
je 0x14005b451
cmp qword [rbp + 0x110], r13
jbe 0x14005b451
cmp qword [rcx + 0x18], r13
jne 0x14005b132
lea r8d, [r13 + 0x13]
lea rdx, str.Private_key_is_null
jmp 0x14005b45e
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 0x14005b1f2
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 0x14005b467
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 0x14005b2aa
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 0x14005b467
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 0x14005b35b
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.CryptSignHash_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
jmp 0x14005b289
mov eax, dword [rbp + 0x94]
cmp qword [rbp + 0x110], rax
jae 0x14005b385
lea rcx, [rdi + 0x38]
mov r8d, 0x18
lea rdx, str.Insufficient_buffer_size
call fcn.140023530
jmp 0x14005b298
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 0x14005b42f
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.CryptSignHash_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
jmp 0x14005b289
mov edx, dword [rbp + 0x94]
mov qword [rsi], rdx
mov rcx, rbx
call fcn.140059e50
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, 1
jmp 0x14005b469
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, 0x1b0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret