Function at 0x140032cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x40
lea rax, [0x140034400]
mov dword [rcx + 0x190c], edx
lea rdx, [rsp + 0x60]
mov qword [rcx + 0x1900], rax
mov r8d, 1
mov rbx, rcx
call fcn.140025ac0
movzx eax, byte [rsp + 0x60]
inc eax
mov dword [rbx + 0x1910], eax
cmp eax, 2
jae 0x140032d1b
xor eax, eax
add rsp, 0x40
pop rbx
ret
cmp byte [rbx + 0x5211], 0x18
jne 0x140032de6
mov ecx, 0xff
cmp word [rbx + 0x5214], cx
jne 0x140032de6
cmp word [rbx + 0x5216], cx
jne 0x140032de6
cmp word [rbx + 0x5218], cx
jne 0x140032de6
lea edx, [rax + rax*2]
mov rcx, rbx
call fcn.1400268d0
mov eax, dword [rbx + 0x1910]
mov rcx, rbx
mov rdx, qword [rbx + 0x1560]
lea r8d, [rax + rax*2]
call fcn.140025ac0
mov ecx, dword [rbx + 0x1910]
xor r10d, r10d
test ecx, ecx
jle 0x1400330b2
mov r8d, r10d
lea r9, [rbx + 0x1914]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x1560]
lea r9, [r9 + 4]
inc r10d
lea r8, [r8 + 3]
movzx edx, byte [rcx + r8 - 1]
movzx eax, byte [rcx + r8 - 2]
bts edx, 9
shl edx, 0x10
shl eax, 8
or edx, eax
movzx eax, byte [rcx + r8 - 3]
or edx, eax
mov dword [r9 - 4], edx
mov ecx, dword [rbx + 0x1910]
cmp r10d, ecx
jl 0x140032da0
jmp 0x1400330b2
movzx edx, byte [rbx + 0x5210]
mov rcx, rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x38], r12
shr edx, 3
mov qword [rsp + 0x30], r13
imul edx, eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1400268d0
movzx r8d, byte [rbx + 0x5210]
mov rcx, rbx
mov rdx, qword [rbx + 0x1560]
shr r8d, 3
imul r8d, dword [rbx + 0x1910]
call fcn.140025ac0
movzx r10d, byte [rbx + 0x5210]
movzx eax, byte [rbx + 0x521a]
movzx edx, word [rbx + 0x5214]
movzx r8d, byte [rbx + 0x521b]
movzx r9d, word [rbx + 0x5216]
movzx r11d, byte [rbx + 0x521c]
movzx edi, word [rbx + 0x5218]
mov ecx, dword [rbx + 0x1910]
cmp r10b, 8
je 0x140032fe4
cmp r10b, 0x10
je 0x140032f33
xor r10d, r10d
test ecx, ecx
jle 0x14003308f
mov r14d, r11d
mov r15d, r8d
mov r11d, r10d
mov r12d, eax
mov esi, r9d
mov ebp, edx
nop dword [rax]
mov rax, qword [rbx + 0x1560]
lea r11, [r11 + 4]
xor edx, edx
mov ecx, r14d
inc r10d
mov r9d, dword [r11 + rax - 4]
mov eax, r9d
shr eax, cl
mov ecx, r15d
and eax, edi
imul eax, eax, 0xff
div edi
xor edx, edx
movzx r8d, al
mov eax, r9d
shr eax, cl
bts r8d, 9
and eax, esi
shl r8d, 0x10
imul eax, eax, 0xff
div esi
xor edx, edx
movzx ecx, al
shl ecx, 8
or r8d, ecx
mov ecx, r12d
shr r9d, cl
and r9d, ebp
imul eax, r9d, 0xff
div ebp
movzx ecx, al
or r8d, ecx
mov dword [r11 + rbx + 0x1910], r8d
mov ecx, dword [rbx + 0x1910]
cmp r10d, ecx
jl 0x140032eb0
jmp 0x14003308f
xor r10d, r10d
test ecx, ecx
jle 0x14003308f
mov r15d, r11d
mov esi, edi
mov r11d, r10d
lea rdi, [rbx + 0x1914]
mov r12d, r8d
mov ebp, r9d
mov r13d, eax
mov r14d, edx
nop dword [rax]
mov rax, qword [rbx + 0x1560]
lea rdi, [rdi + 4]
xor edx, edx
lea r11, [r11 + 2]
mov ecx, r12d
inc r10d
movzx r9d, word [r11 + rax - 2]
mov eax, r9d
shr eax, cl
mov ecx, r15d
and eax, ebp
imul eax, eax, 0xff
div ebp
xor edx, edx
movzx r8d, al
mov eax, r9d
shr eax, cl
and eax, esi
shl r8d, 8
imul eax, eax, 0xff
div esi
xor edx, edx
movzx ecx, al
bts ecx, 9
shl ecx, 0x10
or r8d, ecx
mov ecx, r13d
shr r9d, cl
and r9d, r14d
imul eax, r9d, 0xff
div r14d
movzx ecx, al
or r8d, ecx
mov dword [rdi - 4], r8d
mov ecx, dword [rbx + 0x1910]
cmp r10d, ecx
jl 0x140032f60
jmp 0x14003308f
xor r10d, r10d
test ecx, ecx
jle 0x14003308f
mov r15d, r11d
mov esi, r10d
lea r11, [rbx + 0x1914]
mov r12d, r8d
mov ebp, r9d
mov r13d, eax
mov r14d, edx
nop dword [rax + rax]
mov rax, qword [rbx + 0x1560]
lea rsi, [rsi + 1]
xor edx, edx
lea r11, [r11 + 4]
mov ecx, r12d
inc r10d
movzx r9d, byte [rsi + rax - 1]
mov eax, r9d
shr eax, cl
mov ecx, r15d
and eax, ebp
imul eax, eax, 0xff
div ebp
xor edx, edx
movzx r8d, al
mov eax, r9d
shr eax, cl
and eax, edi
shl r8d, 8
imul eax, eax, 0xff
div edi
xor edx, edx
movzx ecx, al
bts ecx, 9
shl ecx, 0x10
or r8d, ecx
mov ecx, r13d
shr r9d, cl
and r9d, r14d
imul eax, r9d, 0xff
div r14d
movzx ecx, al
or r8d, ecx
mov dword [r11 - 4], r8d
mov ecx, dword [rbx + 0x1910]
cmp r10d, ecx
jl 0x140033010
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
cmp ecx, 2
mov eax, 8
mov ecx, 1
cmove eax, ecx
add rsp, 0x40
pop rbx
ret