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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14005b178]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, qword [rbp + 0x60]
and qword [rbp - 0x50], 0
and qword [rbp - 0x48], 0
and qword [rbp - 0x40], 0
and qword [rbp - 0x38], 0
mov r12, r9
mov rsi, r8
mov rbx, rcx
mov r14, rdx
xor edi, edi
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rcx, [rbp - 0x50]
lea r9d, [rdi + 1]
xor edx, edx
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
and dword [rsp + 0x20], edi
lea r9d, [rdi + 1]
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rcx, [rbp - 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000820a
lea r9d, [rdi + 1]
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rcx, [rbp - 0x50]
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400083ca
mov rcx, qword [rbp - 0x50]
mov eax, 1
lea r9, [rbp - 0x48]
mov r8d, eax
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x140008363
mov rcx, qword [rbp - 0x48]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 6]
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x140008363
mov rcx, qword [rbp - 0x48]
mov qword [rsp + 0x28], rsi
mov esi, 0x40
lea r8d, [rsi - 0x3a]
mov r9d, esi
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x140008363
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140008363
test rbx, rbx
je 0x1400082c4
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp byte [rbx + rcx], dil
jne 0x1400082ab
test rcx, rcx
je 0x1400082c4
inc rax
cmp byte [rbx + rax], dil
jne 0x1400082b9
jmp 0x1400082d6
lea rcx, [rbp - 0x30]
call fcn.1400083e8
lea rbx, [rbp - 0x30]
mov eax, 0x20
mov rcx, qword [rbp - 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140008363
mov r8, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x40]
mov r9d, 0xa80010
mov edx, 0x6603
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140008363
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
xor r9d, r9d
lea ebx, [r9 + 7]
mov qword [rsp + 0x28], r15
and qword [rsp + 0x20], rdi
mov r8d, ebx
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x140008363
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
mov r9d, esi
mov r8d, ebx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
mov ebx, 1
test eax, eax
cmovne edi, ebx
jmp 0x140008368
mov ebx, 1
lea rcx, [rbp - 0x30]
mov edx, 0x20
call fcn.140010a84
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140008385
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140008394
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400083a3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rbp - 0x50], 0
je 0x1400083c8
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rcx, [rbp - 0x50]
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140012b40
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret