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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
xor edi, edi
mov qword [rbp - 0x20], rdi
mov r14, qword [rdx + 0x10]
test r14, r14
jne 0x14003b75c
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
jmp 0x14003b910
mov r8, rdi
mov rdx, r14
test r14b, 3
jne 0x14003b9a0
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x14003b779
mov rax, qword [rsi]
mov r9d, 0x80
lea r15, [0x14004bae0]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14003b793
mov rcx, qword [rsi]
lea rcx, [rcx + r14*2]
cmp rax, rcx
je 0x14003b7ea
movzx ecx, word [rax]
cmp rcx, r9
jae 0x14003b93d
cmp byte [rcx + r15], 0xff
je 0x14003b93d
cmp byte [rcx + r15], 0xfe
jne 0x14003b7e1
inc r8
cmp rdx, 2
ja 0x14003b9e2
jne 0x14003b7e1
movzx ecx, word [rax + 2]
cmp rcx, r9
jae 0x14003b9c1
cmp byte [rcx + r15], 0xfe
jne 0x14003b9c1
add rax, 2
dec rdx
jmp 0x14003b786
cmp qword [rsi + 0x18], 8
jb 0x14003b7f4
mov rsi, qword [rsi]
mov rax, r14
shr rax, 2
lea rdx, [rax + rax*2]
sub rdx, r8
lea rcx, [rbp - 0x30]
call fcn.14001c6ec
mov r11b, 0xf
cmp r14, 4
jbe 0x14003b88d
add r14, 0xfffffffffffffffb
shr r14, 2
inc r14
movzx eax, word [rsi]
mov dl, byte [rax + r15]
movzx eax, word [rsi + 2]
mov r8b, byte [rax + r15]
movzx eax, word [rsi + 4]
mov r9b, byte [rax + r15]
movzx eax, word [rsi + 6]
mov r10b, byte [rax + r15]
mov cl, r8b
shr cl, 4
and cl, 3
shl dl, 2
or cl, dl
mov rax, qword [rbp - 0x30]
mov byte [rax + rdi], cl
mov cl, r9b
shr cl, 2
and cl, r11b
shl r8b, 4
or cl, r8b
mov rax, qword [rbp - 0x30]
mov byte [rax + rdi + 1], cl
and r10b, 0x3f
shl r9b, 6
xor r10b, r9b
mov rax, qword [rbp - 0x30]
mov byte [rax + rdi + 2], r10b
add rsi, 8
add rdi, 3
sub r14, 1
jne 0x14003b81f
movzx eax, word [rsi]
mov dl, byte [rax + r15]
movzx eax, word [rsi + 2]
mov r10b, byte [rax + r15]
movzx eax, word [rsi + 4]
mov r9b, byte [rax + r15]
movzx eax, word [rsi + 6]
mov r8b, byte [rax + r15]
mov rcx, qword [rbp - 0x30]
mov al, r10b
shr al, 4
and al, 3
shl dl, 2
or al, dl
mov byte [rcx + rdi], al
mov dl, r10b
shl dl, 4
cmp r9b, 0xfe
je 0x14003b936
mov rcx, qword [rbp - 0x30]
mov al, r9b
shr al, 2
and al, r11b
or al, dl
mov byte [rcx + rdi + 1], al
shl r9b, 6
cmp r8b, 0xfe
je 0x14003b92e
mov rax, qword [rbp - 0x30]
and r8b, 0x3f
or r8b, r9b
mov byte [rax + rdi + 2], r8b
mov rax, qword [rbp - 0x30]
mov qword [rbx], rax
mov rax, qword [rbp - 0x28]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x20]
mov qword [rbx + 0x10], rax
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp r9b, 0x40
jae 0x14003b95e
jmp 0x14003b8f9
test r11b, r10b
jne 0x14003b97f
jmp 0x14003b8f9
lea rdx, str.invalid_character_found_in_base64_string
lea rcx, [rbp - 0x18]
call fcn.140022940
lea rdx, [0x1400548e0]
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rdx, str.Invalid_end_of_base64_string
lea rcx, [rbp - 0x18]
call fcn.140022940
lea rdx, [0x1400548e0]
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rdx, str.Invalid_end_of_base64_string
lea rcx, [rbp - 0x18]
call fcn.140022940
lea rdx, [0x1400548e0]
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rdx, str.length_of_base64_string_is_not_an_even_multiple_of_4
lea rcx, [rbp - 0x18]
call fcn.140022940
lea rdx, [0x1400548e0]
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rdx, str.invalid_padding_character_found_in_base64_string
lea rcx, [rbp - 0x18]
call fcn.140022940
lea rdx, [0x1400548e0]
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rdx, str.invalid_padding_character_found_in_base64_string
lea rcx, [rbp - 0x18]
call fcn.140022940
lea rdx, [0x1400548e0]
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3