Function at 0x14000bbc0
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xd70]
sub rsp, 0xe70
mov rax, qword [0x14001f078]
xor rax, rsp
mov qword [rbp + 0xd60], rax
xor r15d, r15d
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x40018], r15
je 0x14000bfe6
cmp qword [rcx + 0x40030], r15
je 0x14000bfe6
lea rdx, [0x14001b160]
mov dword [rsp + 0x30], r15d
lea rcx, [rsp + 0x50]
mov dword [rbp + 0xb54], r15d
mov byte [rsp + 0x50], r15b
mov byte [rbp + 0xb53], r15b
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
call fcn.14000eef8
mov ebx, eax
test eax, eax
js 0x14000bf9e
mov rbx, qword [rdi + 0x40020]
lea rcx, [rsp + 0x50]
mov rdx, qword [rdi + 0x40028]
test rbx, rbx
jne 0x14000bc6e
mov ebx, r15d
jmp 0x14000bc8d
movsx eax, byte [rcx]
inc rcx
mov word [rbx], ax
add rbx, 2
test ax, ax
je 0x14000bc85
cmp rbx, rdx
jb 0x14000bc6e
sub rbx, 2
mov word [rbx], r15w
mov rdx, qword [rdi + 0x40030]
mov qword [rdi + 0x40020], rbx
sub rbx, qword [rdi + 0x40018]
mov dword [rsp + 0x30], 0x100
mov ecx, dword [rdx + 0x2020]
sar rbx, 1
sub ecx, 1
je 0x14000bd18
cmp ecx, 1
je 0x14000bcc7
mov ebx, 0x80004001
jmp 0x14000bf9e
mov r8, qword [rdx + 0x24c0]
lea rcx, [rsp + 0x38]
mov rdx, qword [rdx + 0x24c8]
mov r9d, 1
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop dword [rax + rax]
test eax, eax
je 0x14000bd76
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
nop dword [rax + rax]
jmp 0x14000bdd7
mov r9d, 1
mov dword [rsp + 0x20], 0x10
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rdx, str.LicenseSigner
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop dword [rax + rax]
mov r9d, 1
mov dword [rsp + 0x20], 8
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rdx, str.LicenseSigner
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop dword [rax + rax]
test eax, eax
jne 0x14000bd9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x14000bf9e
mov rax, qword [rdi + 0x40030]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], r15d
mov r8d, dword [rax + 0x24b8]
lea rdx, [rax + 0x2024]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop dword [rax + rax]
test eax, eax
je 0x14000bd76
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop dword [rax + rax]
test eax, eax
je 0x14000bd76
mov rdx, qword [rdi + 0x40018]
lea r8d, [rbx + rbx]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop dword [rax + rax]
test eax, eax
je 0x14000bd76
mov rax, qword [rdi + 0x40030]
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
cmp byte [rax + 0x2029], 0x24
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb60]
mov qword [rsp + 0x20], rax
jne 0x14000bf6e
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
nop dword [rax + rax]
test eax, eax
je 0x14000bd76
mov esi, dword [rsp + 0x30]
mov edx, r15d
test esi, esi
je 0x14000beac
cmp edx, 0x100
jae 0x14000beac
mov eax, esi
mov ecx, edx
sub eax, edx
inc edx
dec eax
mov al, byte [rbp + rax + 0xb60]
mov byte [rbp + rcx + 0xc60], al
cmp edx, esi
jb 0x14000be88
cmp dword [rbp + 0xb54], r15d
jbe 0x14000bec1
mov dword [rbp + 0xb54], r15d
mov byte [rsp + 0x50], r15b
lea rdx, str._SIGNATURE__ALGORITHM_RSA_PKCS1_V1.5__ALGORITHM_
lea rcx, [rsp + 0x50]
call fcn.14000eef8
mov ebx, eax
test eax, eax
js 0x14000bf36
lea r8, str.SHA1
lea rdx, str._DIGEST__ALGORITHM__s__ALGORITHM_
lea rcx, [rsp + 0x50]
call fcn.14000eef8
mov ebx, eax
test eax, eax
js 0x14000bf09
lea rdx, str.__DIGEST_
lea rcx, [rsp + 0x50]
call fcn.14000eef8
mov ebx, eax
test ebx, ebx
js 0x14000bf9e
mov r8d, esi
mov dword [rsp + 0x20], esi
shl r8d, 3
lea r9, [rbp + 0xc60]
lea rdx, str._VALUE_encoding_base64__size__u___b__VALUE___SIGNATURE_
lea rcx, [rsp + 0x50]
call fcn.14000eef8
mov ebx, eax
test ebx, ebx
js 0x14000bf9e
lea rdx, [0x14001b1a8]
lea rcx, [rsp + 0x50]
call fcn.14000eba4
mov ebx, eax
test eax, eax
js 0x14000bf9e
mov rcx, qword [rdi + 0x40020]
lea rdx, [rsp + 0x50]
mov r8, qword [rdi + 0x40028]
test rcx, rcx
jne 0x14000bf78
mov rcx, r15
jmp 0x14000bf97
mov edx, 1
jmp 0x14000be69
movsx eax, byte [rdx]
inc rdx
mov word [rcx], ax
add rcx, 2
test ax, ax
je 0x14000bf8f
cmp rcx, r8
jb 0x14000bf78
sub rcx, 2
mov word [rcx], r15w
mov qword [rdi + 0x40020], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000bfb4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000bfcc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop dword [rax + rax]
test ebx, ebx
jns 0x14000bfe2
mov r8d, ebx
lea rdx, str.XML__WriteFooter_failed:__hr_r_n
mov rcx, r14
call fcn.14000eef8
mov eax, ebx
jmp 0x14000bfeb
mov eax, 0x80049301
mov rcx, qword [rbp + 0xd60]
xor rcx, rsp
call fcn.1400156d0
mov rbx, qword [rsp + 0xeb0]
add rsp, 0xe70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret