Function at 0x180007aa4
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 r12
push r13
mov rbp, rsp
sub rsp, 0x60
xor r13d, r13d
mov esi, r9d
mov rdi, r8
and dword [rbp + 0x28], r13d
and qword [rbp - 0x28], r13
and qword [rbp - 0x20], r13
cmp edx, 0x41
jbe 0x180007e2e
mov rax, qword [rcx]
cmp rax, qword [str.SuppData]
jne 0x180007af5
mov eax, dword [rcx + 0x14]
lea rbx, [rcx + 0x18]
sub eax, 0x40
jmp 0x180007afb
mov rbx, rcx
lea eax, [rdx - 0x40]
mov dword [rbp - 0x30], eax
lea rax, [rbp - 0x10]
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 0x180007e2e
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 r11, [rbp + 0x28]
mov qword [rsp + 0x28], r11
and qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x180007e17
mov edx, dword [rbp + 0x28]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
test rax, rax
je 0x180007e24
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, esi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x180007dff
lea rax, [rbp - 0x18]
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 0x180007e0c
mov r8d, dword [rbp + 0x28]
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rbx + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rbp - 0x18]
lea r11, [rbp - 8]
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 0x180007de6
lea rcx, [rbp - 0x30]
xor r9d, r9d
lea rax, [rbx + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 8]
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov r13d, eax
test eax, eax
je 0x180007dcd
mov edx, dword [rbp - 0x30]
lea rcx, [rbx + 0x58]
lea r9, [0x180010924]
lea r8, [rbp - 0x28]
add edx, 0xffffffe8
call fcn.18001a7b8
test eax, eax
je 0x180007dda
mov rax, qword [rbp - 0x28]
xor esi, esi
cmp dword [rax], esi
jbe 0x180007dbb
xor edi, edi
mov rax, qword [rbp - 0x28]
mov ebx, esi
mov ecx, esi
shl rbx, 5
lea rdx, [rbx + rax + 8]
call fcn.180004a6c
mov rcx, qword [rbp - 0x28]
mov r8b, 1
lea rdx, [rbx + rcx + 8]
lea rcx, [0x180039378]
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
mov rax, qword [rbp - 0x28]
je 0x180007d17
mov rbx, qword [rdi + rax + 0x20]
mov ecx, dword [rbx]
test ecx, ecx
je 0x180007ce7
cmp ecx, 4
je 0x180007cc8
call fcn.180004a6c
jmp 0x180007da4
test byte [rbx + 4], 2
je 0x180007da4
call fcn.180004a6c
lea rcx, [rbx + 0xc]
xor r8d, r8d
lea edx, [r8 + 0x10]
jmp 0x180007d9f
test byte [rbx + 4], 1
je 0x180007d02
call fcn.180004a6c
xor r8d, r8d
lea rcx, [rbx + 8]
lea edx, [r8 + 0x10]
call fcn.18000e590
test byte [rbx + 4], 2
je 0x180007da4
call fcn.180004a6c
lea rcx, [rbx + 0x18]
jmp 0x180007cdb
lea rdx, [rbx + rax + 8]
lea rcx, [0x180039388]
mov r8b, 1
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x180007d87
mov rcx, qword [rbp - 0x28]
lea r9, [0x180018f70]
lea r8, [rbp - 0x20]
mov edx, dword [rdi + rcx + 0x18]
mov rcx, qword [rdi + rcx + 0x20]
call fcn.18001a7b8
test eax, eax
je 0x180007da4
mov rdx, qword [rbp - 0x20]
xor ebx, ebx
cmp dword [rdx], ebx
jbe 0x180007d75
lea rcx, [rbx + rbx*2]
lea rcx, [rdx + rcx*8 + 8]
xor edx, edx
call fcn.18000dbac
mov rdx, qword [rbp - 0x20]
inc ebx
cmp ebx, dword [rdx]
jb 0x180007d5b
lea rdx, [0x180018f9c]
lea rcx, [rbp - 0x20]
call fcn.18001a8c0
jmp 0x180007da4
call fcn.180004a6c
mov rcx, qword [rbp - 0x28]
mov r8d, 0x100001
mov edx, dword [rdi + rcx + 0x18]
mov rcx, qword [rdi + rcx + 0x20]
call fcn.18000e590
call fcn.180004a6c
mov rax, qword [rbp - 0x28]
inc esi
add rdi, 0x20
cmp esi, dword [rax]
jb 0x180007c77
lea rdx, [0x180010950]
lea rcx, [rbp - 0x28]
call fcn.18001a8c0
jmp 0x180007dda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x180007df3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x180007e0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180007e24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea r11, [rsp + 0x60]
mov eax, r13d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret