Function at 0x14006c424
Capabilities:
Encode data using base64

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r13d, r8d
mov r8, rdx
mov rbx, rcx
xor r9d, r9d
mov dword [rbp - 0x20], r9d
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x10], r9
cmp qword [rcx + 0x18], 0x10
jb 0x14006c471
mov rax, qword [rcx]
jmp 0x14006c474
mov rax, rbx
mov byte [rax], r9b
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x24], r9d
mov esi, r9d
test r13d, r13d
je 0x14006c698
mov rcx, r9
mov edi, 3
mov r15, qword [rbp + 0x68]
dec r13d
mov al, byte [r8]
mov byte [rbp + rcx + 0x58], al
inc esi
inc rcx
inc r8
mov qword [rbp + 0x50], r8
mov dl, byte [rbp + 0x5a]
mov r14b, byte [rbp + 0x59]
mov r12b, byte [rbp + 0x58]
cmp rcx, rdi
jne 0x14006c58b
mov al, r12b
shr al, 2
mov byte [rbp - 0x28], al
mov cl, r12b
and cl, dil
shl cl, 4
mov al, r14b
shr al, 4
add cl, al
mov byte [rbp - 0x27], cl
mov cl, r14b
and cl, 0xf
shl cl, 2
mov al, dl
shr al, 6
add cl, al
mov byte [rbp - 0x26], cl
mov al, dl
and al, 0x3f
mov byte [rbp - 0x25], al
mov rsi, r9
mov edi, dword [rbp - 0x24]
mov r12d, dword [rbp + 0x60]
movzx ecx, byte [rbp + rsi - 0x28]
lea rax, [0x140174020]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x140174020]
mov r8b, byte [rax + rcx]
mov edx, 1
mov rcx, rbx
call fcn.14006bed4
inc edi
xor r9d, r9d
test r12d, r12d
jle 0x14006c569
mov eax, edi
cdq
idiv r12d
test edx, edx
jne 0x14006c569
cmp byte [r15], r9b
jne 0x14006c550
mov eax, r9d
jmp 0x14006c558
mov rcx, r15
call fcn.1400d9890
mov r8, rax
mov rdx, r15
mov rcx, rbx
call fcn.14006bd9c
xor r9d, r9d
inc rsi
cmp rsi, 4
jl 0x14006c505
mov dword [rbp - 0x24], edi
mov esi, r9d
mov rcx, r9
mov edi, 3
mov r12b, byte [rbp + 0x58]
mov dl, byte [rbp + 0x5a]
mov r8, qword [rbp + 0x50]
test r13d, r13d
jne 0x14006c49a
test esi, esi
je 0x14006c698
movsxd rax, esi
cmp rax, rdi
jge 0x14006c5c6
jae 0x14006c5c0
mov byte [rbp + rax + 0x58], r9b
inc rax
cmp rax, rdi
jl 0x14006c5a4
mov dl, byte [rbp + 0x5a]
mov r14b, byte [rbp + 0x59]
mov r12b, byte [rbp + 0x58]
jmp 0x14006c5c6
call fcn.1400b0380
int3
mov al, r12b
shr al, 2
mov byte [rbp - 0x28], al
and r12b, dil
shl r12b, 4
mov al, r14b
shr al, 4
add r12b, al
mov byte [rbp - 0x27], r12b
and r14b, 0xf
shl r14b, 2
mov al, dl
shr al, 6
add r14b, al
mov byte [rbp - 0x26], r14b
and dl, 0x3f
mov byte [rbp - 0x25], dl
lea eax, [rsi + 1]
test eax, eax
jle 0x14006c67c
lea r14, [rbp - 0x28]
mov r12d, eax
mov edi, dword [rbp - 0x24]
mov r13d, dword [rbp + 0x60]
movzx ecx, byte [r14]
lea rax, [0x140174020]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x140174020]
mov r8b, byte [rax + rcx]
mov edx, 1
mov rcx, rbx
call fcn.14006bed4
inc edi
test r13d, r13d
jle 0x14006c66e
mov eax, edi
cdq
idiv r13d
test edx, edx
jne 0x14006c66e
cmp byte [r15], dl
jne 0x14006c658
xor eax, eax
jmp 0x14006c660
mov rcx, r15
call fcn.1400d9890
mov r8, rax
mov rdx, r15
mov rcx, rbx
call fcn.14006bd9c
inc r14
sub r12, 1
jne 0x14006c612
lea edi, [r12 + 3]
cmp esi, edi
jge 0x14006c698
sub edi, esi
mov r8b, 0x3d
mov edx, 1
mov rcx, rbx
call fcn.14006bed4
sub rdi, 1
jne 0x14006c682
mov rax, rbx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret