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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r8
mov r14, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x4c], ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14004c464
mov word [rbp + 0x98], bx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rbx
mov byte [rsi], bl
cmp byte [rbp + 0x98], bl
je 0x14004c44d
lea rax, [rbp + 0x98]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c444
mov r8, rbx
lea rdx, [rbp + 0x98]
mov rcx, rsi
call fcn.140034cf0
jmp 0x14004c72c
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14004c4e2
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov word [rbp + 0x98], bx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rbx
mov byte [rsi], bl
cmp byte [rbp + 0x98], bl
je 0x14004c4cb
lea rax, [rbp + 0x98]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c4c2
mov r8, rbx
lea rdx, [rbp + 0x98]
mov rcx, rsi
call fcn.140034cf0
jmp 0x14004c72c
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14004c560
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov word [rbp + 0x98], bx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rbx
mov byte [rsi], bl
cmp byte [rbp + 0x98], bl
je 0x14004c549
lea rax, [rbp + 0x98]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c540
mov r8, rbx
lea rdx, [rbp + 0x98]
mov rcx, rsi
call fcn.140034cf0
jmp 0x14004c72c
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14004c5bc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov word [rbp + 0x98], bx
lea rdx, [rbp + 0x98]
mov rcx, rsi
call fcn.140034b20
jmp 0x14004c72c
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140047a70
nop
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x38]
mov r14, qword [rsp + 0x50]
mov r8, r14
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14004c630
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov word [rbp + 0x98], 0
lea rdx, [rbp + 0x98]
mov rcx, rsi
call fcn.140034b20
nop
lea rcx, [rsp + 0x50]
call fcn.1400479f0
jmp 0x14004c72c
lea rcx, [rsp + 0x70]
call fcn.140048d10
nop
mov rbx, r14
mov r15, qword [rsp + 0x58]
cmp r14, r15
je 0x14004c698
nop dword [rax + rax]
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x38], Ordinal_50
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x68], 2
movzx edi, byte [rbx]
lea rdx, [0x140035890]
lea rcx, [rsp + 0x70]
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, r15
jne 0x14004c650
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140048c60
nop
lea rcx, [rbp - 8]
call fcn.140048c90
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test r14, r14
je 0x14004c72c
mov rax, qword [rsp + 0x60]
sub rax, r14
cmp rax, 0x1000
jb 0x14004c724
test r14b, 0x1f
je 0x14004c6f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [r14 - 8]
cmp rax, r14
jb 0x14004c704
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub r14, rax
cmp r14, 8
jae 0x14004c714
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r14, 0x27
jbe 0x14004c721
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14, rax
mov rcx, r14
call fcn.140054a50
mov rax, rsi
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret