Function at 0x140003870
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14017e7c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x41], rcx
xor r15d, r15d
mov dword [rbp - 0x49], r15d
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r15b
mov dword [rbp - 0x49], 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140003add
lea rdx, [0x140181fa8]
lea rcx, [rbp - 1]
call fcn.140003610
nop
mov rdi, qword [rbp - 9]
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x19], r15
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140003978
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
xor r9d, r9d
mov r8d, dword [rbp + 0xf]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000396e
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp - 0x19]
mov edx, 0x6610
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rbp - 0x11], 0
je 0x140003a92
mov rdx, r14
lea rcx, [rbp + 0x1f]
call fcn.140003610
nop
mov r8, qword [rbp - 0x11]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x39]
call fcn.1400034c0
mov rdi, rax
cmp rbx, rax
je 0x140003a0b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400039df
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400039da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a3d
mov rcx, r8
call fcn.1401386d0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140003a49
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401386d0
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0xf
jbe 0x140003a92
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401386d0
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140003add
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ad8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ad8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401386d0
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1401386b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret