Function at 0x180057f20
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx], rsi
mov rbp, r8
mov qword [rcx + 0x10], rsi
mov r14, rdx
mov rbx, rcx
mov edi, esi
test r8, r8
je 0x1800581a3
mov ecx, esi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov byte [rsp + rcx + 0x20], al
dec rbp
movzx r13d, byte [rsp + 0x22]
inc rcx
movzx r15d, byte [rsp + 0x21]
inc edi
movzx r12d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x18005805a
movzx eax, r12b
movzx ecx, r12b
shr al, 2
and cl, 3
mov byte [rsp + 0x24], al
mov rdi, rsi
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
movzx eax, r13b
mov byte [rsp + 0x25], cl
movzx ecx, r15b
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x26], cl
mov byte [rsp + 0x27], al
nop word [rax + rax]
cmp qword [0x1801f3fd8], 0x10
lea rcx, [0x1801f3fc0]
movzx eax, byte [rsp + rdi + 0x24]
cmovae rcx, qword [0x1801f3fc0]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x18005803d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180058032
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], sil
jmp 0x18005804c
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1800c59e0
inc rdi
cmp rdi, 4
jl 0x180057ff0
mov edi, esi
mov rcx, rsi
test rbp, rbp
jne 0x180057f70
test edi, edi
je 0x1800581a3
movsxd rax, edi
cmp rax, 3
jge 0x18005809a
jae 0x1800581c3
mov byte [rsp + rax + 0x20], sil
inc rax
cmp rax, 3
jl 0x180058074
movzx r13d, byte [rsp + 0x22]
movzx r15d, byte [rsp + 0x21]
movzx r12d, byte [rsp + 0x20]
movzx eax, r12b
and r12b, 3
shr al, 2
mov byte [rsp + 0x24], al
movzx eax, r15b
shr al, 4
and r15b, 0xf
shl r12b, 4
add r12b, al
shl r15b, 2
movzx eax, r13b
mov byte [rsp + 0x25], r12b
shr al, 6
and r13b, 0x3f
add r15b, al
mov byte [rsp + 0x27], r13b
lea eax, [rdi + 1]
mov byte [rsp + 0x26], r15b
movsxd rbp, eax
test eax, eax
jle 0x180058154
nop word [rax + rax]
cmp qword [0x1801f3fd8], 0x10
lea rcx, [0x1801f3fc0]
movzx eax, byte [rsp + rsi + 0x24]
cmovae rcx, qword [0x1801f3fc0]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x18005813d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180058132
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18005814c
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1800c59e0
inc rsi
cmp rsi, rbp
jl 0x1800580f0
cmp edi, 3
jge 0x1800581a3
mov eax, 3
sub eax, edi
mov edi, eax
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18005818b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180058183
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x18005819d
xor r8d, r8d
mov r9b, 0x3d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1800c59e0
sub rdi, 1
jne 0x180058162
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1801470c0
int3