Function at 0x140010404
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r12d, r8d
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x4c], esi
lea rdx, [0x140083a30]
lea rcx, [rbp - 0x20]
call fcn.14006ec6c
mov rbx, rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
lea r8d, [rsi + 0x20]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140043700
and qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1400104ac
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400104a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010726
call fcn.1400423d4
movdqa xmm0, xmmword [0x1400810b0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rbp - 0x4c], 1
xor ebx, ebx
test r12d, r12d
je 0x1400106ce
xor ecx, ecx
lea esi, [rbx + 3]
jmp 0x1400104ea
mov r14, qword [rbp + 0x48]
dec r12d
mov al, byte [r14]
mov byte [rbp + rcx + 0x58], al
inc ebx
inc rcx
inc r14
mov qword [rbp + 0x48], r14
mov r13b, byte [rbp + 0x5a]
mov r14b, byte [rbp + 0x59]
mov r15b, byte [rbp + 0x58]
cmp rcx, rsi
jne 0x1400105ad
mov al, r15b
shr al, 2
mov byte [rbp - 0x50], al
mov cl, r15b
and cl, sil
shl cl, 4
mov al, r14b
shr al, 4
add cl, al
mov byte [rbp - 0x4f], cl
mov cl, r14b
and cl, 0xf
shl cl, 2
mov al, r13b
shr al, 6
add cl, al
mov byte [rbp - 0x4e], cl
mov al, r13b
and al, 0x3f
mov byte [rbp - 0x4d], al
xor ebx, ebx
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
movzx eax, byte [rbp + rbx - 0x50]
mov r9b, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
cmp rcx, qword [rdi + 0x18]
jae 0x140010591
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140010586
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400105a0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140018614
inc rbx
cmp rbx, 4
jl 0x140010550
xor ebx, ebx
xor ecx, ecx
test r12d, r12d
jne 0x1400104e6
test ebx, ebx
je 0x1400106ce
cmp ebx, esi
jge 0x1400105e6
mov eax, esi
sub eax, ebx
movsxd r8, eax
movsxd rax, ebx
lea rcx, [rbp + 0x58]
add rcx, rax
xor edx, edx
call fcn.140043b60
mov r13b, byte [rbp + 0x5a]
mov r14b, byte [rbp + 0x59]
mov r15b, byte [rbp + 0x58]
mov al, r15b
shr al, 2
mov byte [rbp - 0x50], al
and r15b, sil
shl r15b, 4
mov al, r14b
shr al, 4
add r15b, al
mov byte [rbp - 0x4f], r15b
and r14b, 0xf
shl r14b, 2
mov al, r13b
shr al, 6
add r14b, al
mov byte [rbp - 0x4e], r14b
and r13b, 0x3f
mov byte [rbp - 0x4d], r13b
lea eax, [rbx + 1]
movsxd r15, eax
test eax, eax
jle 0x140010686
xor r14d, r14d
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
movzx eax, byte [rbp + r14 - 0x50]
mov r9b, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
cmp rcx, qword [rdi + 0x18]
jae 0x14001066f
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140010664
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001067e
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140018614
inc r14
cmp r14, r15
jl 0x14001062d
cmp ebx, esi
jge 0x1400106ce
sub esi, ebx
movsxd rbx, esi
mov rcx, qword [rdi + 0x10]
cmp rcx, qword [rdi + 0x18]
jae 0x1400106b6
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400106ae
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1400106c8
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140018614
sub rbx, 1
jne 0x14001068f
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140010705
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010700
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010720
call fcn.1400423d4
mov rax, rdi
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140046b24
nop
call fcn.140046b24
int3