Function at 0x1000c4648
Capabilities:
Encrypt data using rc4 via winapi
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r14, qword [rsp + 0x120]
xor eax, eax
mov r15, r8
mov esi, edx
mov rdi, rcx
mov r12, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], rax
mov r13, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rax
mov rbp, rax
mov qword [rsp + 0x48], rax
cmp edx, 2
je 0x1000c46f2
cmp edx, 1
je 0x1000c46f2
lea r8, [rsp + 0x40]
call fcn.1000c41dc
mov ebx, eax
test eax, eax
je 0x1000c46e5
xor r9d, r9d
mov r8d, eax
mov edx, 0x7e301a4
xor ecx, ecx
call fcn.1000b51b8
mov r12, qword [rsp + 0x40]
jmp 0x1000c490c
mov r12, qword [rsp + 0x40]
mov esi, 1
mov rdi, r12
lea r9, [rsp + 0x68]
mov r8, r15
mov edx, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x1000c4722
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x7f201a4
jmp 0x1000c4878
lea r9, [rsp + 0x30]
mov edx, 0x6801
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x1000c4755
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x7fa01a4
jmp 0x1000c4878
mov r15d, Ordinal_65
lea r8, [rsp + 0x70]
mov rcx, rdi
mov edx, r15d
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1000c4786
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x80201a4
jmp 0x1000c4878
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov r8d, r15d
mov qword [rsp + 0x20], rax
call fcn.1000beaa0
mov ebx, eax
test eax, eax
je 0x1000c47b7
mov edx, 0x81201a4
jmp 0x1000c487a
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov r13d, 1
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, r13d
call fcn.1000be9b0
mov ebx, eax
test eax, eax
je 0x1000c47eb
mov edx, 0x81e01a4
jmp 0x1000c4822
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rsp + 0x30], rbp
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x1000c4839
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x83101a4
mov ebx, eax
mov r8d, eax
xor r9d, r9d
xor ecx, ecx
call fcn.1000b51b8
mov r13, qword [rsp + 0x38]
jmp 0x1000c490c
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r13, qword [rsp + 0x38]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1000c488c
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x83c01a4
mov ebx, eax
xor r9d, r9d
mov r8d, eax
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000c490c
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.1000bebd4
mov ebx, eax
test eax, eax
je 0x1000c48ce
xor r9d, r9d
mov r8d, eax
mov edx, 0x84401a4
xor ecx, ecx
call fcn.1000b51b8
mov rbp, qword [rsp + 0x48]
jmp 0x1000c490c
and dword [r14], ebp
mov rbp, qword [rsp + 0x48]
cmp dword [rsp + 0x38], r15d
jne 0x1000c48f1
lea rcx, [rsp + 0x70]
mov r8, r15
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1000c490a
xor r9d, r9d
xor r8d, r8d
mov edx, 0x85401a4
xor ecx, ecx
mov dword [r14], 0x80090003
call fcn.1000b51b8
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1000c491c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000c492c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000c493c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1000c494c
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1000c495a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x1000c4968
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x1000c4978
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1000ef870
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret