Function at 0x140034130
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x78], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rsp + 0x30], 1
test rdx, rdx
je 0x14003461c
mov qword [rbp - 0x60], r14
mov edx, r14d
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x70], SafeArrayUnlock
mov qword [rsp + 0x70], r14
mov ecx, r14d
lea r8, vtable.std::_Func_impl_no_alloc_int____cdecl___unsigned_long_long_unsigned___int64___unsigned_long_int___int__unsigned_long_long_unsigned___int64___unsigned_long_int_.0
cmp qword [sym.imp.ADVAPI32.dll_CryptReleaseContext], r14
je 0x1400341df
mov qword [rsp + 0x38], r8
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rbp], r14
mov dword [rbp + 8], r14d
mov qword [rbp + 0x48], r14
test rcx, rcx
je 0x14003421c
mov qword [rbp + 0x10], r8
mov rax, qword [rcx + 8]
mov qword [rbp + 0x18], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14003421c
mov edx, 0x10
call fcn.140148ec0
mov rdx, qword [rbp - 0x68]
mov qword [rsp + 0x70], r14
mov rcx, r14
lea r8, vtable.std::_Func_impl_no_alloc_int____cdecl___unsigned_long_long_unsigned___int64____int__unsigned_long_long_unsigned___int64__.0
cmp qword [sym.imp.ADVAPI32.dll_CryptDestroyHash], r14
je 0x140034254
mov qword [rsp + 0x38], r8
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x10], r14
test rcx, rcx
je 0x14003428a
mov qword [rbp - 0x48], r8
mov rax, qword [rcx + 8]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14003428a
mov edx, 0x10
call fcn.140148ec0
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14003459a
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14003459a
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14003459a
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x70]
lea r8, [rbp + 0x150]
mov edx, 2
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14003459a
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x50]
call fcn.140167e60
lea rcx, [0x140000000]
lea rax, [rcx + 0x1e5db8]
mov qword [rbp + 0x50], rax
lea rax, [rcx + 0x1e5db0]
mov qword [rbp + 0x60], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0xe8], rax
mov dword [rsp + 0x30], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x50]
call fcn.14002f320
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x5c], edx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x4c], edx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x68]
call fcn.14002f4b0
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x68], rax
mov r8, r14
mov qword [rbp + 0xd0], r14
mov ecx, r14d
mov dword [rbp + 0xd8], ecx
mov edi, r14d
cmp dword [rbp - 0x70], r14d
jbe 0x140034476
nop dword [rax + rax]
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
call fcn.14003a3d0
mov eax, edi
lea rbx, [rbp + 0x150]
add rbx, rax
movzx edx, byte [rbx]
shr edx, 4
lea rcx, [rbp + 0x60]
call fcn.140037850
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
call fcn.14003a3d0
movzx edx, byte [rbx]
and edx, 0xf
lea rcx, [rbp + 0x60]
call fcn.140037850
inc edi
cmp edi, dword [rbp - 0x70]
jb 0x140034410
mov ecx, dword [rbp + 0xd8]
mov r8, qword [rbp + 0xd0]
movdqa xmm0, xmmword [0x1401e87c0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
mov dword [rsp + 0x30], 0x23
test cl, 2
jne 0x1400344bc
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400344bc
mov rax, qword [rbp + 0x88]
mov r9, qword [rax]
cmp rdx, r8
cmovb rdx, r8
sub rdx, r9
jmp 0x1400344ed
test cl, 4
jne 0x140034520
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140034520
mov rax, qword [rbp + 0x80]
mov r9, qword [rax]
mov rax, qword [rbp + 0xb8]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
sar rdx, 1
lea rcx, [rsp + 0x38]
cmp rdx, 7
ja 0x140034517
mov qword [rsp + 0x48], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1401679c0
mov word [rsp + rbx + 0x38], r14w
jmp 0x140034520
xor r8d, r8d
call fcn.14001f490
nop
mov dword [rsp + 0x30], SafeArrayUnlock
lea rax, [rsp + 0x38]
cmp rsi, rax
je 0x14003454d
mov rcx, rsi
call fcn.14001fb60
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm1
jmp 0x140034590
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140034590
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003458a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034642
call fcn.140148ec0
nop
lea rcx, [rbp + 0x50]
call fcn.14002d230
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400345bf
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140034648
mov rax, qword [rax + 8]
call qword [case.0x140024b66.0]
nop
mov qword [rbp - 0x50], r14
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400345df
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x1400345db
mov edx, 0x10
call fcn.140148ec0
mov qword [rbp - 0x10], r14
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400345ff
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14003463c
mov edx, dword [rbp + 8]
mov rax, qword [rax + 8]
call qword [case.0x140024b66.0]
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14003461c
lea rax, [rbp + 0x10]
cmp rcx, rax
je 0x14003461c
mov edx, 0x10
call fcn.140148ec0
nop
mov rax, rsi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140149290
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140126d20
nop
call fcn.14016ae5c
nop
call fcn.140126d20
int3