Function at 0x140033200
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r13, rdx
mov r14, rcx
movzx ecx, word [rcx + 2]
movzx edx, word [rdx + 2]
cmp cx, dx
jle 0x1400332c2
movsx r9d, cx
movsx r8d, dx
mov esi, r9d
sub esi, r8d
movsx ebx, word [r14]
lea eax, [rsi + rbx]
cmp eax, 0x80
jg 0x140033565
movzx ecx, bx
not r8d
test cx, cx
jle 0x14003328a
cmp bx, 8
jae 0x140033405
add rcx, 1
add ebx, r9d
add ebx, r8d
nop word cs:[rax + rax]
mov eax, dword [r14 + rcx*4 - 4]
movsxd rbx, ebx
mov dword [r14 + rbx*4 + 4], eax
add rcx, 0xffffffffffffffff
add ebx, 0xffffffff
cmp rcx, 1
jg 0x140033270
test esi, esi
jle 0x1400332a4
lea rcx, [r14 + 4]
add r8d, r9d
lea r8, [r8*4 + 4]
xor edx, edx
call sub.ntdll.dll_memset
movzx eax, word [r14]
add ax, si
mov word [r14], ax
movzx ecx, word [r14 + 2]
sub ecx, esi
mov word [r14 + 2], cx
movzx edx, word [r13 + 2]
jmp 0x1400332c6
movzx eax, word [r14]
cwde
movsx r15d, cx
lea ebx, [r15 + rax]
movsx ecx, word [r13]
movsx r12d, dx
lea edx, [r12 + rcx]
cmp ebx, edx
cmovl ebx, edx
sub ebx, r15d
add ebx, 1
cmp ebx, 0x81
jge 0x140033565
mov ebx, r12d
sub ebx, r15d
cmp ebx, eax
jle 0x140033326
movsxd rcx, eax
lea rcx, [r14 + rcx*4]
add rcx, 4
mov edx, r15d
not edx
add edx, r12d
sub edx, eax
lea r8, [rdx*4 + 4]
xor edx, edx
call sub.ntdll.dll_memset
movzx ecx, word [r13]
test cx, cx
jle 0x1400333e7
movsxd rdi, ebx
movsxd rax, r12d
shl rax, 2
movsxd rcx, r15d
shl rcx, 2
sub rax, rcx
lea rbx, [rax + r14]
add rbx, 4
xor edx, edx
xor ecx, ecx
jmp 0x140033385
add eax, ecx
add eax, dword [r13 + rdx*4 + 4]
mov ecx, eax
and ecx, 0xfffffff
mov dword [rbx + rdx*4], ecx
mov ecx, eax
shr ecx, 0x1c
add rdx, 1
movsx rax, word [r13]
cmp rdx, rax
jge 0x14003339c
lea rsi, [rdi + rdx]
movsx rbp, word [r14]
mov eax, 0
cmp rsi, rbp
jge 0x140033360
mov eax, dword [rbx + rdx*4]
jmp 0x140033360
test ecx, ecx
je 0x1400333de
add rdi, rdx
movsxd rbx, edi
jmp 0x1400333cc
add eax, ecx
mov ecx, eax
and ecx, 0xfffffff
mov dword [r14 + rbx*4 + 4], ecx
shr eax, 0x1c
add rbx, 1
mov ecx, eax
test eax, eax
je 0x1400333e7
movsx rdx, word [r14]
xor eax, eax
cmp rbx, rdx
jge 0x1400333b0
mov eax, dword [r14 + rbx*4 + 4]
jmp 0x1400333b0
sub r12d, r15d
add r12, rdx
mov ebx, r12d
movsx eax, word [r14]
cmp ebx, eax
cmovl ebx, eax
mov word [r14], bx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r10, [rcx - 1]
lea r11d, [rbx + r9]
add r11d, r8d
mov edi, r11d
sub edi, r10d
mov edx, 4
mov rax, r10
mul rdx
seto dl
cmp edi, r11d
jg 0x14003325c
shr r10, 0x20
jne 0x14003325c
movsxd r10, r11d
lea rdi, [r14 + r10*4]
add rdi, 4
cmp rax, rdi
ja 0x14003325c
test dl, dl
jne 0x14003325c
lea rdi, [r14 + rcx*4]
cmp rax, rdi
ja 0x14003325c
test dl, dl
jne 0x14003325c
lea rdx, [r10*4 + 8]
lea rdi, [rcx*4]
sub rdx, rdi
add rdx, r14
lea rdi, [r14 + rcx*4]
add rdi, 4
cmp rdx, rdi
jae 0x1400334a0
lea rdx, [r14 + r10*4]
add rdx, 8
lea rdi, [r14 + 4]
cmp rdx, rdi
ja 0x14003325c
mov r10d, ecx
and r10d, 0xfffffff8
lea rdx, [r10 - 8]
mov r15, rdx
shr r15, 3
add r15, 1
test rdx, rdx
je 0x14003351b
lea rdx, [rax + r14]
add rdx, 0xfffffffffffffff8
mov rax, r15
and rax, 0xfffffffffffffffe
neg rax
xor r12d, r12d
movups xmm0, xmmword [rdx - 0x10]
movups xmm1, xmmword [rdx]
movsxd r11, r11d
movups xmmword [r14 + r11*4 - 8], xmm1
movups xmmword [r14 + r11*4 - 0x18], xmm0
mov edi, r12d
xor edi, 0xfffffff7
add edi, ebx
movups xmm0, xmmword [rdx - 0x30]
movups xmm1, xmmword [rdx - 0x20]
add edi, esi
movsxd rdi, edi
movups xmmword [r14 + rdi*4 - 8], xmm1
movups xmmword [r14 + rdi*4 - 0x18], xmm0
add r12, 0x10
add rdx, 0xffffffffffffffc0
add r11d, 0xfffffff0
add rax, 2
jne 0x1400334d0
jmp 0x14003351e
xor r12d, r12d
test r15b, 1
je 0x140033551
mov rax, r12
not rax
add rax, rcx
not r12d
add r12d, ebx
movups xmm0, xmmword [r14 + rax*4 - 0x18]
movups xmm1, xmmword [r14 + rax*4 - 8]
add r12d, esi
movsxd rax, r12d
movups xmmword [r14 + rax*4 - 8], xmm1
movups xmmword [r14 + rax*4 - 0x18], xmm0
cmp r10, rcx
je 0x14003328a
and ecx, 7
sub ebx, r10d
jmp 0x14003325c
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3