Function at 0x1400012c0
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, 0x40
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x28], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], recv
mov byte [rcx], sil
mov dword [rsp + 0x28], 1
mov ebx, esi
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14000131b
mov rcx, qword [rdx]
mov r8, rcx
mov r14, rcx
jmp 0x140001321
mov r14, rdx
mov r8, rdx
mov r13, qword [rdx + 0x10]
add r13, r8
cmp rcx, r13
je 0x14000154a
mov rcx, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r14]
mov byte [rsp + rcx + 0x20], al
inc ebx
inc rcx
movzx r12d, byte [rsp + 0x22]
movzx ebp, byte [rsp + 0x21]
movzx r15d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x140001413
movzx eax, r15b
shr al, 2
mov byte [rsp + 0x24], al
movzx ecx, r15b
and cl, 3
shl cl, 4
movzx eax, bpl
shr al, 4
add cl, al
mov byte [rsp + 0x25], cl
movzx ecx, bpl
and cl, 0xf
shl cl, 2
movzx eax, r12b
shr al, 6
add cl, al
mov byte [rsp + 0x26], cl
movzx eax, r12b
and al, 0x3f
mov byte [rsp + 0x27], al
mov rbx, rsi
nop
lea rcx, [0x140009048]
cmp qword [0x140009060], 0x10
cmovae rcx, qword [0x140009048]
movzx eax, byte [rsp + rbx + 0x24]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400013fd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400013f2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001405
mov rcx, rdi
call fcn.140004270
inc rbx
cmp rbx, 4
jl 0x1400013b0
mov ebx, esi
mov rcx, rsi
inc r14
cmp r14, r13
jne 0x140001340
test ebx, ebx
je 0x14000154a
movsxd rax, ebx
cmp rax, 3
jge 0x140001455
jae 0x14000156b
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 3
jl 0x140001430
movzx r12d, byte [rsp + 0x22]
movzx ebp, byte [rsp + 0x21]
movzx r15d, byte [rsp + 0x20]
movzx eax, r15b
shr al, 2
mov byte [rsp + 0x24], al
and r15b, 3
shl r15b, 4
movzx eax, bpl
shr al, 4
add r15b, al
mov byte [rsp + 0x25], r15b
and bpl, 0xf
shl bpl, 2
movzx eax, r12b
shr al, 6
add bpl, al
mov byte [rsp + 0x26], bpl
and r12b, 0x3f
mov byte [rsp + 0x27], r12b
lea eax, [rbx + 1]
movsxd rbp, eax
test eax, eax
jle 0x1400014fe
lea rcx, [0x140009048]
cmp qword [0x140009060], 0x10
cmovae rcx, qword [0x140009048]
movzx eax, byte [rsp + rsi + 0x24]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400014ee
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400014e3
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400014f6
mov rcx, rdi
call fcn.140004270
inc rsi
cmp rsi, rbp
jl 0x1400014a1
cmp ebx, 3
jge 0x14000154a
mov eax, 3
sub eax, ebx
mov ebx, eax
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140001539
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140001531
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x140001544
mov r9b, 0x3d
mov rcx, rdi
call fcn.140004270
sub rbx, 1
jne 0x140001510
mov rax, rdi
lea r11, [rsp + 0x40]
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
call fcn.140004708
int3