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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rdi, r9
mov r13, r8
mov r14, rdx
mov r12, rcx
mov qword [rbp + 0xf8], rdx
mov rsi, rdx
lea rbx, [r8 - 1]
mov r15, rbx
sar r15, 1
cmp rdx, r15
jge 0x1800a30b3
nop dword [rax]
add rsi, rsi
lea rax, [rsp + 0x30]
mov qword [rbp + 0x100], rax
lea rax, [rsi + 2]
imul rdi, rax, 0xb8
add rdi, r12
lea rbx, [rdi - 0xb8]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1800597b0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800597b0
nop
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1800597b0
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rbx + 0x70]
movups xmmword [rbp - 0x60], xmm0
movss xmm0, dword [rbx + 0x80]
movss dword [rbp - 0x50], xmm0
mov eax, dword [rbx + 0x84]
mov dword [rbp - 0x4c], eax
mov eax, dword [rbx + 0x88]
mov dword [rbp - 0x48], eax
mov eax, dword [rbx + 0x8c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbx + 0x90]
mov dword [rbp - 0x40], eax
mov eax, dword [rbx + 0x94]
mov dword [rbp - 0x3c], eax
mov eax, dword [rbx + 0x98]
mov dword [rbp - 0x38], eax
mov eax, dword [rbx + 0x9c]
mov dword [rbp - 0x34], eax
mov eax, dword [rbx + 0xa0]
mov dword [rbp - 0x30], eax
mov eax, dword [rbx + 0xa4]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbx + 0xa8]
mov dword [rbp - 0x28], eax
movzx eax, byte [rbx + 0xac]
mov byte [rbp - 0x24], al
movzx eax, byte [rbx + 0xad]
mov byte [rbp - 0x23], al
mov eax, dword [rbx + 0xb0]
mov dword [rbp - 0x20], eax
mov eax, dword [rbx + 0xb4]
mov dword [rbp - 0x1c], eax
lea rax, [rbp - 0x18]
mov qword [rbp + 0xa0], rax
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.1800597b0
nop
lea rdx, [rdi + 0x20]
lea rcx, [rbp + 8]
call fcn.1800597b0
nop
lea rdx, [rdi + 0x40]
lea rcx, [rbp + 0x28]
call fcn.1800597b0
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rbp + 0x48], xmm0
movups xmm0, xmmword [rdi + 0x70]
movups xmmword [rbp + 0x58], xmm0
movss xmm0, dword [rdi + 0x80]
movss dword [rbp + 0x68], xmm0
mov eax, dword [rdi + 0x84]
mov dword [rbp + 0x6c], eax
mov eax, dword [rdi + 0x88]
mov dword [rbp + 0x70], eax
mov eax, dword [rdi + 0x8c]
mov dword [rbp + 0x74], eax
mov eax, dword [rdi + 0x90]
mov dword [rbp + 0x78], eax
mov eax, dword [rdi + 0x94]
mov dword [rbp + 0x7c], eax
mov eax, dword [rdi + 0x98]
mov dword [rbp + 0x80], eax
mov eax, dword [rdi + 0x9c]
mov dword [rbp + 0x84], eax
mov eax, dword [rdi + 0xa0]
mov dword [rbp + 0x88], eax
mov eax, dword [rdi + 0xa4]
mov dword [rbp + 0x8c], eax
mov ecx, dword [rdi + 0xa8]
mov dword [rbp + 0x90], ecx
movzx eax, byte [rdi + 0xac]
mov byte [rbp + 0x94], al
movzx eax, byte [rdi + 0xad]
mov byte [rbp + 0x95], al
mov eax, dword [rdi + 0xb0]
mov dword [rbp + 0x98], eax
mov eax, dword [rdi + 0xb4]
mov dword [rbp + 0x9c], eax
cmp ecx, dword [rbp - 0x28]
setl bl
lea rcx, [rbp - 0x18]
call fcn.1800a94b0
lea rcx, [rsp + 0x30]
call fcn.1800a94b0
movzx eax, bl
xor rax, 1
inc rax
add rsi, rax
imul rdi, rsi, 0xb8
add rdi, r12
imul rbx, r14, 0xb8
add rbx, r12
mov rdx, rdi
mov rcx, rbx
call fcn.180047800
lea rdx, [rdi + 0x20]
lea rcx, [rbx + 0x20]
call fcn.180047800
lea rdx, [rdi + 0x40]
lea rcx, [rbx + 0x40]
call fcn.180047800
mov eax, dword [rdi + 0x60]
mov dword [rbx + 0x60], eax
mov eax, dword [rdi + 0x64]
mov dword [rbx + 0x64], eax
mov eax, dword [rdi + 0x68]
mov dword [rbx + 0x68], eax
mov eax, dword [rdi + 0x6c]
mov dword [rbx + 0x6c], eax
mov eax, dword [rdi + 0x70]
mov dword [rbx + 0x70], eax
mov eax, dword [rdi + 0x74]
mov dword [rbx + 0x74], eax
mov eax, dword [rdi + 0x78]
mov dword [rbx + 0x78], eax
mov eax, dword [rdi + 0x7c]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x80]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x84]
mov dword [rbx + 0x84], eax
mov eax, dword [rdi + 0x88]
mov dword [rbx + 0x88], eax
mov eax, dword [rdi + 0x8c]
mov dword [rbx + 0x8c], eax
mov eax, dword [rdi + 0x90]
mov dword [rbx + 0x90], eax
mov eax, dword [rdi + 0x94]
mov dword [rbx + 0x94], eax
mov eax, dword [rdi + 0x98]
mov dword [rbx + 0x98], eax
mov eax, dword [rdi + 0x9c]
mov dword [rbx + 0x9c], eax
mov eax, dword [rdi + 0xa0]
mov dword [rbx + 0xa0], eax
mov eax, dword [rdi + 0xa4]
mov dword [rbx + 0xa4], eax
mov eax, dword [rdi + 0xa8]
mov dword [rbx + 0xa8], eax
movzx eax, byte [rdi + 0xac]
mov byte [rbx + 0xac], al
movzx eax, byte [rdi + 0xad]
mov byte [rbx + 0xad], al
mov eax, dword [rdi + 0xb0]
mov dword [rbx + 0xb0], eax
mov eax, dword [rdi + 0xb4]
mov dword [rbx + 0xb4], eax
mov r14, rsi
cmp rsi, r15
jl 0x1800a2d80
lea rbx, [r13 - 1]
mov rdi, qword [rbp + 0x108]
cmp rsi, r15
jne 0x1800a30e1
test r13b, 1
jne 0x1800a30e1
imul rdx, r13, 0xb8
add rdx, 0xffffffffffffff48
add rdx, r12
imul rcx, r14, 0xb8
add rcx, r12
call fcn.1800a9910
mov r14, rbx
movzx eax, byte [rbp + 0x110]
mov byte [rbp + 0x110], al
mov r9, rdi
mov r8, qword [rbp + 0xf8]
mov rdx, r14
mov rcx, r12
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp 0x1800a3120
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov r15, r9
mov r13, r8
mov r14, rdx
mov r12, rcx
lea rsi, [rdx - 1]
sar rsi, 1
cmp r8, rdx
jge 0x1800a348c
lea rbx, [r9 + 0x20]
lea rdi, [r9 + 0x40]
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x20]
mov qword [rbp + 0xd0], rax
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1800597b0
nop
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1800597b0
nop
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1800597b0
movups xmm0, xmmword [r15 + 0x60]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [r15 + 0x70]
movups xmmword [rbp - 0x70], xmm0
movss xmm0, dword [r15 + 0x80]
movss dword [rbp - 0x60], xmm0
mov eax, dword [r15 + 0x84]
mov dword [rbp - 0x5c], eax
mov eax, dword [r15 + 0x88]
mov dword [rbp - 0x58], eax
mov eax, dword [r15 + 0x8c]
mov dword [rbp - 0x54], eax
mov eax, dword [r15 + 0x90]
mov dword [rbp - 0x50], eax
mov eax, dword [r15 + 0x94]
mov dword [rbp - 0x4c], eax
mov eax, dword [r15 + 0x98]
mov dword [rbp - 0x48], eax
mov eax, dword [r15 + 0x9c]
mov dword [rbp - 0x44], eax
mov eax, dword [r15 + 0xa0]
mov dword [rbp - 0x40], eax
mov eax, dword [r15 + 0xa4]
mov dword [rbp - 0x3c], eax
mov eax, dword [r15 + 0xa8]
mov dword [rbp - 0x38], eax
movzx eax, byte [r15 + 0xac]
mov byte [rbp - 0x34], al
movzx eax, byte [r15 + 0xad]
mov byte [rbp - 0x33], al
mov eax, dword [r15 + 0xb0]
mov dword [rbp - 0x30], eax
mov eax, dword [r15 + 0xb4]
mov dword [rbp - 0x2c], eax
lea rax, [rbp - 0x28]
mov qword [rbp + 0xd8], rax
imul rdi, rsi, 0xb8
add rdi, r12
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.1800597b0
nop
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 8]
call fcn.1800597b0
nop
lea rdx, [rdi + 0x40]
lea rcx, [rbp + 0x18]
call fcn.1800597b0
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rbp + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x70]
movups xmmword [rbp + 0x48], xmm0
movss xmm0, dword [rdi + 0x80]
movss dword [rbp + 0x58], xmm0
mov eax, dword [rdi + 0x84]
mov dword [rbp + 0x5c], eax
mov eax, dword [rdi + 0x88]
mov dword [rbp + 0x60], eax
mov eax, dword [rdi + 0x8c]
mov dword [rbp + 0x64], eax
mov eax, dword [rdi + 0x90]
mov dword [rbp + 0x68], eax
mov eax, dword [rdi + 0x94]
mov dword [rbp + 0x6c], eax
mov eax, dword [rdi + 0x98]
mov dword [rbp + 0x70], eax
mov eax, dword [rdi + 0x9c]
mov dword [rbp + 0x74], eax
mov eax, dword [rdi + 0xa0]
mov dword [rbp + 0x78], eax
mov eax, dword [rdi + 0xa4]
mov dword [rbp + 0x7c], eax
mov ecx, dword [rdi + 0xa8]
mov dword [rbp + 0x80], ecx
movzx eax, byte [rdi + 0xac]
mov byte [rbp + 0x84], al
movzx eax, byte [rdi + 0xad]
mov byte [rbp + 0x85], al
mov eax, dword [rdi + 0xb0]
mov dword [rbp + 0x88], eax
mov eax, dword [rdi + 0xb4]
mov dword [rbp + 0x8c], eax
cmp ecx, dword [rbp - 0x38]
setl bl
lea rcx, [rbp - 0x28]
call fcn.1800a94b0
lea rcx, [rsp + 0x20]
call fcn.1800a94b0
test bl, bl
je 0x1800a348c
imul rbx, r14, 0xb8
add rbx, r12
mov rdx, rdi
mov rcx, rbx
call fcn.180047800
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.180047800
lea rcx, [rbx + 0x40]
lea rdx, [rdi + 0x40]
call fcn.180047800
mov eax, dword [rdi + 0x60]
mov dword [rbx + 0x60], eax
mov eax, dword [rdi + 0x64]
mov dword [rbx + 0x64], eax
mov eax, dword [rdi + 0x68]
mov dword [rbx + 0x68], eax
mov eax, dword [rdi + 0x6c]
mov dword [rbx + 0x6c], eax
mov eax, dword [rdi + 0x70]
mov dword [rbx + 0x70], eax
mov eax, dword [rdi + 0x74]
mov dword [rbx + 0x74], eax
mov eax, dword [rdi + 0x78]
mov dword [rbx + 0x78], eax
mov eax, dword [rdi + 0x7c]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x80]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x84]
mov dword [rbx + 0x84], eax
mov eax, dword [rdi + 0x88]
mov dword [rbx + 0x88], eax
mov eax, dword [rdi + 0x8c]
mov dword [rbx + 0x8c], eax
mov eax, dword [rdi + 0x90]
mov dword [rbx + 0x90], eax
mov eax, dword [rdi + 0x94]
mov dword [rbx + 0x94], eax
mov eax, dword [rdi + 0x98]
mov dword [rbx + 0x98], eax
mov eax, dword [rdi + 0x9c]
mov dword [rbx + 0x9c], eax
mov eax, dword [rdi + 0xa0]
mov dword [rbx + 0xa0], eax
mov eax, dword [rdi + 0xa4]
mov dword [rbx + 0xa4], eax
mov eax, dword [rdi + 0xa8]
mov dword [rbx + 0xa8], eax
movzx eax, byte [rdi + 0xac]
mov byte [rbx + 0xac], al
movzx eax, byte [rdi + 0xad]
mov byte [rbx + 0xad], al
mov eax, dword [rdi + 0xb0]
mov dword [rbx + 0xb0], eax
mov eax, dword [rdi + 0xb4]
mov dword [rbx + 0xb4], eax
mov r14, rsi
dec rsi
sar rsi, 1
cmp r13, r14
lea rbx, [r15 + 0x20]
lea rdi, [r15 + 0x40]
jl 0x1800a3170
imul rcx, r14, 0xb8
add rcx, r12
mov rdx, r15
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1800a9910