Function at 0x1400498c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x24], esi
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov r8, qword [rax]
mov eax, dword [rcx + r8]
cmp dword [0x1401b5ecc], eax
jle 0x1400499a6
lea rcx, [0x1401b5ecc]
call fcn.1400e7fc4
cmp dword [0x1401b5ecc], 0xffffffff
jne 0x1400499a6
xorps xmm0, xmm0
movups xmmword [0x1401b5ea8], xmm0
mov qword [0x1401b5eb8], rsi
mov qword [0x1401b5ec0], rsi
mov ecx, 0x50
call fcn.1400e803c
mov qword [0x1401b5ea8], rax
mov qword [0x1401b5eb8], 0x40
mov qword [0x1401b5ec0], 0x4f
movaps xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14010ec60]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14010ec70]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14010ec80]
movups xmmword [rax + 0x30], xmm1
mov byte [rax + 0x40], sil
lea rcx, [0x1400efc20]
call fcn.1400e8370
nop
lea rcx, [0x1401b5ecc]
call fcn.1400e7f58
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x24], 1
mov ebp, esi
mov r15, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400499d2
mov r15, qword [r14]
mov r14, qword [r14 + 0x10]
test r14, r14
je 0x140049d53
mov rcx, rsi
movzx ebx, byte [rsp + 0x80]
nop word [rax + rax]
dec r14
movzx eax, byte [r15]
lea r15, [r15 + 1]
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx r8d, byte [rsp + 0x22]
movzx r12d, byte [rsp + 0x21]
movzx r13d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x140049be9
movzx eax, r13b
shr al, 2
movzx ecx, al
movzx ebp, r13b
and bpl, 3
shl bpl, 4
movzx eax, r12b
shr al, 4
add bpl, al
movzx edx, r12b
and dl, 0xf
shl dl, 2
movzx eax, r8b
shr al, 6
add dl, al
mov byte [rsp + 0x80], dl
movzx eax, r8b
and al, 0x3f
mov byte [rsp + 0x88], al
lea rax, [0x1401b5ea8]
cmp qword [0x1401b5ec0], 0xf
cmova rax, qword [0x1401b5ea8]
movzx r9d, byte [rcx + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140049aaf
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140049aa4
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140049ac0
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140076670
lea rcx, [0x1401b5ea8]
cmp qword [0x1401b5ec0], 0xf
cmova rcx, qword [0x1401b5ea8]
movzx eax, bpl
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140049b0c
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140049b01
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140049b1d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140076670
lea rbp, [0x1401b5ea8]
mov rcx, rbp
cmp qword [0x1401b5ec0], 0xf
cmova rcx, qword [0x1401b5ea8]
movzx eax, byte [rsp + 0x80]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140049b70
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140049b65
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140049b81
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140076670
mov rcx, rbp
cmp qword [0x1401b5ec0], 0xf
cmova rcx, qword [0x1401b5ea8]
movzx eax, byte [rsp + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140049bcd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140049bc2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140049bde
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140076670
mov ebp, esi
mov rcx, rsi
movzx r8d, byte [rsp + 0x22]
test r14, r14
jne 0x1400499f0
test ebp, ebp
je 0x140049d53
mov r15d, 3
cmp ebp, r15d
jge 0x140049c31
mov eax, r15d
sub eax, ebp
movsxd r8, eax
movsxd rax, ebp
lea rcx, [rsp + 0x20]
add rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movzx r8d, byte [rsp + 0x22]
movzx r12d, byte [rsp + 0x21]
movzx r13d, byte [rsp + 0x20]
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x80], al
and r13b, r15b
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x81], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, r8b
shr al, 6
add r12b, al
mov byte [rsp + 0x82], r12b
and r8b, 0x3f
mov byte [rsp + 0x83], r8b
lea eax, [rbp + 1]
movsxd r14, eax
test eax, eax
jle 0x140049cf9
movzx ebx, byte [rsp + 0x80]
lea rcx, [0x1401b5ea8]
cmp qword [0x1401b5ec0], 0xf
cmova rcx, qword [0x1401b5ea8]
movzx eax, byte [rsp + rsi + 0x80]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140049ce0
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140049cd5
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140049cf1
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140076670
inc rsi
cmp rsi, r14
jl 0x140049c90
cmp ebp, r15d
jge 0x140049d53
sub r15d, ebp
movsxd rsi, r15d
movzx ebx, byte [rsp + 0x80]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140049d39
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140049d31
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x140049d4d
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140076670
sub rsi, 1
jne 0x140049d10
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret