Function at 0x1400a16dc
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 rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
xor r12d, r12d
mov esi, r9d
mov rdi, r8
and dword [rax + 0x10], r12d
and qword [rax - 0x40], r12
and qword [rax - 0x38], r12
cmp edx, 0x41
jbe 0x1400a1ad5
mov rax, qword [rcx]
cmp rax, qword [str.SuppData]
jne 0x1400a1725
mov eax, dword [rcx + 0x14]
lea rbx, [rcx + 0x18]
sub eax, 0x40
jmp 0x1400a172b
mov rbx, rcx
lea eax, [rdx - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400a1ad5
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x88]
mov qword [rsp + 0x28], r11
and qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x1400a1ab6
mov edx, dword [rsp + 0x88]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x1400a1aca
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x1400a1a97
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400a1aab
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rbx + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x48]
lea r11, [rsp + 0x58]
xor r9d, r9d
mov edx, 0x6801
mov rcx, rdi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400a1a76
lea rcx, [rsp + 0x30]
xor r9d, r9d
lea rax, [rbx + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov r12d, eax
test eax, eax
je 0x1400a1a55
mov edx, dword [rsp + 0x30]
lea rcx, [rbx + 0x58]
lea r9, [0x140012524]
lea r8, [rsp + 0x38]
add edx, 0xffffffe8
call fcn.140010970
test eax, eax
je 0x1400a1a69
mov rax, qword [rsp + 0x38]
xor esi, esi
cmp dword [rax], esi
jbe 0x1400a1a42
xor edi, edi
mov ebx, esi
lea rcx, str.____u___wZ
mov edx, esi
shl rbx, 5
lea r8, [rbx + rax + 8]
call fcn.14000c030
mov r11, qword [rsp + 0x38]
lea rcx, [0x1400d55a8]
lea rdx, [rbx + r11 + 8]
mov r8b, 1
call sub.ntdll.dll_RtlEqualUnicodeString
test al, al
mov rax, qword [rsp + 0x38]
je 0x1400a198a
mov rbx, qword [rdi + rax + 0x20]
mov edx, dword [rbx]
test edx, edx
je 0x1400a194c
cmp edx, 4
je 0x1400a1926
lea rcx, str._nUnknown_version:__u_n
call fcn.14000c030
jmp 0x1400a1a23
test byte [rbx + 4], 2
je 0x1400a1a23
lea rcx, str._n__NTLM:
call fcn.14000c030
lea rcx, [rbx + 0xc]
xor r8d, r8d
lea edx, [r8 + 0x10]
jmp 0x1400a1a1e
test byte [rbx + 4], 1
je 0x1400a196e
lea rcx, str._n____LM:
call fcn.14000c030
xor r8d, r8d
lea rcx, [rbx + 8]
lea edx, [r8 + 0x10]
call fcn.140012f68
test byte [rbx + 4], 2
je 0x1400a1a23
lea rcx, str._n__NTLM:
call fcn.14000c030
lea rcx, [rbx + 0x18]
jmp 0x1400a1940
lea rdx, [rbx + rax + 8]
lea rcx, [0x1400d55d0]
mov r8b, 1
call sub.ntdll.dll_RtlEqualUnicodeString
test al, al
je 0x1400a19fe
mov rcx, qword [rsp + 0x38]
lea r9, [0x1400121ac]
lea r8, [rsp + 0x40]
mov edx, dword [rdi + rcx + 0x18]
mov rcx, qword [rdi + rcx + 0x20]
call fcn.140010970
test eax, eax
je 0x1400a1a23
mov rdx, qword [rsp + 0x40]
xor ebx, ebx
cmp dword [rdx], ebx
jbe 0x1400a19eb
lea rcx, [rbx + rbx*2]
lea rcx, [rdx + rcx*8 + 8]
xor edx, edx
call fcn.1400c51e8
mov rdx, qword [rsp + 0x40]
inc ebx
cmp ebx, dword [rdx]
jb 0x1400a19d0
lea rdx, [0x1400121d4]
lea rcx, [rsp + 0x40]
call fcn.140010a8c
jmp 0x1400a1a23
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, 0x100001
mov edx, dword [rdi + rcx + 0x18]
mov rcx, qword [rdi + rcx + 0x20]
call fcn.140012f68
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000c030
mov rax, qword [rsp + 0x38]
inc esi
add rdi, 0x20
cmp esi, dword [rax]
jb 0x1400a18c6
lea rdx, [0x14001254c]
lea rcx, [rsp + 0x38]
call fcn.140010a8c
jmp 0x1400a1a69
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1400a1a8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptDeriveKey_RC4___0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1400a1aab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptSignHash_data___0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a1aca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptSignHash_init___0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea r11, [rsp + 0x60]
mov eax, r12d
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret