Function at 0x140009038
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.14002a140
sub rsp, rax
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov rbx, qword [rbp + 0x1028]
mov r12, r8
mov r15, rdx
mov qword [rsp + 0x30], r9
mov rsi, rcx
mov qword [rsp + 0x40], rbx
or r13d, 0xffffffff
lea rcx, [rsp + 0x70]
xor edx, edx
mov rdi, r9
lea r8d, [r13 + 0x41]
call fcn.140010e20
xor edx, edx
lea r8d, [r13 + 0x21]
lea rcx, [rsp + 0x50]
call fcn.140010e20
test rdi, rdi
je 0x140009429
test rbx, rbx
je 0x140009429
and dword [rbx], 0
mov edi, dword [rbp + 0x1020]
test edi, edi
jne 0x1400090e2
lea ecx, [rdi + 2]
call fcn.140014718
lea rdx, str.ERROR:_There_must_be_at_least_one_signature._n
jmp 0x14000943a
xor r14d, r14d
test edi, edi
je 0x140009132
lea rbx, [rsp + 0x70]
test r15, r15
je 0x14000911f
test rbx, rbx
je 0x14000911f
and qword [rbx], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x8004
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
neg eax
sbb ecx, ecx
neg ecx
dec ecx
jmp 0x140009122
mov ecx, r13d
test ecx, ecx
jne 0x140009159
inc r14d
add rbx, 8
cmp r14d, edi
jb 0x1400090ee
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140018c70
test eax, eax
je 0x14000916f
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Could_not_seek_to_start_of_the_file_n
jmp 0x14000943a
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Could_not_initialize_signature_handle._n
jmp 0x14000943a
lea rax, str.signature_block
mov r8d, 0x14
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1400089b4
test eax, eax
jne 0x140009442
xor r14d, r14d
test edi, edi
je 0x14000924a
lea rbx, [rsp + 0x50]
lea rax, str.signature_algorithm_ID
mov r8d, 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1400089b4
test eax, eax
jne 0x140009442
lea rax, str.signature_length
mov r8d, 4
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
lea rdx, [rdx + r14*4]
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x70]
mov rcx, rsi
call fcn.1400089b4
test eax, eax
jne 0x140009442
mov ecx, dword [rbx]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rbx], eax
cmp eax, 0x800
ja 0x1400092c6
mov edx, eax
mov r8d, 1
mov rcx, rsi
call fcn.140018c70
test eax, eax
jne 0x1400092b0
inc r14d
add rbx, 4
cmp r14d, edi
jb 0x1400091ae
mov rcx, rsi
call fcn.14001947c
test eax, eax
jne 0x140009320
mov r9, rsi
lea edx, [rax + 1]
mov r8d, 0x1000
lea rcx, [rbp - 0x50]
call fcn.1400135f0
mov rcx, rsi
mov r15, rax
call fcn.1400194a8
test eax, eax
jne 0x14000930a
xor r14d, r14d
test edi, edi
je 0x14000924a
lea rbx, [rsp + 0x70]
test rbx, rbx
je 0x1400092dc
mov rcx, qword [rbx]
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov r8d, r15d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
neg eax
sbb ecx, ecx
neg ecx
dec ecx
jmp 0x1400092df
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Could_not_seek_past_signature._n
jmp 0x14000943a
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Embedded_signature_length_is_too_large._n
jmp 0x14000943a
mov ecx, r13d
test ecx, ecx
jne 0x1400092f4
inc r14d
add rbx, 8
cmp r14d, edi
jb 0x14000928e
jmp 0x14000924a
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Error_updating_verify_context_with_data_block._n
jmp 0x14000943a
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Error_reading_data_block._n
jmp 0x14000943a
xor esi, esi
test edi, edi
je 0x140009424
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
sub rcx, r12
lea r15, [rsp + 0x50]
sub rax, r12
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rax
mov ebx, dword [r15]
add rax, r12
mov r13, qword [rcx + r12]
mov qword [rsp + 0x38], rax
je 0x1400093df
test r12, r12
je 0x1400093df
test r13, r13
je 0x1400093df
cmp ebx, 1
jb 0x1400093df
mov ecx, ebx
call fcn.140013358
mov r14, rax
test rax, rax
je 0x140009405
xor r8d, r8d
test ebx, ebx
je 0x1400093a3
mov r9, rax
mov ecx, ebx
sub ecx, r8d
inc r8d
dec ecx
mov dl, byte [rcx + r13]
mov byte [r9], dl
inc r9
cmp r8d, ebx
jb 0x14000938a
mov rcx, qword [rsp + 0x38]
mov r8d, ebx
and dword [rsp + 0x28], 0
mov rdx, rax
mov r9, qword [r12]
and qword [rsp + 0x20], 0
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
mov rcx, r14
mov ebx, eax
call fcn.140013324
mov rcx, qword [rsp + 0x30]
neg ebx
sbb eax, eax
neg eax
dec eax
jmp 0x1400093e2
or eax, 0xffffffff
test eax, eax
jne 0x140009405
mov rax, qword [rsp + 0x40]
inc esi
add r15, 4
add r12, 8
inc dword [rax]
cmp esi, edi
jae 0x140009424
mov rax, qword [rsp + 0x48]
jmp 0x140009349
mov ecx, 2
call fcn.140014718
mov rcx, rax
lea rdx, str.ERROR:_Error_verifying_signature._n
call fcn.140002430
or r13d, 0xffffffff
jmp 0x140009442
xor r13d, r13d
jmp 0x140009442
mov ecx, 2
call fcn.140014718
lea rdx, str.ERROR:_Invalid_parameter_specified._n
mov rcx, rax
call fcn.140002430
mov eax, r13d
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.14000f700
mov rbx, qword [rsp + 0x1118]
add rsp, 0x10c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret