Function at 0x1401a31e4
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
push r14
mov eax, 0x1080
call fcn.140135910
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov rax, qword [0x140334860]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x78], rdx
xor edi, edi
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x48], rdi
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], rdi
cmp qword [rdx + 0x18], 8
jb 0x1401a324e
mov rax, qword [rdx]
jmp 0x1401a3251
mov rax, rdx
mov word [rax], di
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x44], 0x20
mov dword [rsp + 0x90], 0x35812d8c
mov dword [rsp + 0x94], 0x20643f93
mov dword [rsp + 0x98], 0xdb9038b
mov dword [rsp + 0x9c], 0xb727e4bc
mov dword [rsp + 0xa0], 0x1dad9f69
mov dword [rsp + 0xa4], 0xcecd9239
mov dword [rsp + 0xa8], 0xacd82940
mov dword [rsp + 0xac], 0xf0321aa3
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rdi
mov r9b, byte [rsp + 0x40]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
call fcn.14003cb10
nop
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x1401a3301
mov rsi, qword [rsi]
add r8, r8
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.1401a1380
mov rsi, qword [rsp + 0xb8]
sub rsi, qword [rsp + 0xb0]
mov rax, rsi
neg rax
sbb r14, r14
and r14, qword [rsp + 0xb0]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1401a3391
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.TrySetUserRegistry::GetHashedOLSToken:_CryptAcquireContext_failed
mov edx, 0xf
lea rcx, [rsp + 0x210]
call fcn.14019b7b0
lea rdx, [0x140294a58]
lea rcx, [rsp + 0x210]
call fcn.1401377ec
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1401a33eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.TrySetUserRegistry::GetHashedOLSToken:_CryptCreateHash_failed
mov edx, 0xf
lea rcx, [rsp + 0x5a0]
call fcn.14019b624
lea rdx, [0x140294a58]
lea rcx, [rsp + 0x5a0]
call fcn.1401377ec
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1401a3439
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.TrySetUserRegistry::GetHashedOLSToken:_CryptHashData_failed
mov edx, 0xf
lea rcx, [rsp + 0x930]
call fcn.14019b5a0
lea rdx, [0x140294a58]
lea rcx, [rsp + 0x930]
call fcn.1401377ec
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x1050]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1401a3494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.TrySetUserRegistry::GetHashedOLSToken:_CryptGetHashParam_failed
mov edx, 0xf
lea rcx, [rsp + 0xcc0]
call fcn.14019b6a8
lea rdx, [0x140294a58]
lea rcx, [rsp + 0xcc0]
call fcn.1401377ec
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov r9b, byte [rsp + 0x40]
lea r8, [rsp + 0x1070]
lea rdx, [rsp + 0x1050]
lea rcx, [rsp + 0x50]
call fcn.14003cb10
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xd0]
call fcn.1401bee64
mov rsi, rax
cmp rbx, rax
je 0x1401a34f5
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.14000b190
mov rdx, rsi
mov rcx, rbx
call fcn.14000ae7c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xd0]
call fcn.14000b190
cmp qword [rbx + 0x10], rdi
sete al
test al, al
jne 0x1401a3550
mov rsi, rdi
cmp qword [rbx + 0x10], rdi
jbe 0x1401a3550
cmp qword [rbx + 0x18], 8
jb 0x1401a3527
mov rax, qword [rbx]
jmp 0x1401a352a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401a3536
mov r14, qword [rbx]
jmp 0x1401a3539
mov r14, rbx
movzx ecx, word [rax + rsi*2]
call fcn.140166d54
mov word [r14 + rsi*2], ax
inc rsi
cmp rsi, qword [rbx + 0x10]
jb 0x1401a351b
lea rcx, [rsp + 0x50]
call fcn.140029430
nop
lea rcx, [rsp + 0xb0]
call fcn.140029430
nop
jmp 0x1401a3570
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401a3580
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401a3592
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rbx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.140135130
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1080
pop r14
pop rdi
pop rsi
ret