Function at 0x140020110
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x40], r8
mov rcx, r8
mov rdx, qword [r8 + 0x18]
cmp rdx, 8
jb 0x140020168
mov rcx, qword [r8]
mov rax, qword [r8 + 0x10]
lea rbx, [rcx + rax*2]
mov rdi, r15
cmp rdx, 8
jb 0x14002017c
mov rdi, qword [r8]
xor r13d, r13d
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], 0xf
mov byte [rbp + 0x40], r13b
mov rdx, rbx
sub rdx, rdi
sar rdx, 1
cmp rdx, 0x10
jb 0x1400201ab
lea rcx, [rbp + 0x40]
call fcn.14002fc00
mov qword [rbp + 0x50], r13
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.14002f350
nop
lea rbx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rbx, qword [rbp + 0x40]
mov rdi, qword [rbp + 0x50]
mov qword [rbp + 0x68], r13
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
xor r8d, r8d
lea rdx, [0x140048ab4]
lea rcx, [rbp + 0x70]
call fcn.140005500
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140020295
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
lea rcx, [rbp + 0x70]
call fcn.140005440
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14002086e
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140020869
test cl, 0x1f
jne 0x14002028e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14002028e
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14002085d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp + 0x60], r13
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140020345
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
lea rcx, [rbp + 0x70]
call fcn.140005440
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14002086e
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140020869
test cl, 0x1f
jne 0x14002033e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14002033e
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14002085d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp + 0x60]
test eax, eax
jne 0x1400203f0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
lea rcx, [rbp + 0x70]
call fcn.140005440
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14002086e
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140020869
test cl, 0x1f
jne 0x1400203e9
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400203e9
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14002085d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x38], r13d
mov dword [rbp + 0x90], 4
mov dword [rsp + 0x20], r13d
lea r9, [rbp + 0x90]
lea r8, [rsp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400204b3
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
lea rcx, [rbp + 0x70]
call fcn.140005440
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14002086e
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140020869
test cl, 0x1f
jne 0x1400204ac
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400204ac
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14002085d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor eax, eax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
mov edx, dword [rsp + 0x38]
lea rcx, [rbp + 0xb8]
call fcn.140028640
nop
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x38]
mov rsi, qword [rbp + 0xb8]
mov r8, rsi
mov edx, 2
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400205de
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
test rsi, rsi
je 0x14002058d
mov rax, qword [rbp + 0xc8]
sub rax, rsi
cmp rax, 0x1000
jb 0x140020584
test sil, 0x1f
jne 0x14002057d
mov rax, qword [rsi - 8]
cmp rax, rsi
jae 0x14002057d
sub rsi, rax
sub rsi, 8
cmp rsi, 0x1f
ja 0x14002057d
mov rsi, rax
jmp 0x140020584
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14003e3cc
nop
lea rcx, [rbp + 0x70]
call fcn.140005440
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14002086e
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140020869
test cl, 0x1f
jne 0x1400205d7
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400205d7
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14002085d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x50]
call fcn.14002aab0
nop
mov rbx, rsi
mov r12, qword [rbp + 0xc0]
cmp rsi, r12
je 0x140020658
nop word [rax + rax]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x58], 0x30
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x78], 2
movzx edi, byte [rbx]
lea rdx, [0x140007ca0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
inc rbx
cmp rbx, r12
jne 0x140020610
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, [rbp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.14002a960
nop
lea rbx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae rbx, qword [rbp + 0x98]
add rbx, qword [rbp + 0xa8]
lea rdi, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae rdi, qword [rbp + 0x98]
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0xe0], xmm0
mov word [rbp + 0xd0], r13w
mov rdx, rbx
sub rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.14002e510
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.14002f3d0
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0xe0]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x14004ffc0]
movdqu xmmword [rbp + 0xe0], xmm0
mov word [rbp + 0xd0], r13w
lea rcx, [rbp + 0xd0]
call fcn.140005440
nop
mov rax, qword [rbp + 0xb0]
cmp rax, 0x10
jb 0x140020778
inc rax
mov rcx, qword [rbp + 0x98]
cmp rax, 0x1000
jb 0x140020773
test cl, 0x1f
jne 0x14002076c
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14002076c
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x14002076c
mov rcx, rax
jmp 0x140020773
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e3cc
movdqa xmm0, xmmword [0x14004ffd0]
movdqu xmmword [rbp + 0xa8], xmm0
mov byte [rbp + 0x98], 0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.14002b110
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test rsi, rsi
je 0x14002081f
mov rax, qword [rbp + 0xc8]
sub rax, rsi
cmp rax, 0x1000
jb 0x140020816
test sil, 0x1f
jne 0x14002080f
mov rax, qword [rsi - 8]
cmp rax, rsi
jae 0x14002080f
sub rsi, rax
sub rsi, 8
cmp rsi, 0x1f
ja 0x14002080f
mov rsi, rax
jmp 0x140020816
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14003e3cc
nop
lea rcx, [rbp + 0x70]
call fcn.140005440
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x14002086e
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140020869
test cl, 0x1f
jne 0x140020862
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140020862
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x140020862
mov rcx, rax
jmp 0x140020869
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e3cc
mov byte [rbp + 0x40], 0
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], r13
mov rcx, r15
call fcn.140005440
mov rax, r14
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14003e0b0
mov rbx, qword [rsp + 0x240]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret