Function at 0x1400a21f0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], 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 ebp, r9d
mov r12, r8
mov rdi, rdx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov dword [rsp + 0x28], esi
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1403c4204], eax
jg 0x1400a24ba
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x28], 1
mov ebx, esi
test ebp, ebp
je 0x1400a2493
mov rcx, rsi
nop word [rax + rax]
dec ebp
movzx eax, byte [r12]
mov byte [rsp + rcx + 0x20], al
inc ebx
inc rcx
lea r12, [r12 + 1]
movzx r13d, byte [rsp + 0x22]
movzx r14d, byte [rsp + 0x21]
movzx r15d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x1400a235a
movzx eax, r15b
shr al, 2
mov byte [rsp + 0x24], al
movzx ecx, r15b
and cl, 3
shl cl, 4
movzx eax, r14b
shr al, 4
add cl, al
mov byte [rsp + 0x25], cl
movzx ecx, r14b
and cl, 0xf
shl cl, 2
movzx eax, r13b
shr al, 6
add cl, al
mov byte [rsp + 0x26], cl
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x27], al
mov rbx, rsi
nop word [rax + rax]
lea rcx, [0x1403bf1e0]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1403bf1e0]
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 0x1400a233d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400a2332
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a234c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.14008f320
inc rbx
cmp rbx, 4
jl 0x1400a22f0
mov ebx, esi
mov rcx, rsi
test ebp, ebp
jne 0x1400a2270
test ebx, ebx
je 0x1400a2493
movsxd rax, ebx
cmp rax, 3
jge 0x1400a2399
jae 0x1400a24b4
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 3
jl 0x1400a2373
movzx r13d, byte [rsp + 0x22]
movzx r14d, 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, r14b
shr al, 4
add r15b, al
mov byte [rsp + 0x25], r15b
and r14b, 0xf
shl r14b, 2
shr r13b, 6
add r14b, r13b
mov byte [rsp + 0x26], r14b
lea eax, [rbx + 1]
movsxd rbp, eax
test eax, eax
jle 0x1400a2444
nop dword [rax]
lea rcx, [0x1403bf1e0]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1403bf1e0]
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 0x1400a242d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400a2422
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a243c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.14008f320
inc rsi
cmp rsi, rbp
jl 0x1400a23e0
cmp ebx, 3
jge 0x1400a2493
mov eax, 3
sub eax, ebx
mov ebx, eax
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a247b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400a2473
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1400a248d
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.14008f320
sub rbx, 1
jne 0x1400a2452
mov rax, rdi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
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.1400a9828
int3
lea rcx, [0x1403c4204]
call fcn.1400a9348
cmp dword [0x1403c4204], 0xffffffff
jne 0x1400a2240
mov r8d, 0x40
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea rcx, [0x1403bf1e0]
call fcn.140086d80
lea rcx, [0x1402d0710]
call fcn.1400a9690
nop
lea rcx, [0x1403c4204]
call fcn.1400a92e8
jmp 0x1400a2240