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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r9
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
mov rdi, qword [rbp + 0x40]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
cmp qword [rcx], 0
jne 0x14003fabf
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
lea r8, [0x1400fe710]
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptAcquireContextW]
test eax, eax
jne 0x14003fabf
mov edi, 0x80070000
mov esi, 0x80004005
lea ebx, [rax + 2]
cmp dword [0x140142444], ebx
jb 0x14003fa4a
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, edi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, esi
lea rdx, str.Failed_to_aquire_a_crypto_context:_0x_x
mov ecx, ebx
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003faa3
test byte [rcx + 0x1c], 8
je 0x14003faa3
cmp byte [rcx + 0x19], bl
jb 0x14003faa3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r9d, ax
or r9d, edi
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov edx, ntohs
lea r8, [0x1400ff168]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, esi
mov eax, ecx
jmp 0x14003fdfa
and qword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800e
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptCreateHash]
test eax, eax
jne 0x14003fb5c
mov edi, 0x80070000
mov esi, 0x80004005
lea ebx, [rax + 2]
cmp dword [0x140142444], ebx
jb 0x14003fb22
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, edi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, esi
lea rdx, str.Failed_to_create_hash_object:_0x_x
mov ecx, ebx
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003fc9f
test byte [rcx + 0x1c], 8
je 0x14003fc9f
cmp byte [rcx + 0x19], bl
jb 0x14003fc9f
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, ntohs
jmp 0x14003fc6f
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptHashData]
test eax, eax
jne 0x14003fbea
mov edi, 0x80070000
mov esi, 0x80004005
lea ebx, [rax + 2]
cmp dword [0x140142444], ebx
jb 0x14003fbb0
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, edi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, esi
lea rdx, str.Failed_to_hash_data:_0x_x
mov ecx, ebx
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003fc9f
test byte [rcx + 0x1c], 8
je 0x14003fc9f
cmp byte [rcx + 0x19], bl
jb 0x14003fc9f
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, ntohs
jmp 0x14003fc6f
mov r8, qword [rsi + 8]
sub r8, qword [rsi]
xor r9d, r9d
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptHashData]
test eax, eax
jne 0x14003fcb9
mov edi, 0x80070000
mov esi, 0x80004005
lea ebx, [rax + 2]
cmp dword [0x140142444], ebx
jb 0x14003fc46
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, edi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, esi
lea rdx, str.Failed_to_hash_the_salt:_0x_x
mov ecx, ebx
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003fc9f
test byte [rcx + 0x1c], 8
je 0x14003fc9f
cmp byte [rcx + 0x19], bl
jb 0x14003fc9f
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, ntohs
movzx r9d, ax
or r9d, edi
test eax, eax
cmovle r9d, eax
test r9d, r9d
mov eax, 0x80004005
cmovns r9d, eax
lea r8, [0x1400ff168]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, esi
jmp 0x14003fde9
mov edx, 0x40
mov dword [rbp + 0x40], edx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
lea rcx, [rbp - 0x18]
call fcn.140036f24
nop
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x40]
mov r14, qword [rbp - 0x18]
mov r8, r14
mov ebx, 2
mov edx, ebx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptGetHashParam]
test eax, eax
jne 0x14003fdab
mov edi, 0x80070000
mov esi, 0x80004005
cmp dword [0x140142444], ebx
jb 0x14003fd3b
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, edi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, esi
lea rdx, str.Failed_to_get_hashed_value:_0x_x
mov ecx, ebx
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003fd94
test byte [rcx + 0x1c], 8
je 0x14003fd94
cmp byte [rcx + 0x19], bl
jb 0x14003fd94
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r9d, ax
or r9d, edi
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov edx, reloc.WS2_32.dll_ntohs
lea r8, [0x1400ff168]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, esi
jmp 0x14003fdda
lea rax, [rbp - 0x18]
cmp rdi, rax
je 0x14003fdd8
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003fdc2
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi], r14
mov rax, qword [rbp - 0x10]
mov qword [rdi + 8], rax
mov rax, qword [rbp - 8]
mov qword [rdi + 0x10], rax
xor r14d, r14d
xor ebx, ebx
test r14, r14
je 0x14003fde9
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14003fdf8
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret