Function at 0x140001118
Capabilities:
Encrypt data using rc4 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0x90
xor ebx, ebx
mov r11d, r8d
and qword [rbp - 9], rbx
xor r14d, r14d
xor edi, edi
mov qword [rbp - 0x21], r14
xor esi, esi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rsi
mov r15, r9
mov r10, rdx
mov r12, rcx
cmp r8d, 0x18
jae 0x140001170
mov ebx, 0x8007000b
jmp 0x140001395
movups xmm1, xmmword [rdx]
movsd xmm0, qword [rdx + 0x10]
movd eax, xmm1
movups xmmword [rbp - 1], xmm1
movsd qword [rbp + 0xf], xmm0
cmp eax, 0xb0b5f11e
jne 0x14000133f
mov rax, qword [rbp - 1]
shr rax, 0x20
test eax, eax
jne 0x14000133f
mov edx, dword [rbp + 0xf]
cmp edx, 0x1000
ja 0x14000133f
mov rcx, qword [rbp + 0xf]
shr rcx, 0x20
lea eax, [rcx - 1]
cmp eax, 0xfff
ja 0x14000133f
mov rax, rcx
lea rcx, [rdx + 0x18]
add rcx, rax
cmp rcx, r11
ja 0x14000133f
mov rax, qword [rbp + 7]
lea rcx, [r10 + 0x18]
shr rax, 0x20
lea r13, [rdx + rcx]
test eax, eax
je 0x14000124c
sub eax, 1
je 0x140001306
cmp eax, 1
jne 0x140001166
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov edx, 0x6602
mov r9d, dword [rbp + 0x6f]
mov r8, r15
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.140002744
mov r14, qword [rbp - 0x21]
mov ebx, eax
mov rdi, qword [rbp - 0x19]
mov rsi, qword [rbp - 0x11]
test eax, eax
js 0x140001344
mov r15d, dword [rbp + 0x13]
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov r9, r14
mov r8d, r15d
mov dword [rsp + 0x20], 1
mov rdx, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop dword [rax + rax]
test eax, eax
jne 0x14000132f
test rdi, rdi
je 0x1400012e5
lea rax, [rbp - 9]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8d, r15d
mov rdx, r13
mov dword [rsp + 0x20], 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop dword [rax + rax]
test eax, eax
jne 0x14000132f
test rsi, rsi
je 0x1400012e5
lea rax, [rbp - 9]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, r15d
mov rdx, r13
mov dword [rsp + 0x20], 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop dword [rax + rax]
test eax, eax
jne 0x14000132f
and qword [rbp - 9], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001344
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov edx, 0x6801
jmp 0x140001222
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140001344
mov eax, dword [rbp + 7]
mov dword [rcx], eax
jmp 0x140001344
mov ebx, 0x8007000b
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140001359
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
test rsi, rsi
je 0x14000136d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
test rdi, rdi
je 0x140001381
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
test r14, r14
je 0x140001395
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret