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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rbp + 0x60], r14
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor r8d, r8d
test eax, eax
jne 0x14000bde7
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rdx, [0x140043aae]
mov rcx, rdi
call fcn.140008d50
jmp 0x14000bf90
mov qword [rbp + 0x50], r14
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov edx, 0x800c
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000be5c
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp + 0x50]
test eax, eax
je 0x14000be56
mov dword [rbp + 0x58], r14d
mov dword [rbp + 0x80], 4
mov dword [rsp + 0x20], r14d
lea r9, [rbp + 0x80]
lea r8, [rbp + 0x58]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000be8d
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140043aae]
mov rcx, rdi
call fcn.140008d50
jmp 0x14000bf90
xorps xmm0, xmm0
mov esi, dword [rbp + 0x58]
movdqu xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r14
test rsi, rsi
je 0x14000befb
cmp rsi, 0x1000
jb 0x14000bed6
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14000c1c0
call fcn.1400276f8
mov rcx, rax
test rax, rax
je 0x14000c1b9
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000bede
mov rcx, rsi
call fcn.1400276f8
mov qword [rbp + 0x68], rax
lea rbx, [rax + rsi]
mov qword [rbp + 0x78], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x70], rbx
mov dword [rsp + 0x20], r14d
lea r9, [rbp + 0x58]
mov r8, qword [rbp + 0x68]
mov edx, 2
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000bfb0
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140043aae]
mov rcx, rdi
call fcn.140008d50
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14000bf90
mov rdx, qword [rbp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bf8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c1b9
call fcn.1400275d0
mov rax, rdi
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.1400275b0
add rsp, 0x190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140043b98]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 8
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], 4
mov rbx, qword [rbp + 0x68]
cmp rbx, qword [rbp + 0x70]
je 0x14000c097
nop dword [rax]
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x48], gethostbyname
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x78], 2
lea rdx, [0x140002490]
lea rcx, [rsp + 0x60]
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]
movzx edx, byte [rbx]
mov rcx, rax
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, qword [rbp + 0x70]
jne 0x14000c050
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_inet_ntoa
movups xmmword [rsp + 0x38], xmm0
mov ecx, dword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14000c0fc
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x14000c0fc
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x14000c12d
test cl, 4
jne 0x14000c123
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000c123
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x14000c12d
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000c13b
mov rcx, rdi
call fcn.140010ad0
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140010320
lea rcx, [rsp + 0x70]
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 - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14000bf90
mov rdx, qword [rbp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bf8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bf8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002310
int3