Function at 0x14005c27c
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r13, r8
mov r12, rdx
mov rsi, rcx
mov ecx, 3
mov rax, r8
xor edx, edx
div rcx
mov rbx, rdx
mov rdi, rax
shl rdi, 2
test rdx, rdx
je 0x14005c2d1
mov rcx, r13
shr rcx, 0x3e
add rdi, 4
setb al
cmp ecx, 2
ja 0x14005c7b6
test al, al
je 0x14005c2e1
jmp 0x14005c7b6
mov rax, r13
shr rax, 0x3e
cmp eax, 3
jae 0x14005c7b6
mov rcx, rdi
mov dl, 1
call fcn.140003e88
mov r15, rax
mov r14, rdx
xor eax, eax
mov rdx, r13
mov ecx, 0
sub rdx, 0x1a
cmovb rdx, rax
jbe 0x14005c5ce
mov eax, 0x20
xor ecx, ecx
lea r8, [0x140084723]
lea r9, [rcx + 0x1a]
cmp r9, r13
ja 0x14005c7b6
test rax, rax
je 0x14005c7b6
cmp rax, rdi
ja 0x14005c7b6
mov r9, qword [r12 + rcx]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x20], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x1f], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x1e], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x1d], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x1c], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x1b], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x1a], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8]
mov byte [r15 + rax - 0x19], r9b
mov r9, qword [r12 + rcx + 6]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x18], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x17], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x16], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x15], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x14], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x13], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x12], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8]
mov byte [r15 + rax - 0x11], r9b
mov r9, qword [r12 + rcx + 0xc]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0x10], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0xf], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0xe], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0xd], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0xc], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0xb], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 0xa], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8]
mov byte [r15 + rax - 9], r9b
mov r9, qword [r12 + rcx + 0x12]
bswap r9
mov r10, r9
shr r10, 0x3a
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 8], r10b
mov r10, r9
shr r10, 0x34
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 7], r10b
mov r10, r9
shr r10, 0x2e
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 6], r10b
mov r10, r9
shr r10, 0x28
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 5], r10b
mov r10, r9
shr r10, 0x22
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 4], r10b
mov r10, r9
shr r10, 0x1c
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 3], r10b
mov r10d, r9d
shr r10d, 0x16
and r10d, 0x3f
mov r10b, byte [r10 + r8]
mov byte [r15 + rax - 2], r10b
shr r9d, 0x10
and r9d, 0x3f
mov r9b, byte [r9 + r8]
mov byte [r15 + rax - 1], r9b
add rcx, 0x18
add rax, 0x20
cmp rcx, rdx
jbe 0x14005c317
add rax, 0xffffffffffffffe0
mov r9, r13
sub r9, rbx
add rax, 4
lea rdx, [0x140084723]
lea r8, [rax - 4]
cmp rcx, r9
jae 0x14005c68b
cmp rcx, 0xfffffffffffffffc
ja 0x14005c7b6
lea r10, [rcx + 3]
cmp r10, r13
ja 0x14005c7b6
cmp r8, 0xfffffffffffffffb
ja 0x14005c7b6
cmp rax, rdi
ja 0x14005c7b6
movzx r8d, byte [r12 + rcx]
mov r11d, r8d
shr r11d, 2
mov r11b, byte [r11 + rdx]
mov byte [r15 + rax - 4], r11b
mov r11b, byte [r12 + rcx + 1]
shl r8b, 4
mov ebp, r11d
shr bpl, 4
or bpl, r8b
movzx r8d, bpl
and r8d, 0x3f
mov r8b, byte [r8 + rdx]
mov byte [r15 + rax - 3], r8b
movzx ecx, byte [r12 + rcx + 2]
shl r11b, 2
mov r8d, ecx
shr r8b, 6
or r8b, r11b
movzx r8d, r8b
and r8d, 0x3f
mov r8b, byte [r8 + rdx]
mov byte [r15 + rax - 2], r8b
and ecx, 0x3f
mov cl, byte [rcx + rdx]
mov byte [r15 + rax - 1], cl
add rax, 4
mov rcx, r10
jmp 0x14005c5df
cmp rbx, 1
je 0x14005c707
cmp rbx, 2
jne 0x14005c746
cmp r8, rdi
jae 0x14005c7b6
movzx ecx, byte [r12 + r9]
mov eax, ecx
shr eax, 2
mov al, byte [rax + rdx]
mov byte [r15 + r8], al
inc r9
cmp r9, r13
jae 0x14005c7b6
lea rax, [r8 + 1]
cmp rax, rdi
jae 0x14005c7b6
mov al, byte [r12 + r9]
mov r9d, eax
shr r9b, 4
shl cl, 4
or cl, r9b
movzx ecx, cl
and ecx, 0x3f
mov cl, byte [rcx + rdx]
mov byte [r15 + r8 + 1], cl
lea rcx, [r8 + 2]
cmp rcx, rdi
jae 0x14005c7b6
shl al, 2
and al, 0x3c
mov r9d, 3
jmp 0x14005c739
cmp r8, rdi
jae 0x14005c7b6
movzx eax, byte [r12 + r9]
mov ecx, eax
shr ecx, 2
mov cl, byte [rcx + rdx]
mov byte [r15 + r8], cl
lea rcx, [r8 + 1]
cmp rcx, rdi
jae 0x14005c7b6
shl al, 4
and al, 0x30
mov r9d, 2
movzx eax, al
mov al, byte [rax + rdx]
mov byte [r15 + rcx], al
add r8, r9
mov rax, rdi
sub rax, r8
jb 0x14005c7b6
mov rcx, r15
add rcx, r8
mov r9, rbx
xor r9, 3
xor edx, edx
test rbx, rbx
je 0x14005c775
cmp r9, rdx
jbe 0x14005c775
cmp rax, rdx
je 0x14005c7b6
mov byte [rcx + rdx], 0x3d
inc rdx
jmp 0x14005c75d
add r8, rdx
jb 0x14005c7b6
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, r15
mov r8, rdi
call fcn.1400066b9
cmp qword [rbx], 0
je 0x14005c79a
cmp byte [rsp + 0x30], 2
jne 0x14005c7b6
mov qword [rsi], r15
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2