Function at 0x14007c2c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
mov qword [rcx + 0x18], reloc.WSOCK32.dll_ntohs
mov qword [rcx + 0x10], 0
mov byte [rcx], 0
mov dword [rsp + 0x24], 1
xor esi, esi
test r8, r8
je 0x14007c6aa
xor ecx, ecx
nop dword [rax + rax]
dec r14
movzx eax, byte [r15]
mov byte [rsp + rcx + 0x88], al
inc esi
inc rcx
inc r15
movzx edx, byte [rsp + 0x8a]
movzx r12d, byte [rsp + 0x89]
movzx r13d, byte [rsp + 0x88]
cmp rcx, 3
jne 0x14007c460
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x20], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x21], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x22], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x23], al
xor esi, esi
nop dword [rax]
lea rcx, [0x140311978]
cmp qword [0x140311990], 0x10
cmovae rcx, qword [0x140311978]
movzx eax, byte [rsp + rsi + 0x20]
movzx ebp, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
mov rax, r8
not rax
cmp rax, 1
jbe 0x14007c477
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14007c46a
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14007c3f8
mov rdx, rbx
mov rcx, rdi
call fcn.14000bdb0
jmp 0x14007c414
test rbx, rbx
jne 0x14007c419
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14007c40c
mov rax, qword [rdi]
jmp 0x14007c40f
mov rax, rdi
mov byte [rax], 0
jmp 0x14007c447
test rbx, rbx
je 0x14007c447
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14007c429
mov rax, qword [rdi]
jmp 0x14007c42c
mov rax, rdi
mov byte [rax + rcx], bpl
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14007c440
mov rax, qword [rdi]
jmp 0x14007c443
mov rax, rdi
mov byte [rax + rbx], 0
inc rsi
cmp rsi, 4
jl 0x14007c3a0
xor esi, esi
xor ecx, ecx
movzx edx, byte [rsp + 0x8a]
test r14, r14
je 0x14007c484
jmp 0x14007c320
lea rcx, str.string_too_long
call fcn.140114c84
int3
lea rcx, str.string_too_long
call fcn.140114c84
int3
test esi, esi
je 0x14007c6aa
movsxd rax, esi
cmp rax, 3
jge 0x14007c4ca
jae 0x14007c4c4
mov byte [rsp + rax + 0x88], 0
inc rax
cmp rax, 3
jl 0x14007c495
movzx edx, byte [rsp + 0x8a]
movzx r12d, byte [rsp + 0x89]
movzx r13d, byte [rsp + 0x88]
jmp 0x14007c4ca
call fcn.140113abc
int3
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x20], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x21], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x22], r12b
and dl, 0x3f
mov byte [rsp + 0x23], dl
xor ebp, ebp
lea r12d, [rsi + 1]
test r12d, r12d
jle 0x14007c5ed
lea r14, [rsp + 0x20]
nop dword [rax]
lea rcx, [0x140311978]
cmp qword [0x140311990], 0x10
cmovae rcx, qword [0x140311978]
movzx eax, byte [r14]
movzx r15d, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
mov rax, r8
not rax
cmp rax, 1
jbe 0x14007c5e0
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14007c5d3
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14007c574
mov rdx, rbx
mov rcx, rdi
call fcn.14000bdb0
jmp 0x14007c590
test rbx, rbx
jne 0x14007c595
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14007c588
mov rax, qword [rdi]
jmp 0x14007c58b
mov rax, rdi
mov byte [rax], 0
jmp 0x14007c5c3
test rbx, rbx
je 0x14007c5c3
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14007c5a5
mov rax, qword [rdi]
jmp 0x14007c5a8
mov rax, rdi
mov byte [rax + rcx], r15b
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14007c5bc
mov rax, qword [rdi]
jmp 0x14007c5bf
mov rax, rdi
mov byte [rax + rbx], 0
inc ebp
inc r14
cmp ebp, r12d
jl 0x14007c520
jmp 0x14007c5ed
lea rcx, str.string_too_long
call fcn.140114c84
int3
lea rcx, str.string_too_long
call fcn.140114c84
int3
cmp esi, 3
jge 0x14007c6aa
nop word [rax + rax]
inc esi
mov r8, qword [rdi + 0x10]
mov rax, r8
not rax
cmp rax, 1
jbe 0x14007c69d
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14007c690
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14007c636
mov rdx, rbx
mov rcx, rdi
call fcn.14000bdb0
jmp 0x14007c652
test rbx, rbx
jne 0x14007c657
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14007c64a
mov rax, qword [rdi]
jmp 0x14007c64d
mov rax, rdi
mov byte [rax], 0
jmp 0x14007c685
test rbx, rbx
je 0x14007c685
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14007c667
mov rax, qword [rdi]
jmp 0x14007c66a
mov rax, rdi
mov byte [rcx + rax], 0x3d
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14007c67e
mov rax, qword [rdi]
jmp 0x14007c681
mov rax, rdi
mov byte [rbx + rax], 0
cmp esi, 3
jl 0x14007c600
jmp 0x14007c6aa
lea rcx, str.string_too_long
call fcn.140114c84
int3
lea rcx, str.string_too_long
call fcn.140114c84
int3
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret