Function at 0x14006ddcc
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 rdi, rcx
and dword [rbp - 0x20], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
and qword [rcx + 0x10], 0
mov byte [rcx], 0
mov dword [rbp - 0x20], 1
and dword [rbp - 0x24], 0
xor esi, esi
test r13d, r13d
je 0x14006e01c
xor ecx, ecx
lea ebx, [rsi + 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, rbx
jne 0x14006df11
mov al, r12b
shr al, 2
mov byte [rbp - 0x28], al
mov cl, r12b
and cl, bl
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
xor esi, esi
mov ebx, dword [rbp - 0x24]
mov r12d, dword [rbp + 0x60]
lea rcx, [0x140108038]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140108038]
movzx eax, byte [rbp + rsi - 0x28]
mov r8b, byte [rax + rcx]
mov edx, 1
mov rcx, rdi
call fcn.14006d850
inc ebx
test r12d, r12d
jle 0x14006def3
mov eax, ebx
cdq
idiv r12d
test edx, edx
jne 0x14006def3
cmp byte [r15], dl
jne 0x14006dedd
xor eax, eax
jmp 0x14006dee5
mov rcx, r15
call sub.MSVCR120.dll_strlen
mov r8, rax
mov rdx, r15
mov rcx, rdi
call fcn.14006d718
inc rsi
cmp rsi, 4
jl 0x14006de96
mov dword [rbp - 0x24], ebx
xor esi, esi
xor ecx, ecx
lea ebx, [rsi + 3]
mov r12b, byte [rbp + 0x58]
mov dl, byte [rbp + 0x5a]
mov r8, qword [rbp + 0x50]
test r13d, r13d
jne 0x14006de2d
test esi, esi
je 0x14006e01c
movsxd rax, esi
cmp rax, rbx
jge 0x14006df4c
jae 0x14006df46
mov byte [rbp + rax + 0x58], 0
inc rax
cmp rax, rbx
jl 0x14006df2a
mov dl, byte [rbp + 0x5a]
mov r14b, byte [rbp + 0x59]
mov r12b, byte [rbp + 0x58]
jmp 0x14006df4c
call fcn.1400bf1c8
int3
mov al, r12b
shr al, 2
mov byte [rbp - 0x28], al
and r12b, bl
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 0x14006e001
lea r14, [rbp - 0x28]
mov r12d, eax
mov ebx, dword [rbp - 0x24]
mov r13d, dword [rbp + 0x60]
lea rcx, [0x140108038]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140108038]
movzx eax, byte [r14]
mov r8b, byte [rax + rcx]
mov edx, 1
mov rcx, rdi
call fcn.14006d850
inc ebx
test r13d, r13d
jle 0x14006dff4
mov eax, ebx
cdq
idiv r13d
test edx, edx
jne 0x14006dff4
cmp byte [r15], dl
jne 0x14006dfde
xor eax, eax
jmp 0x14006dfe6
mov rcx, r15
call sub.MSVCR120.dll_strlen
mov r8, rax
mov rdx, r15
mov rcx, rdi
call fcn.14006d718
inc r14
dec r12
jne 0x14006df98
lea ebx, [r12 + 3]
cmp esi, ebx
jge 0x14006e01c
sub ebx, esi
mov r8b, 0x3d
mov edx, 1
mov rcx, rdi
call fcn.14006d850
dec rbx
jne 0x14006e007
mov rax, rdi
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret