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

Disassembly:
mov r11, rsp
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r14
mov r14, r9
mov rbx, r8
mov rax, rdx
mov rsi, rcx
and qword [rbp - 0x20], 0
lea rcx, [rbp - 0x20]
mov qword [r11 - 0x38], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rax
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptCreateHash]
test eax, eax
jne 0x140041192
mov r14d, 0x80070000
cmp dword [0x140142444], 2
jb 0x14004112f
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, r14d
test eax, eax
cmovle r8d, eax
mov eax, 0x80004005
test r8d, r8d
cmovns r8d, eax
lea rdx, str.Failed_to_create_hash_object:_0x_x
mov ecx, 2
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140041189
test byte [rcx + 0x1c], 8
je 0x140041189
cmp byte [rcx + 0x19], 2
jb 0x140041189
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, 0x25
movzx r9d, ax
or r9d, r14d
test eax, eax
cmovle r9d, eax
test r9d, r9d
mov eax, 0x80004005
cmovns r9d, eax
lea r8, [0x1400ff168]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
and qword [rsi], 0
jmp 0x14004130d
xor r9d, r9d
mov r8d, dword [rbx + 0x18]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptHashData]
test eax, eax
jne 0x140041219
mov r14d, 0x80070000
cmp dword [0x140142444], 2
jb 0x1400411ea
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, r14d
test eax, eax
cmovle r8d, eax
mov eax, 0x80004005
test r8d, r8d
cmovns r8d, eax
lea rdx, str.Failed_to_hash_the_public_key:_0x_x
mov ecx, 2
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140041189
test byte [rcx + 0x1c], 8
je 0x140041189
cmp byte [rcx + 0x19], 2
jb 0x140041189
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, 0x26
jmp 0x140041159
mov ecx, 0x14
mov dword [rbp - 0x10], ecx
xor eax, eax
mov qword [rbp - 8], rax
call fcn.1400c1d60
mov rbx, rax
mov qword [rbp - 8], rax
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8, rax
mov edx, 2
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptGetHashParam]
test eax, eax
jne 0x1400412f8
mov r14d, 0x80070000
cmp dword [0x140142444], 2
jb 0x140041295
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, r14d
test eax, eax
cmovle r8d, eax
mov eax, 0x80004005
test r8d, r8d
cmovns r8d, eax
lea rdx, str.Failed_to_get_hashed_public_key:_0x_x
mov ecx, 2
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x1400412ef
test byte [rcx + 0x1c], 8
je 0x1400412ef
cmp byte [rcx + 0x19], 2
jb 0x1400412ef
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r9d, ax
or r9d, r14d
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov edx, 0x27
lea r8, [0x1400ff168]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
and qword [rsi], 0
mov rcx, rbx
jmp 0x140041306
movups xmm0, xmmword [rbp - 0x10]
movdqu xmmword [r14], xmm0
mov qword [rsi], rbx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14004131c
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret