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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x48], rcx
xor r14d, r14d
mov dword [rbp - 0x50], r14d
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x38], r14
mov dword [rbp - 0x3c], r14d
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r14 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400018b8
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
mov r8d, 5
mov rcx, rdi
call fcn.140001b50
jmp 0x140001b19
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001893
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001893
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x3c]
xor r8d, r8d
lea edx, [r8 + 2]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001893
xorps xmm0, xmm0
mov esi, dword [rbp - 0x3c]
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r14
test rsi, rsi
je 0x14000197e
cmp rsi, 0x1000
jb 0x140001959
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140001b3f
call fcn.140001ee8
mov rcx, rax
test rax, rax
je 0x140001b0a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001961
mov rcx, rsi
call fcn.140001ee8
mov qword [rbp - 0x30], rax
lea rbx, [rax + rsi]
mov qword [rbp - 0x20], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x28], rbx
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x3c]
mov r8, qword [rbp - 0x30]
mov edx, 2
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400019fe
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], al
lea r8d, [rax + 5]
mov rcx, rdi
call fcn.140001b50
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140001b19
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b0a
jmp 0x140001b14
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140001a0d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140001a1f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rbp - 0x50], 2
mov r15, qword [rbp - 0x28]
mov r14, qword [rbp - 0x30]
cmp r14, r15
je 0x140001add
nop dword [rax]
movzx r8d, byte [r14]
lea rdx, str._02x
lea rcx, [rbp - 0x40]
call fcn.140001cc0
lea rax, [rbp - 0x40]
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x140001a70
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140001ab9
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140001aa0
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x140001acd
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x40]
mov rdx, rsi
mov rcx, rdi
call fcn.140001d20
inc r14
cmp r14, r15
jne 0x140001a50
mov r14, qword [rbp - 0x30]
test r14, r14
je 0x140001b19
mov rdx, qword [rbp - 0x20]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x140001b11
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140001ee0
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001ec0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001430
int3