Function at 0x14009e494
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r15d, r15d
mov esi, r9d
and dword [rbp + 0x28], r15d
mov rdi, r8
and qword [rbp - 0x28], r15
and qword [rbp - 0x20], r15
cmp edx, 0x41
jbe 0x14009e87c
movabs rax, 0x6174614470707553
cmp qword [rcx], rax
jne 0x14009e4e8
mov eax, dword [rcx + 0x14]
lea rbx, [rcx + 0x18]
sub eax, 0x40
jmp 0x14009e4ee
mov rbx, rcx
lea eax, [rdx - 0x40]
mov dword [rbp - 0x30], eax
xor r9d, r9d
lea rax, [rbp - 0x10]
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14009e87c
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], r15
xor r8d, r8d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x14009e85e
mov edx, dword [rbp + 0x28]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14009e872
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x14009e83f
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8004
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14009e853
mov r8d, dword [rbp + 0x28]
xor r9d, r9d
mov rcx, qword [rbp - 0x18]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x18]
lea rdx, [rbx + 0x20]
xor r9d, r9d
lea r8d, [r9 + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rbp - 0x18]
lea rax, [rbp - 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0x6801
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14009e81f
xor r9d, r9d
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x40]
mov rcx, qword [rbp - 8]
xor edx, edx
mov qword [rsp + 0x20], rax
lea esi, [r9 + 1]
mov r8d, esi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov r15d, eax
test eax, eax
je 0x14009e7ff
mov edx, dword [rbp - 0x30]
lea rcx, [rbx + 0x58]
add edx, 0xffffffe8
lea r9, [0x14001209c]
lea r8, [rbp - 0x28]
call fcn.1400104cc
test eax, eax
je 0x14009e813
mov rax, qword [rbp - 0x28]
xor edi, edi
cmp dword [rax], edi
jbe 0x14009e7ed
lea r8, [rax + 8]
mov ebx, edi
shl rbx, 5
lea rcx, str.____u___wZ
add r8, rbx
mov edx, edi
call fcn.14000bdc4
mov rdx, qword [rbp - 0x28]
lea rcx, [0x1400d2470]
add rdx, 8
mov r8b, sil
add rdx, rbx
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x14009e735
mov rax, qword [rbp - 0x28]
mov rbx, qword [rbx + rax + 0x20]
mov edx, dword [rbx]
test edx, edx
je 0x14009e6f4
cmp edx, 4
je 0x14009e6ce
lea rcx, str._nUnknown_version:__u_n
call fcn.14000bdc4
jmp 0x14009e7d3
test byte [rbx + 4], 2
je 0x14009e7d3
lea rcx, str._n__NTLM:
call fcn.14000bdc4
lea rcx, [rbx + 0xc]
xor r8d, r8d
lea edx, [r8 + 0x10]
jmp 0x14009e7ce
mov eax, dword [rbx + 4]
test sil, al
je 0x14009e71b
lea rcx, str._n____LM:
call fcn.14000bdc4
xor r8d, r8d
lea rcx, [rbx + 8]
lea edx, [r8 + 0x10]
call fcn.140012b24
mov eax, dword [rbx + 4]
test al, 2
je 0x14009e7d3
lea rcx, str._n__NTLM:
call fcn.14000bdc4
lea rcx, [rbx + 0x18]
jmp 0x14009e6e8
mov rdx, qword [rbp - 0x28]
lea rcx, [0x1400d2220]
add rdx, 8
mov r8b, sil
add rdx, rbx
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x14009e7af
mov rcx, qword [rbp - 0x28]
lea r9, [0x140011ccc]
lea r8, [rbp - 0x20]
mov edx, dword [rbx + rcx + 0x18]
mov rcx, qword [rbx + rcx + 0x20]
call fcn.1400104cc
test eax, eax
je 0x14009e7d3
mov rdx, qword [rbp - 0x20]
xor ebx, ebx
cmp dword [rdx], ebx
jbe 0x14009e79d
mov ecx, ebx
inc rcx
lea rcx, [rcx + rbx*2]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.1400c021c
mov rdx, qword [rbp - 0x20]
add ebx, esi
cmp ebx, dword [rdx]
jb 0x14009e77f
lea rdx, [0x140011cf8]
lea rcx, [rbp - 0x20]
call fcn.1400105e8
jmp 0x14009e7d3
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bdc4
mov rcx, qword [rbp - 0x28]
mov r8d, 0x100001
mov edx, dword [rbx + rcx + 0x18]
mov rcx, qword [rbx + rcx + 0x20]
call fcn.140012b24
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bdc4
mov rax, qword [rbp - 0x28]
add edi, esi
cmp edi, dword [rax]
jb 0x14009e66b
lea rdx, [0x1400120c8]
lea rcx, [rbp - 0x28]
call fcn.1400105e8
jmp 0x14009e813
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptDecrypt__0x_08x__n
call fcn.14000bdc4
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x14009e833
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptDeriveKey_RC4___0x_08x__n
call fcn.14000bdc4
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14009e853
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptSignHash_data___0x_08x__n
call fcn.14000bdc4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009e872
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptSignHash_init___0x_08x__n
call fcn.14000bdc4
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea r11, [rsp + 0x60]
mov eax, r15d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret