Function at 0x14009e4d0
Capabilities:
Encode data using base64

Disassembly:
push rdi
push r13
sub rsp, 0x88
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x30], r9b
mov r13, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14009e1a1
xor al, al
jmp 0x14009e4b0
mov rcx, qword [rcx + 0x10]
lea rax, [0x140154590]
mov qword [rsp + 0xb0], rbx
cmp r13, rdi
mov qword [rsp + 0x60], r15
lea rbx, [rsp + 0x38]
cmovne rbx, r13
mov qword [rsp + 0x48], 0
test r8b, r8b
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
xorps xmm0, xmm0
lea r15, [0x140154540]
cmovne r15, rax
add rcx, 2
movups xmmword [rsp + 0x38], xmm0
movabs rax, 0xaaaaaaaaaaaaaaab
mov byte [rsp + 0x38], 0
mul rcx
xor r8d, r8d
mov rcx, rbx
shr rdx, 1
shl rdx, 2
call fcn.14008d830
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x14009e36c
mov qword [rsp + 0x80], rbp
xor r11d, r11d
mov qword [rsp + 0x78], rsi
xor r9d, r9d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
lea esi, [r11 + 2]
mov rcx, qword [rdi + 0x18]
mov rax, rdi
cmp rcx, 0x10
jb 0x14009e253
mov rax, qword [rdi]
movzx r12d, byte [r11 + rax]
lea eax, [rsi - 1]
movsxd r14, eax
cmp r14, rdx
jae 0x14009e277
mov rax, rdi
cmp rcx, 0x10
jb 0x14009e26f
mov rax, qword [rdi]
movzx r10d, byte [r11 + rax + 1]
jmp 0x14009e27a
xor r10d, r10d
movsxd rbp, esi
cmp rbp, rdx
jae 0x14009e296
mov rax, rdi
cmp rcx, 0x10
jb 0x14009e28e
mov rax, qword [rdi]
movzx r8d, byte [r11 + rax + 2]
jmp 0x14009e299
xor r8d, r8d
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14009e2a6
mov rdx, qword [rbx]
mov rcx, r12
shl rcx, 8
or rcx, r10
shl rcx, 8
or rcx, r8
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r15]
mov byte [r9 + rdx], al
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14009e2d4
mov rdx, qword [rbx]
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r15]
mov byte [r9 + rdx + 1], al
cmp r14, qword [rdi + 0x10]
jae 0x14009e2ff
mov rax, rcx
shr rax, 6
and eax, 0x3f
movzx edx, byte [rax + r15]
jmp 0x14009e301
mov dl, 0x3d
cmp qword [rbx + 0x18], 0x10
mov rax, rbx
jb 0x14009e30e
mov rax, qword [rbx]
mov byte [r9 + rax + 2], dl
cmp rbp, qword [rdi + 0x10]
jae 0x14009e323
and ecx, 0x3f
movzx edx, byte [rcx + r15]
jmp 0x14009e325
mov dl, 0x3d
cmp qword [rbx + 0x18], 0x10
mov rax, rbx
jb 0x14009e332
mov rax, qword [rbx]
mov byte [r9 + rax + 3], dl
add esi, 3
mov rdx, qword [rdi + 0x10]
add r11, 3
add r9, 4
lea eax, [rsi - 2]
movsxd rcx, eax
cmp rcx, rdx
jb 0x14009e243
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
cmp byte [rsp + 0x30], 0
mov rdx, rbx
mov r15, qword [rsp + 0x60]
jne 0x14009e439
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009e439
mov rdx, qword [rbx + 0x18]
mov rax, rbx
cmp rdx, 0x10
jb 0x14009e39c
mov rax, qword [rbx]
cmp byte [rcx + rax - 1], 0x3d
jne 0x14009e439
cmp rcx, 1
jbe 0x14009e3d1
mov rax, rbx
cmp rdx, 0x10
jb 0x14009e3b9
mov rax, qword [rbx]
cmp byte [rcx + rax - 2], 0x3d
jne 0x14009e3d1
lea rdx, [rcx - 2]
xor r8d, r8d
mov rcx, rbx
call fcn.14008d830
jmp 0x14009e439
lea r8, [rcx - 1]
cmp r8, rcx
ja 0x14009e3ee
mov qword [rbx + 0x10], r8
cmp rdx, 0x10
jb 0x14009e3e7
mov rbx, qword [rbx]
mov byte [rbx + r8], 0
jmp 0x14009e439
mov rax, rdx
mov r10, 0xffffffffffffffff
sub rax, rcx
cmp r10, rax
ja 0x14009e423
mov qword [rbx + 0x10], r8
cmp rdx, 0x10
jb 0x14009e40d
mov rbx, qword [rbx]
add rbx, rcx
mov r8, r10
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx - 1], 0
jmp 0x14009e439
mov r9, r10
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov rdx, r10
mov rcx, rbx
call fcn.140002ff0
mov rbx, qword [rsp + 0xb0]
cmp r13, rdi
jne 0x14009e46e
lea rax, [rsp + 0x38]
cmp r13, rax
je 0x14009e46e
cmp qword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, r13
cmovae rdx, qword [rsp + 0x38]
call fcn.140018520
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14009e4ae
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e4a9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009e4a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7420
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e74c0
add rsp, 0x88
pop r13
pop rdi
ret
xor r9d, r9d
mov r8b, 1
jmp 0x14009e170