Function at 0x14009c93c
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 0x14009cd35
mov rax, qword [rcx]
cmp rax, qword [str.SuppData]
jne 0x14009c985
mov eax, dword [rcx + 0x14]
lea rbx, [rcx + 0x18]
sub eax, 0x40
jmp 0x14009c98b
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 0x14009cd35
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 0x14009cd16
mov edx, dword [rsp + 0x88]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14009cd2a
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 0x14009ccf7
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 0x14009cd0b
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 0x14009ccd6
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 0x14009ccb5
mov edx, dword [rsp + 0x30]
lea rcx, [rbx + 0x58]
lea r9, [0x140010868]
lea r8, [rsp + 0x38]
add edx, 0xffffffe8
call fcn.14000efbc
test eax, eax
je 0x14009ccc9
mov rax, qword [rsp + 0x38]
xor esi, esi
cmp dword [rax], esi
jbe 0x14009cca2
xor edi, edi
mov ebx, esi
lea rcx, str.____u___wZ
mov edx, esi
shl rbx, 5
lea r8, [rbx + rax + 8]
call fcn.14000a838
mov r11, qword [rsp + 0x38]
lea rcx, [0x1400c7ec0]
lea rdx, [rbx + r11 + 8]
mov r8b, 1
call sub.ntdll.dll_RtlEqualUnicodeString
test al, al
mov rax, qword [rsp + 0x38]
je 0x14009cbea
mov rbx, qword [rdi + rax + 0x20]
mov edx, dword [rbx]
test edx, edx
je 0x14009cbac
cmp edx, 4
je 0x14009cb86
lea rcx, str._nUnknown_version:__u_n
call fcn.14000a838
jmp 0x14009cc83
test byte [rbx + 4], 2
je 0x14009cc83
lea rcx, str._n__NTLM:
call fcn.14000a838
lea rcx, [rbx + 0xc]
xor r8d, r8d
lea edx, [r8 + 0x10]
jmp 0x14009cc7e
test byte [rbx + 4], 1
je 0x14009cbce
lea rcx, str._n____LM:
call fcn.14000a838
xor r8d, r8d
lea rcx, [rbx + 8]
lea edx, [r8 + 0x10]
call fcn.1400112ac
test byte [rbx + 4], 2
je 0x14009cc83
lea rcx, str._n__NTLM:
call fcn.14000a838
lea rcx, [rbx + 0x18]
jmp 0x14009cba0
lea rdx, [rbx + rax + 8]
lea rcx, [0x1400c7ee8]
mov r8b, 1
call sub.ntdll.dll_RtlEqualUnicodeString
test al, al
je 0x14009cc5e
mov rcx, qword [rsp + 0x38]
lea r9, [0x14001076c]
lea r8, [rsp + 0x40]
mov edx, dword [rdi + rcx + 0x18]
mov rcx, qword [rdi + rcx + 0x20]
call fcn.14000efbc
test eax, eax
je 0x14009cc83
mov rdx, qword [rsp + 0x40]
xor ebx, ebx
cmp dword [rdx], ebx
jbe 0x14009cc4b
lea rcx, [rbx + rbx*2]
lea rcx, [rdx + rcx*8 + 8]
xor edx, edx
call fcn.1400b898c
mov rdx, qword [rsp + 0x40]
inc ebx
cmp ebx, dword [rdx]
jb 0x14009cc30
lea rdx, [0x140010794]
lea rcx, [rsp + 0x40]
call fcn.14000f0d8
jmp 0x14009cc83
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
mov rcx, qword [rsp + 0x38]
mov r8d, 0x100001
mov edx, dword [rdi + rcx + 0x18]
mov rcx, qword [rdi + rcx + 0x20]
call fcn.1400112ac
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
mov rax, qword [rsp + 0x38]
inc esi
add rdi, 0x20
cmp esi, dword [rax]
jb 0x14009cb26
lea rdx, [0x140010890]
lea rcx, [rsp + 0x38]
call fcn.14000f0d8
jmp 0x14009ccc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_decryptSCCache___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.14000a838
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x14009ccea
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.14000a838
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14009cd0b
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.14000a838
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009cd2a
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.14000a838
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