Function at 0x1401392d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
push r12
lea rbp, [rsp - 0x37]
sub rsp, 0x98
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, qword [rbp + 0x7f]
mov r12, r8
mov qword [rbp - 0x29], r9
mov rsi, rcx
mov qword [rbp - 0x31], rdx
call fcn.1400372d0
cmp eax, 0x1c
jae 0x140139323
mov rax, qword [rdi]
lea rdx, str.Not_enough_bytes_to_be_a_PVK
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396da
mov qword [rsp + 0x90], rbx
mov rcx, r12
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x78], r15
call fcn.140035e00
mov rcx, rsi
call fcn.140036f60
mov rcx, rsi
mov rbx, rax
mov r15d, dword [rax + 0xc]
mov r14d, dword [rax + 0x10]
mov r13d, dword [rax + 0x14]
call fcn.1400372d0
sub eax, 0x18
cmp eax, r14d
jae 0x140139386
mov rax, qword [rdi]
lea rdx, str.Not_enough_bytes_for_PVK_salt
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
add rbx, 0x18
sub eax, r14d
lea rsi, [rbx + r14]
cmp eax, r13d
jae 0x1401393ad
mov rax, qword [rdi]
lea rdx, str.Not_enough_bytes_for_PVK_key
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
xor eax, eax
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
mov dword [rsp + 0x20], eax
lea r9d, [rax + 1]
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
jne 0x140139492
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140139419
mov r9d, 1
mov dword [rsp + 0x20], 8
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rbp - 0x21]
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
jne 0x140139492
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.errorCode2
jmp 0x140139487
cmp eax, 2
jne 0x140139480
lea r9d, [rax - 1]
mov dword [rsp + 0x20], 0x20
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rbp - 0x21]
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
jne 0x140139492
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140139492
mov r9d, 1
mov dword [rsp + 0x20], 0x28
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rbp - 0x21]
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
jne 0x140139492
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.errorCode3
jmp 0x140139487
lea rdx, str.errorCode
mov r8d, eax
mov rcx, rdi
call fcn.140071f70
mov rcx, qword [rbp - 0x21]
test rcx, rcx
jne 0x1401394b2
mov rax, qword [rdi]
lea rdx, str.Failed_to_acquire_context_for_PVK_session_key
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
xor r9d, r9d
mov qword [rbp - 0x11], r9
mov qword [rbp - 0x19], r9
test r15d, r15d
je 0x140139600
lea rax, [rbp - 0x19]
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140139504
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rdi]
lea rdx, str.Failed_to_create_SHA1_hash_for_PVK_session_key
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
test r14d, r14d
je 0x14013954d
mov rcx, qword [rbp - 0x19]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14013954d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rdi]
lea rdx, str.Failed_to_hash_salt.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
mov rcx, qword [rbp - 0x31]
call fcn.14003e3e0
mov rcx, qword [rbp - 0x31]
mov ebx, eax
call fcn.14003d4a0
mov rcx, qword [rbp - 0x19]
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1401395a5
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rdi]
lea rdx, str.Failed_to_hash_password.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
mov r8, qword [rbp - 0x19]
lea rax, [rbp - 0x11]
mov rcx, qword [rbp - 0x21]
mov r9d, 1
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1401395f8
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rdi]
lea rdx, str.Failed_to_derive_session_key_for_PVK.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
mov rcx, qword [rbp - 0x21]
mov r9, qword [rbp - 0x11]
lea rax, [rbp - 9]
mov qword [rbp - 9], 0
mov qword [rsp + 0x28], rax
mov r8d, r13d
mov rdx, rsi
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140139675
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.errorCode
mov rcx, rdi
mov r8d, eax
call fcn.140071f70
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rdi]
lea rdx, str.Failed_to_import_private_key.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401396bd
mov r8, qword [rbp - 0x29]
mov r9, rdi
mov rcx, qword [rbp - 9]
mov rdx, r12
call fcn.140138d80
mov rcx, qword [rbp - 9]
movzx ebx, al
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test r15d, r15d
je 0x1401396ae
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, bl
mov r14, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x78]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x98
pop r12
pop rdi
pop rsi
pop rbp
ret