Function at 0x180058334
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18029aa40]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
mov rsi, qword [rdx + 0x10]
lea rcx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
and qword [rdi + 0x10], 0
and qword [rdi + 0x18], 0
mov r8, rdx
xor edx, edx
mov rcx, rdi
call fcn.18004d9e4
mov rdx, rdi
mov ebp, reloc.WS2_32.dll_ntohs
cmp qword [rdi + 0x18], rbp
jbe 0x1800583a9
mov rdx, qword [rdi]
xor r8d, r8d
lea r9, [rsi - 2]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_1.0
test r9, r9
je 0x180058471
mov rax, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x1800583cc
mov rax, qword [rbx]
movzx eax, byte [rax + r8]
shr rax, 2
mov al, byte [rax + r10]
mov byte [rdx], al
mov rcx, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x1800583e7
mov rcx, qword [rbx]
mov rax, rbx
jbe 0x1800583ef
mov rax, qword [rbx]
movsx rcx, byte [rcx + r8]
and ecx, 3
shl rcx, 4
movzx eax, byte [rax + r8 + 1]
shr rax, 4
or rcx, rax
mov al, byte [rcx + r10]
mov byte [rdx + 1], al
mov rcx, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x18005841b
mov rcx, qword [rbx]
mov rax, rbx
jbe 0x180058423
mov rax, qword [rbx]
movsx rcx, byte [rcx + r8 + 1]
and rcx, rbp
shl rcx, 2
movzx eax, byte [rax + r8 + 2]
shr rax, 6
or rcx, rax
mov al, byte [rcx + r10]
mov byte [rdx + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x180058450
mov rax, qword [rbx]
movsx rax, byte [rax + r8 + 2]
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [rdx + 3], al
add rdx, 4
add r8, 3
cmp r8, r9
jb 0x1800583c0
cmp r8, rsi
jae 0x18005851b
mov rax, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x180058486
mov rax, qword [rbx]
movzx eax, byte [rax + r8]
shr rax, 2
mov al, byte [rax + r10]
mov byte [rdx], al
lea rax, [rsi - 1]
cmp r8, rax
jne 0x1800584c4
mov rax, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x1800584aa
mov rax, qword [rbx]
movsx rax, byte [rax + r8]
and eax, 3
add rax, rax
mov al, byte [r10 + rax*8]
mov byte [rdx + 1], al
mov al, 0x3d
add rdx, 2
jmp 0x180058515
mov rcx, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x1800584d0
mov rcx, qword [rbx]
mov rax, rbx
jbe 0x1800584d8
mov rax, qword [rbx]
movsx rcx, byte [rcx + r8]
and ecx, 3
shl rcx, 4
movzx eax, byte [rax + r8 + 1]
shr rax, 4
or rcx, rax
mov al, byte [rcx + r10]
mov byte [rdx + 1], al
add rdx, 2
mov rax, rbx
cmp qword [rbx + 0x18], rbp
jbe 0x180058508
mov rax, qword [rbx]
movsx rax, byte [rax + r8 + 1]
and rax, rbp
mov al, byte [r10 + rax*4]
mov byte [rdx], al
mov byte [rdx + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, rbp
jbe 0x180058550
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18005854b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180058579
mov rcx, r8
call fcn.1800b3a88
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], rbp
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800b3aa0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3