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

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r14
lea rbp, [r11 - 0xa8]
sub rsp, 0x188
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov qword [r11 + 0x20], rbx
mov rbx, rcx
mov qword [r11 - 0x30], r13
mov r13, rdx
movsxd rdi, r8d
call fcn.18000b898
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
test rbx, rbx
je 0x180001d0f
lea rax, [rbp + 0x20]
cmp rax, rbx
jbe 0x180001c30
lea rax, [rbx + 0x20]
lea rcx, [rbp + 0x20]
cmp rax, rcx
ja 0x180001d08
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rbp + 0x20], al
movzx eax, byte [rbx + 1]
mov byte [rbp + 0x21], al
movzx eax, byte [rbx + 2]
mov byte [rbp + 0x22], al
movzx eax, byte [rbx + 3]
mov byte [rbp + 0x23], al
movzx eax, byte [rbx + 4]
mov byte [rbp + 0x24], al
movzx eax, byte [rbx + 5]
mov byte [rbp + 0x25], al
movzx eax, byte [rbx + 6]
mov byte [rbp + 0x26], al
movzx eax, byte [rbx + 7]
mov byte [rbp + 0x27], al
movzx eax, byte [rbx + 8]
mov byte [rbp + 0x28], al
movzx eax, byte [rbx + 9]
mov byte [rbp + 0x29], al
movzx eax, byte [rbx + 0xa]
mov byte [rbp + 0x2a], al
movzx eax, byte [rbx + 0xb]
mov byte [rbp + 0x2b], al
movzx eax, byte [rbx + 0xc]
mov byte [rbp + 0x2c], al
movzx eax, byte [rbx + 0xd]
mov byte [rbp + 0x2d], al
movzx eax, byte [rbx + 0xe]
mov byte [rbp + 0x2e], al
movzx eax, byte [rbx + 0xf]
mov byte [rbp + 0x2f], al
movzx eax, byte [rbx + 0x10]
mov byte [rbp + 0x30], al
movzx eax, byte [rbx + 0x11]
mov byte [rbp + 0x31], al
movzx eax, byte [rbx + 0x12]
mov byte [rbp + 0x32], al
movzx eax, byte [rbx + 0x13]
mov byte [rbp + 0x33], al
movzx eax, byte [rbx + 0x14]
mov byte [rbp + 0x34], al
movzx eax, byte [rbx + 0x15]
mov byte [rbp + 0x35], al
movzx eax, byte [rbx + 0x16]
mov byte [rbp + 0x36], al
movzx eax, byte [rbx + 0x17]
mov byte [rbp + 0x37], al
movzx eax, byte [rbx + 0x18]
mov byte [rbp + 0x38], al
movzx eax, byte [rbx + 0x19]
mov byte [rbp + 0x39], al
movzx eax, byte [rbx + 0x1a]
mov byte [rbp + 0x3a], al
movzx eax, byte [rbx + 0x1b]
mov byte [rbp + 0x3b], al
movzx eax, byte [rbx + 0x1c]
mov byte [rbp + 0x3c], al
movzx eax, byte [rbx + 0x1d]
mov byte [rbp + 0x3d], al
movzx eax, byte [rbx + 0x1e]
mov byte [rbp + 0x3e], al
movzx eax, byte [rbx + 0x1f]
mov byte [rbp + 0x3f], al
lea rcx, [rbx + 0x20]
movups xmmword [rbp + 0x48], xmm0
test rcx, rcx
je 0x180001daf
lea rax, [rbp + 0x48]
cmp rax, rcx
jbe 0x180001d40
lea rax, [rcx + 0x10]
lea rdx, [rbp + 0x48]
cmp rax, rdx
ja 0x180001da8
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + 0x48], al
movzx eax, byte [rcx + 1]
mov byte [rbp + 0x49], al
movzx eax, byte [rcx + 2]
mov byte [rbp + 0x4a], al
movzx eax, byte [rcx + 3]
mov byte [rbp + 0x4b], al
movzx eax, byte [rcx + 4]
mov byte [rbp + 0x4c], al
movzx eax, byte [rcx + 5]
mov byte [rbp + 0x4d], al
movzx eax, byte [rcx + 6]
mov byte [rbp + 0x4e], al
movzx eax, byte [rcx + 7]
mov byte [rbp + 0x4f], al
movzx eax, byte [rcx + 8]
mov byte [rbp + 0x50], al
movzx eax, byte [rcx + 9]
mov byte [rbp + 0x51], al
movzx eax, byte [rcx + 0xa]
mov byte [rbp + 0x52], al
movzx eax, byte [rcx + 0xb]
mov byte [rbp + 0x53], al
movzx eax, byte [rcx + 0xc]
mov byte [rbp + 0x54], al
movzx eax, byte [rcx + 0xd]
mov byte [rbp + 0x55], al
movzx eax, byte [rcx + 0xe]
mov byte [rbp + 0x56], al
movzx eax, byte [rcx + 0xf]
mov byte [rbp + 0x57], al
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x20]
call section..text
lea r14, [rbx + 0x30]
mov r12, rdi
mov rbx, r14
movups xmm0, xmmword [rbp + 0x48]
movaps xmmword [rbp + 0x10], xmm0
test edi, edi
je 0x180001e4d
mov qword [rsp + 0x180], rsi
lea rsi, [rbp + 0x10]
mov qword [rsp + 0x170], r15
sub rsi, rbx
lea r15, [rdi - 1]
shr r15, 4
inc r15
nop word [rax + rax]
movups xmm0, xmmword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180001710
mov ecx, 0x10
nop word [rax + rax]
movzx eax, byte [rsi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x180001e20
sub rsi, 0x10
movaps xmmword [rbp + 0x10], xmm0
sub r15, 1
jne 0x180001e00
mov r15, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x180]
mov rcx, qword [r13]
mov r13, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x1c8]
test rcx, rcx
je 0x180001ec0
test r14, r14
je 0x180001ec0
test edi, edi
jle 0x180001ec0
cmp rcx, r14
jbe 0x180001ea2
lea rax, [rdi + r14]
cmp rax, rcx
jbe 0x180001ea2
lea rdx, [rcx - 1]
add rdx, r12
sub r12, rdx
lea rcx, [r12 + r14]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx - 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub edi, 1
jne 0x180001e90
jmp 0x180001ec0
sub r14, rcx
nop word [rax + rax]
movzx eax, byte [r14 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub edi, 1
jne 0x180001eb0
mov eax, 1
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.180006c10
add rsp, 0x188
pop r14
pop r12
pop rdi
pop rbp
ret