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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x80], rcx
xor esi, esi
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x74], 0x20
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140014490]
movdqu xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x70], sil
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rsi + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000d168
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000d9c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8d, [rsi + 0x1a]
lea rdx, str.CryptAcquireContext_failed
lea rcx, [rsp + 0x30]
call fcn.14000a120
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000e8d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000d08f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d08a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d08a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
movdqa xmm0, xmmword [0x140014490]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000d0e2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d0dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
xor r8d, r8d
lea rdx, [0x1400138ab]
mov rcx, rdi
call fcn.14000a120
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14000d13e
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d139
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d9aa
call fcn.14000fe00
mov rax, rdi
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.14000fde0
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor edx, edx
test eax, eax
jne 0x14000d281
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000d9c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, socket
lea rdx, str.CryptCreateHash_failed
lea rcx, [rsp + 0x30]
call fcn.14000a120
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000e8d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000d227
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d222
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
movdqa xmm0, xmmword [0x140014490]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000d0e2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d0dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8d, 0x110
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
jb 0x14000d29a
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.14000db60
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
mov r8d, 0x400
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x14000d337
xor r9d, r9d
mov r8d, dword [rbp - 0x48]
lea rdx, [rbp + 0xe0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000d40e
mov r8d, 0x400
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x14000d2f1
mov rax, qword [rbp - 0x48]
test rax, rax
jle 0x14000d6a0
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0xe0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14000d6a0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000d9c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, socket
lea rdx, str.CryptHashData_failed
lea rcx, [rsp + 0x30]
call fcn.14000a120
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000e8d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000d5b5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d5b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d5b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000d9c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, socket
lea rdx, str.CryptHashData_failed
lea rcx, [rsp + 0x30]
call fcn.14000a120
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000e8d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000d4b1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d4ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d4ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
movdqa xmm0, xmmword [0x140014490]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000d504
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d4ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d4ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
xor r8d, r8d
lea rdx, [0x1400138ab]
mov rcx, rdi
call fcn.14000a120
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x14000d57d
mov rax, qword [rbp - 0x28]
lea rcx, [rbp + 0x30]
cmp qword [rax], rcx
jne 0x14000d57d
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp - 8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
cmp byte [rbp + 0x3c], 0
je 0x14000d58c
lea rcx, [rbp - 0x40]
call fcn.140008dc0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14000d103
call fcn.14000fe00
movdqa xmm0, xmmword [0x140014490]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000d608
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d603
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d603
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
xor r8d, r8d
lea rdx, [0x1400138ab]
mov rcx, rdi
call fcn.14000a120
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x14000d681
mov rax, qword [rbp - 0x28]
lea rcx, [rbp + 0x30]
cmp qword [rax], rcx
jne 0x14000d681
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp - 8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
cmp byte [rbp + 0x3c], 0
je 0x14000d690
lea rcx, [rbp - 0x40]
call fcn.140008dc0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x14000d597
mov dword [rsp + 0x20], esi
lea r9, [rbp - 0x74]
lea r8, [rbp + 0xc0]
mov edx, 2
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000d855
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000d9c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x18
lea rdx, str.CryptGetHashParam_failed
lea rcx, [rsp + 0x30]
call fcn.14000a120
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000e8d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000d76a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d765
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d765
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
movdqa xmm0, xmmword [0x140014490]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000d7bd
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d7b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d7b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fe00
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
xor r8d, r8d
lea rdx, [0x1400138ab]
mov rcx, rdi
call fcn.14000a120
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x14000d836
mov rax, qword [rbp - 0x28]
lea rcx, [rbp + 0x30]
cmp qword [rax], rcx
jne 0x14000d836
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp - 8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
cmp byte [rbp + 0x3c], 0
je 0x14000d845
lea rcx, [rbp - 0x40]
call fcn.140008dc0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x14000d597
mov ebx, esi
cmp dword [rbp - 0x74], esi
jbe 0x14000d8ae
nop dword [rax]
mov eax, ebx
movzx r9d, byte [rbp + rax + 0xc0]
lea r8, str._02x
mov edx, 3
lea rcx, [rbp - 0x78]
call fcn.14000cf20
lea rax, [rbp - 0x78]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000d890
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x70]
call fcn.140008e70
inc ebx
cmp ebx, dword [rbp - 0x74]
jb 0x14000d860
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x140014490]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x14000d93d
mov rax, qword [rbp - 0x28]
lea rcx, [rbp + 0x30]
cmp qword [rax], rcx
jne 0x14000d93d
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp - 8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
cmp byte [rbp + 0x3c], 0
je 0x14000d94c
lea rcx, [rbp - 0x40]
call fcn.140008dc0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14000d13e
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d139
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d139
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3