Function at 0x180057ba0
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 0x180057e23
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 0x180057cda
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 [0x1801f3000], 0x10
lea rcx, [0x1801f2fe8]
movzx eax, byte [rsp + rdi + 0x24]
cmovae rcx, qword [0x1801f2fe8]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180057cbd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180057cb2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], sil
jmp 0x180057ccc
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1800c54a0
inc rdi
cmp rdi, 4
jl 0x180057c70
mov edi, esi
mov rcx, rsi
test rbp, rbp
jne 0x180057bf0
test edi, edi
je 0x180057e23
movsxd rax, edi
cmp rax, 3
jge 0x180057d1a
jae 0x180057e43
mov byte [rsp + rax + 0x20], sil
inc rax
cmp rax, 3
jl 0x180057cf4
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 0x180057dd4
nop word [rax + rax]
cmp qword [0x1801f3000], 0x10
lea rcx, [0x1801f2fe8]
movzx eax, byte [rsp + rsi + 0x24]
cmovae rcx, qword [0x1801f2fe8]
mov rdx, qword [rbx + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x180057dbd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180057db2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180057dcc
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1800c54a0
inc rsi
cmp rsi, rbp
jl 0x180057d70
cmp edi, 3
jge 0x180057e23
mov eax, 3
sub eax, edi
mov edi, eax
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180057e0b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180057e03
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x180057e1d
xor r8d, r8d
mov r9b, 0x3d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1800c54a0
sub rdi, 1
jne 0x180057de2
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.180145d40
int3