Function at 0x140030850
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 [0x14022b078]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov esi, r8d
mov rbx, rdx
mov rdi, 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 0x140030cf4
mov qword [rbp - 0x68], r14
mov edx, r14d
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x60], 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 0x1400308ff
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 0x14003093c
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 0x14003093c
mov edx, 0x10
call fcn.14013f180
mov rdx, qword [rbp - 0x70]
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 0x140030974
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 0x1400309aa
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 0x1400309aa
mov edx, 0x10
call fcn.14013f180
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140030c74
lea rax, [rbp - 0x70]
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
je 0x140030c74
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140030c74
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x150]
mov edx, 2
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140030c74
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x50]
call fcn.14015e120
lea rax, [0x1401d8010]
mov qword [rbp + 0x50], rax
lea rax, [0x1401d8008]
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
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x50]
call fcn.140027500
nop
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.140027690
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 esi, r14d
cmp dword [rbp - 0x60], r14d
jbe 0x140030b50
nop dword [rax + rax]
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, dword [rbp + rcx + 0x78]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rbp + rcx + 0x78], eax
mov eax, esi
lea rbx, [rbp + 0x150]
add rbx, rax
movzx edx, byte [rbx]
shr edx, 4
lea rcx, [rbp + 0x60]
call fcn.140033fe0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, dword [rbp + rcx + 0x78]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rbp + rcx + 0x78], eax
movzx edx, byte [rbx]
and edx, 0xf
lea rcx, [rbp + 0x60]
call fcn.140033fe0
inc esi
cmp esi, dword [rbp - 0x60]
jb 0x140030ae0
mov ecx, dword [rbp + 0xd8]
mov r8, qword [rbp + 0xd0]
movdqa xmm0, xmmword [0x1401da830]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
mov dword [rsp + 0x30], VariantTimeToDosDateTime
test cl, 2
jne 0x140030b96
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
test rdx, rdx
je 0x140030b96
mov rax, qword [rbp + 0x88]
mov r9, qword [rax]
cmp rdx, r8
cmovb rdx, r8
sub rdx, r9
jmp 0x140030bc7
test cl, 4
jne 0x140030bfa
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140030bfa
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 0x140030bf1
mov qword [rsp + 0x48], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14015dc80
mov word [rsp + rbx + 0x38], r14w
jmp 0x140030bfa
xor r8d, r8d
call fcn.140016ea0
nop
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x140030c27
mov rcx, rdi
call fcn.140017110
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140030c6a
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140030c6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030c64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030d1a
call fcn.14013f180
nop
lea rcx, [rbp + 0x50]
call fcn.140025550
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140030c98
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140030d20
mov rax, qword [rax + 8]
call qword [case.0x14001c280.0]
mov qword [rbp - 0x50], r14
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140030cb8
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x140030cb4
mov edx, 0x10
call fcn.14013f180
mov qword [rbp - 0x10], r14
mov rcx, qword [rbp]
test rcx, rcx
je 0x140030cd7
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x140030d14
mov edx, dword [rbp + 8]
mov rax, qword [rax + 8]
call qword [case.0x14001c280.0]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140030cf4
lea rax, [rbp + 0x10]
cmp rcx, rax
je 0x140030cf4
mov edx, 0x10
call fcn.14013f180
nop
mov rax, rdi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14013f550
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14011cfe0
nop
call fcn.14016111c
nop
call fcn.14011cfe0
int3