Function at 0x1000c5c18
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r12, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
xor ebx, ebx
mov r15d, r9d
mov r13, r8
mov esi, edx
mov dword [r12], ebx
mov r14, rcx
mov rdi, rbx
mov qword [rax - 0x68], rbx
mov qword [rax - 0x78], rbx
mov qword [rax - 0x70], rbx
cmp rbp, rbx
je 0x1000c5ca8
lea rcx, [rax - 0x68]
call fcn.1000c4fe8
mov ebx, eax
test eax, eax
je 0x1000c5c97
xor r9d, r9d
mov r8d, eax
mov edx, 0xb5b01a4
xor ecx, ecx
call fcn.1000b51b8
mov rdi, qword [rsp + 0x40]
jmp 0x1000c5f49
mov rdi, qword [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call fcn.1000c5108
xor ebx, ebx
mov eax, 8
mov ecx, 0xf0000000
cmp rbp, rbx
cmove eax, ecx
lea rcx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x1000c5cf2
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xb6a01a4
mov ebx, eax
mov r8d, eax
jmp 0x1000c5f23
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, esi
mov rdx, r14
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp eax, ebx
jne 0x1000c5d37
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xb7601a4
mov ebx, eax
mov r8d, eax
jmp 0x1000c5f23
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x30]
mov qword [rsp + 0x38], rbx
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
mov r14d, 1
lea r8, [rsp + 0x38]
mov edx, r14d
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x58], r14d
mov esi, r14d
mov dword [rsp + 0x70], r14d
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
cmp eax, ebx
jne 0x1000c5de3
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xb8201a4
xor ecx, ecx
mov r9d, eax
mov r8d, eax
call fcn.1000b51b8
mov rcx, qword [rsp + 0x30]
lea eax, [r14 + 1]
lea r8, [rsp + 0x38]
mov edx, eax
mov esi, eax
mov dword [rsp + 0x70], eax
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
cmp eax, ebx
jne 0x1000c5ddf
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xb8801a4
mov ebx, eax
mov r8d, eax
jmp 0x1000c5f23
mov dword [r12], r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x38], rbx
cmp rbp, rbx
je 0x1000c5e41
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rcx, [rsp + 0x30]
mov r9d, r14d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x1000c5e41
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xb9c01a4
mov ebx, eax
mov r8d, eax
jmp 0x1000c5f23
cmp esi, 2
je 0x1000c5e85
cmp esi, 0x5dc
je 0x1000c5e85
cmp esi, 0x9c4
je 0x1000c5e85
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xd0]
mov r9d, 0x6801
mov r8, r13
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.1000c4648
mov ebx, eax
test eax, eax
je 0x1000c5ec6
mov edx, 0xbb501a4
jmp 0x1000c5eb2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xd0]
mov r9d, 0x8004
mov r8, r13
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.1000c4398
mov ebx, eax
test eax, eax
je 0x1000c5ec6
mov edx, 0xbab01a4
xor r9d, r9d
mov r8d, eax
xor ecx, ecx
call fcn.1000b51b8
mov edx, 0xbb901a4
jmp 0x1000c5f20
mov ebx, dword [rsp + 0xd0]
test ebx, ebx
je 0x1000c5ed8
mov edx, 0xbbc01a4
jmp 0x1000c5f20
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xd0]
mov r9d, r15d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, esi
mov qword [rsp + 0x20], r13
call fcn.1000bd72c
mov ebx, eax
test eax, eax
je 0x1000c5f0c
mov r8d, eax
mov edx, 0xbc501a4
jmp 0x1000c5f23
cmp dword [rsp + 0xd0], 0
jne 0x1000c5f2f
mov ebx, 0x80090003
mov edx, 0xbca01a4
mov r8d, ebx
xor r9d, r9d
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000c5f49
test rbp, rbp
je 0x1000c5f49
lea rdx, [rsp + 0x48]
mov rcx, rbp
mov r8d, 0x30
call sub.msvcrt.dll_memcpy
xor edi, edi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1000c5f59
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000c5f6b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test rdi, rdi
je 0x1000c5f83
xor edx, edx
mov rcx, rdi
call fcn.1000c5108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret