Function at 0x18001a580
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rbx, rcx
mov qword [rax - 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], sil
mov dword [rsp + 0x20], 1
mov r14d, esi
lea r13d, [rsi - 6]
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x18001a5e2
mov rcx, qword [rdx]
mov r8, rcx
mov r15, rcx
jmp 0x18001a5e8
mov r15, rdx
mov r8, rdx
mov rax, qword [rdx + 0x10]
add rax, r8
mov qword [rsp + 0x80], rax
cmp rcx, rax
je 0x18001a7b7
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x18001a6f0
movsxd r12, r14d
movsxd rdi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
movdqa xmm0, xmmword [0x180139130]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180139690]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x180137fc0]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [str.__n__vVZ____UW__]
movdqa xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x70], 1
mov rax, rsi
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + 0x33]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp rax, 0x3f
jb 0x18001a680
mov byte [rsp + 0x70], 0
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rsp + rax + 0x30]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18001a6d3
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18001a6c8
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18001a6e2
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.18004db50
sub rdi, 6
sub rbp, 1
jne 0x18001a631
inc r15
cmp r15, qword [rsp + 0x80]
jne 0x18001a600
cmp r13d, 0xfffffffa
jle 0x18001a7b7
movdqa xmm0, xmmword [0x180139130]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180139690]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x180137fc0]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [str.__n__vVZ____UW__]
movdqa xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x70], 1
nop dword [rax + rax]
lea eax, [rsi + 0x33]
xor byte [rsp + rsi + 0x30], al
inc rsi
cmp rsi, 0x3f
jb 0x18001a750
mov byte [rsp + 0x70], 0
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rdx, r14d
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rsp + rdx + 0x30]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18001a7a8
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18001a79d
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18001a7b7
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.18004db50
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x18001a800
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18001a7e5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18001a7dd
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x18001a7f7
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.18004db50
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x18001a7c0
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret