Function at 0x14021c6c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0xa0]
xor ebx, ebx
mov r14, qword [rcx + 0x20]
add rbp, r9
mov rsi, r9
mov r13, r8
mov rdi, rcx
mov qword [rsp + 0x80], r9
mov r12d, ebx
mov qword [rsp + 0xa0], r14
cmp byte [rcx + 0x3c], bl
je 0x14021c719
mov eax, 0xfffffdf5
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0xb0]
mov qword [rsp + 0x90], r15
call fcn.140221bf0
mov rcx, qword [rdi + 0xa8]
call fcn.140221bf0
mov qword [rdi + 0xb0], rbx
mov qword [rdi + 0xa8], rbx
mov dword [r13], ebx
mov r15d, 0xffffffff
mov r9d, 0x3f
lea r8, [0x140000000]
nop
cmp rsi, rbp
jne 0x14021c76e
test r12d, r12d
je 0x14021cedf
movsxd rdx, dword [rdi + 0xe4]
mov r12d, ebx
cmp edx, 0xc
ja case.default.0x14021c788
mov ecx, dword [r8 + rdx*4 + 0x21d0ac]
add rcx, r8
jmp rcx
movzx eax, byte [rsi]
and al, 0xe0
cmp al, 0x20
jne 0x14021d07d
movzx ecx, byte [rsi]
movzx eax, cl
and al, 0xe0
cmp al, 0x20
jne 0x14021c7d0
cmp edx, 2
je 0x14021d07d
mov dword [rdi + 0xe0], 1
mov dword [rdi + 0xe4], 3
mov qword [rdi + 0xb8], rbx
mov qword [rdi + 0xd8], rbx
jmp case.default.0x14021c788
test cl, cl
jns 0x14021c7fb
mov dword [rdi + 0xe0], 1
mov dword [rdi + 0xe4], 4
mov qword [rdi + 0xb8], rbx
mov qword [rdi + 0xd8], rbx
jmp case.default.0x14021c788
test cl, 0xaf
jne 0x14021c80f
cmp cl, 0x50
je 0x14021c80f
mov eax, 5
lea ecx, [rax - 3]
jmp 0x14021c819
mov eax, 4
mov ecx, 3
mov dword [rdi + 0xe0], ecx
mov dword [rdi + 0xe4], eax
movzx eax, byte [rsi]
shr al, 6
and al, 1
mov byte [rdi + 0xe9], al
movzx eax, byte [rsi]
and al, 0xf0
cmp al, 0x10
sete al
mov byte [rdi + 0xea], al
cmp ecx, 2
jne 0x14021c84b
inc rsi
mov qword [rdi + 0xb8], rbx
mov qword [rdi + 0xd8], rbx
jmp case.default.0x14021c788
mov rax, qword [rdi + 0xc8]
mov r14, qword [rdi + 0xd0]
mov r10d, dword [rdi + 0xb8]
cmp r14, rax
mov r9, qword [rdi + 0xd8]
cmovae r14, rax
mov qword [rdi + 0xd8], rbx
mov rax, rsi
test r10d, r10d
jne 0x14021c8c1
movzx r10d, byte [rsi]
movzx eax, r10b
and al, 0x1f
cmp al, 0x1f
je 0x14021c8ae
mov ebx, 1
and r10d, 0x1f
mov eax, ebx
jmp 0x14021c93d
lea rax, [rsi + 1]
mov r10d, 0x1f
cmp rax, rbp
jne 0x14021c8d0
sub eax, esi
jmp 0x14021c934
cmp rsi, rbp
je 0x14021c91b
nop word [rax + rax]
movzx r11d, byte [rax]
mov r8d, r11d
and r8d, 0x7f
cmp r9, 0x20
jae 0x14021d07d
mov edx, r15d
mov rcx, r9
shr edx, cl
cmp edx, r8d
jb 0x14021d07d
shl r8d, cl
mov ecx, r8d
not ecx
cmp ecx, r10d
jb 0x14021d07d
add r10d, r8d
test r11b, r11b
jns 0x14021c91b
inc rax
add r9, 7
cmp rax, rbp
jne 0x14021c8d0
mov qword [rdi + 0xd8], r9
cmp rax, rbp
jne 0x14021c92b
sub eax, esi
jmp 0x14021c934
sub eax, esi
mov ebx, 1
inc eax
cmp eax, 0xffffffff
je 0x14021d07d
mov edx, r10d
cmp rdx, r14
ja 0x14021d07d
mov qword [rdi + 0xb8], rdx
test eax, eax
js 0x14021d091
movsxd rcx, eax
add rsi, rcx
test ebx, ebx
je 0x14021d06f
mov qword [rdi + 0x30], rdx
mov rcx, rdi
xor edx, edx
mov qword [rdi + 0xd0], r15
call fcn.14021b290
mov r14, qword [rsp + 0xa0]
xor ebx, ebx
mov dword [rdi + 0xe4], 1
jmp 0x14021c751
mov r15d, dword [rdi + 0xe0]
cmp r15d, 1
jne 0x14021c9a7
lea edx, [r15 + 0x7e]
jmp 0x14021c9b7
cmp byte [rdi + 0xe9], 0
mov edx, reloc.WS2_32.dll_ntohs
cmovne edx, r9d
mov r14, qword [rdi + 0x18]
mov r8, rsi
mov r9d, dword [rdi + 0xb8]
add r14, 0x3d
mov rcx, qword [rdi + 0xd8]
mov r11d, ebx
mov qword [rdi + 0xd8], rbx
test r9d, r9d
jne 0x14021ca0a
movzx r9d, byte [rsi]
and r9d, edx
cmp r9d, edx
je 0x14021c9f9
mov r11d, 1
mov r8d, r11d
jmp 0x14021ca8a
lea r8, [rsi + 1]
mov r9d, edx
cmp r8, rbp
jne 0x14021ca0f
sub r8d, esi
jmp 0x14021ca80
cmp rsi, rbp
je 0x14021ca63
mov ebx, 0xffffffff
nop dword [rax]
nop dword [rax + rax]
movzx r10d, byte [r8]
mov edx, r10d
and edx, 0x7f
cmp rcx, 0x20
jae 0x14021d07d
mov eax, ebx
shr eax, cl
cmp eax, edx
jb 0x14021d07d
shl edx, cl
mov eax, edx
not eax
cmp eax, r9d
jb 0x14021d07d
add r9d, edx
test r10b, r10b
jns 0x14021ca63
inc r8
add rcx, 7
cmp r8, rbp
jne 0x14021ca20
mov qword [rdi + 0xd8], rcx
cmp r8, rbp
jne 0x14021ca74
sub r8d, esi
jmp 0x14021ca80
sub r8d, esi
mov r11d, 1
inc r8d
cmp r8d, 0xffffffff
je 0x14021d07d
mov ebx, r9d
cmp rbx, r14
ja 0x14021d07d
mov qword [rdi + 0xb8], rbx
mov eax, r8d
test r8d, r8d
js 0x14021d091
movsxd rax, r8d
add rsi, rax
test r11d, r11d
je 0x14021d06f
test r9d, r9d
je 0x14021d07d
dec rbx
mov qword [rdi + 0xc0], rbx
cmp r15d, 1
je 0x14021cf0d
mov r14, qword [rsp + 0xa0]
xor ebx, ebx
mov dword [rdi + 0xe4], 9
jmp 0x14021c74b
movzx eax, byte [rsi]
shr al, 7
mov byte [rdi + 0xe8], al
mov dword [rdi + 0xe4], 6
mov qword [rdi + 0xb8], rbx
mov qword [rdi + 0xd8], rbx
mov r9d, dword [rdi + 0xb8]
mov r8, rsi
mov rcx, qword [rdi + 0xd8]
mov r11d, ebx
mov qword [rdi + 0xd8], rbx
test r9d, r9d
jne 0x14021cb66
movzx r9d, byte [rsi]
movzx eax, r9b
and al, 0x7f
cmp al, 0x7f
je 0x14021cb52
mov r11d, 1
and r9d, 0x7f
mov r8d, r11d
jmp 0x14021cbdb
lea r8, [rsi + 1]
mov r9d, 0x7f
cmp r8, rbp
jne 0x14021cb70
sub r8d, esi
jmp 0x14021cbd1
cmp rsi, rbp
je 0x14021cbb4
nop dword [rax + rax]
movzx r10d, byte [r8]
mov edx, r10d
and edx, 0x7f
cmp rcx, 0x20
jae 0x14021d07d
mov eax, r15d
shr eax, cl
cmp eax, edx
jb 0x14021d07d
shl edx, cl
mov eax, edx
not eax
cmp eax, r9d
jb 0x14021d07d
add r9d, edx
test r10b, r10b
jns 0x14021cbb4
inc r8
add rcx, 7
cmp r8, rbp
jne 0x14021cb70
mov qword [rdi + 0xd8], rcx
cmp r8, rbp
jne 0x14021cbc5
sub r8d, esi
jmp 0x14021cbd1
sub r8d, esi
mov r11d, 1
inc r8d
cmp r8d, 0xffffffff
je 0x14021d07d
cmp r9d, 0x10000
ja 0x14021d07d
mov edx, r9d
mov eax, r8d
mov qword [rdi + 0xb8], rdx
test r8d, r8d
js 0x14021d091
movsxd rax, r8d
add rsi, rax
test r11d, r11d
je 0x14021d06f
cmp byte [rdi + 0xe8], 0
je 0x14021cc30
lea rcx, [rdi + 0x40]
call fcn.140221e90
mov rdx, qword [rdi + 0xb8]
mov eax, 7
add rdx, rdx
jmp 0x14021cc35
mov eax, 8
mov r8d, 0xe4
mov rcx, rdi
inc rdx
mov dword [r8 + rcx], eax
mov r8, r14
lea rcx, [rdi + 0x98]
call fcn.140221c50
test eax, eax
jne 0x14021d091
mov rdx, qword [rdi + 0x98]
lea rcx, [rdi + 0x48]
mov r8, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
call fcn.14021dc90
xor ebx, ebx
jmp 0x14021c751
lea rdx, [rdi + 0x48]
mov r9, rbp
mov r8, rsi
mov rcx, rdi
call fcn.14021b5d0
test eax, eax
js 0x14021d091
movsxd rcx, eax
add rsi, rcx
cmp qword [rdi + 0xb8], 0
jne 0x14021d06f
mov rax, qword [rdi + 0x60]
mov byte [rax], 0
mov rcx, qword [rdi + 0x60]
mov rax, qword [rdi + 0x98]
sub rcx, qword [rdi + 0x58]
mov qword [rax + 0x18], rcx
mov dword [rdi + 0xe4], 9
jmp 0x14021c751
mov rax, qword [rdi + 0xb8]
mov rbx, rbp
mov rcx, qword [rdi + 0x60]
sub rbx, rsi
cmp rbx, rax
mov rdx, rsi
cmovae rbx, rax
mov r8, rbx
call fcn.14021a280
mov qword [rdi + 0x60], rax
mov r8, rax
mov rdx, qword [rdi + 0xb8]
sub rdx, rbx
movsxd rax, ebx
mov qword [rdi + 0xb8], rdx
test ebx, ebx
js 0x14021d091
add rsi, rax
test rdx, rdx
jne 0x14021d06f
mov byte [r8], dl
mov rcx, qword [rdi + 0x60]
sub rcx, qword [rdi + 0x58]
mov rax, qword [rdi + 0x98]
xor ebx, ebx
mov qword [rax + 0x18], rcx
mov dword [rdi + 0xe4], 9
jmp 0x14021c751
movzx eax, byte [rsi]
shr al, 7
mov byte [rdi + 0xe8], al
mov dword [rdi + 0xe4], 0xa
mov qword [rdi + 0xb8], rbx
mov qword [rdi + 0xd8], rbx
mov r9d, dword [rdi + 0xb8]
mov r8, rsi
mov rcx, qword [rdi + 0xd8]
mov r11d, ebx
mov qword [rdi + 0xd8], rbx
test r9d, r9d
jne 0x14021cdc3
movzx r9d, byte [rsi]
movzx eax, r9b
and al, 0x7f
cmp al, 0x7f
je 0x14021cdaf
mov r11d, 1
and r9d, 0x7f
mov r8d, r11d
jmp 0x14021ce3b
lea r8, [rsi + 1]
mov r9d, 0x7f
cmp r8, rbp
jne 0x14021cdd0
sub r8d, esi
jmp 0x14021ce31
cmp rsi, rbp
je 0x14021ce14
nop dword [rax + rax]
movzx r10d, byte [r8]
mov edx, r10d
and edx, 0x7f
cmp rcx, 0x20
jae 0x14021d07d
mov eax, r15d
shr eax, cl
cmp eax, edx
jb 0x14021d07d
shl edx, cl
mov eax, edx
not eax
cmp eax, r9d
jb 0x14021d07d
add r9d, edx
test r10b, r10b
jns 0x14021ce14
inc r8
add rcx, 7
cmp r8, rbp
jne 0x14021cdd0
mov qword [rdi + 0xd8], rcx
cmp r8, rbp
jne 0x14021ce25
sub r8d, esi
jmp 0x14021ce31
sub r8d, esi
mov r11d, 1
inc r8d
cmp r8d, 0xffffffff
je 0x14021d07d
cmp r9d, 0x10000
ja 0x14021d07d
mov edx, r9d
mov eax, r8d
mov qword [rdi + 0xb8], rdx
test r8d, r8d
js 0x14021d091
movsxd rax, r8d
add rsi, rax
test r11d, r11d
je 0x14021d06f
cmp byte [rdi + 0xe8], 0
je 0x14021ce90
lea rcx, [rdi + 0x40]
call fcn.140221e90
mov rdx, qword [rdi + 0xb8]
mov eax, reloc.WS2_32.dll_inet_addr
add rdx, rdx
jmp 0x14021ce95
mov eax, reloc.WS2_32.dll_inet_ntoa
mov r8d, 0xe4
mov rcx, rdi
inc rdx
mov dword [rcx + r8], eax
mov r8, r14
lea rcx, [rdi + 0xa0]
call fcn.140221c50
test eax, eax
jne 0x14021d091
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0x70]
mov r8, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
call fcn.14021dc90
xor ebx, ebx
lea r12d, [rbx + 1]
jmp 0x14021c751
cmp dword [rsp + 0xa8], 0
je 0x14021ceff
mov eax, dword [rdi + 0xe4]
dec eax
cmp eax, 1
ja 0x14021d07d
or dword [r13], 1
sub esi, dword [rsp + 0x80]
mov eax, esi
jmp 0x14021d095
cmp rbx, r14
jb 0x14021cf2b
mov r8d, 0x516
lea rdx, str.C:dev_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_nghttp2_hd.c
lea rcx, str.INDEX_RANGE_VALID_context__idx_
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
cmp rbx, 0x3d
jb 0x14021cf70
add rbx, 0xffffffffffffffc3
cmp rbx, qword [rdi + 0x18]
jb 0x14021cf54
mov r8d, 0x262
lea rdx, str.C:dev_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_nghttp2_hd.c
lea rcx, str.idx___ringbuf__len
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi]
add rcx, rbx
and rcx, qword [rdi + 8]
mov rcx, qword [rax + rcx*8]
movups xmm0, xmmword [rcx]
movsd xmm1, qword [rcx + 0x10]
jmp 0x14021cfb4
lea rcx, [0x140000000]
shl rbx, 7
lea rax, [rcx + 0x3e6f20]
mov byte [rsp + 0x34], 0
add rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rcx + 0x3e6f48]
add rax, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + rcx + 0x3e6f98]
movups xmm0, xmmword [rsp + 0x20]
mov dword [rsp + 0x30], eax
movsd xmm1, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x88]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
mov dword [rdi + 0xe4], 2
or dword [r13], 2
sub esi, dword [rsp + 0x80]
mov eax, esi
jmp 0x14021d095
lea rdx, [rdi + 0x70]
mov r9, rbp
mov r8, rsi
mov rcx, rdi
call fcn.14021b5d0
test eax, eax
js 0x14021d091
movsxd rcx, eax
add rsi, rcx
cmp qword [rdi + 0xb8], 0
jne 0x14021d06f
mov rax, qword [rdi + 0x88]
mov rdx, qword [rsp + 0x88]
mov byte [rax], 0
mov rcx, qword [rdi + 0x88]
sub rcx, qword [rdi + 0x80]
mov rax, qword [rdi + 0xa0]
mov qword [rax + 0x18], rcx
mov rcx, rdi
cmp dword [rdi + 0xe0], 2
jne 0x14021d084
call fcn.14021b4b0
jmp 0x14021d089
lea rdx, [rdi + 0x70]
mov r9, rbp
mov r8, rsi
mov rcx, rdi
call fcn.14021b570
test eax, eax
js 0x14021d091
movsxd rcx, eax
add rsi, rcx
cmp qword [rdi + 0xb8], 0
je 0x14021d00b
cmp dword [rsp + 0xa8], 0
je 0x14021cfd3
mov eax, 0xfffffdf5
jmp 0x14021d091
call fcn.14021b3d0
test eax, eax
je 0x14021cfc4
mov byte [rdi + 0x3c], 1
mov r15, qword [rsp + 0x90]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret