Function at 0x1401b5100
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov r15, r9
mov qword [rsp + 0xf0], r8
mov rdi, rdx
mov r13, rcx
cmp byte [rdx + 0xf8], 0
je 0x1401b52b2
call fcn.140178660
mov r14, rax
lea r12, [rax + 0x10]
mov rcx, qword [rax + 0x110]
cmp rcx, 0x40
jb 0x1401b5181
mov rcx, r14
add rcx, 0x120
mov rax, qword [r14 + 0x158]
test rax, rax
jle 0x1401b51d7
cmp qword [r14 + 0x160], 0
js 0x1401b51d7
add rax, 0xffffffffffffff00
mov qword [r14 + 0x158], rax
mov rdx, r12
call fcn.140178cb0
jmp 0x1401b51df
movzx esi, byte [r14 + rcx*4 + 0x10]
lea rax, [rcx + 1]
mov qword [r14 + 0x110], rax
cmp rcx, 0x3f
jne 0x1401b51eb
mov rcx, r14
add rcx, 0x120
mov rax, qword [r14 + 0x158]
test rax, rax
jle 0x1401b5247
cmp qword [r14 + 0x160], 0
js 0x1401b5247
add rax, 0xffffffffffffff00
mov qword [r14 + 0x158], rax
mov rdx, r12
call fcn.140178cb0
jmp 0x1401b524f
mov rdx, r12
call fcn.1402f2d30
movzx esi, byte [r12]
mov eax, 1
jmp 0x1401b5251
mov ebx, dword [r14 + rcx*4 + 0x14]
lea rax, [rcx + 2]
mov qword [r14 + 0x110], rax
cmp rcx, 0x3e
jb 0x1401b55de
mov rcx, r14
add rcx, 0x120
mov rax, qword [r14 + 0x158]
test rax, rax
jle 0x1401b5840
cmp qword [r14 + 0x160], 0
js 0x1401b5840
add rax, 0xffffffffffffff00
mov qword [r14 + 0x158], rax
mov rdx, r12
call fcn.140178cb0
jmp 0x1401b5848
mov rdx, r12
call fcn.1402f2d30
xor eax, eax
mov ebx, dword [r14 + rax*4 + 0x10]
mov ebp, dword [r14 + rax*4 + 0x14]
or rax, 2
mov qword [r14 + 0x110], rax
mov r12d, dword [r14 + rax*4 + 0x10]
inc rax
mov qword [r14 + 0x110], rax
dec qword [r14]
jne 0x1401b5291
dec qword [r14 + 8]
jne 0x1401b5291
mov rcx, qword [0x1403f6548]
xor edx, edx
mov r8, r14
call fcn.140302ad4
shl r12d, 0x18
movzx eax, bpl
shl eax, 0x10
or eax, r12d
shl ebx, 8
movzx ecx, bx
or ecx, eax
or ecx, esi
mov byte [r15 + 0x1f], 1
mov dword [r15 + 0x20], ecx
mov rax, qword [0x1403f6a88]
cmp rax, 5
jne 0x1401b53b9
mov qword [rsp + 0x30], r15
lea rax, [0x1402f4210]
mov qword [rsp + 0x38], rax
mov rax, qword [0x1403f6038]
cmp rax, 2
lea rax, [0x14033a3c0]
cmove rax, qword [0x140305048]
lea rcx, [0x1403d7910]
cmove rcx, qword [0x140305040]
mov qword [rsp + 0x90], 5
lea rdx, str.tungstenite::protocolReplying_to_close_with
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], 0x15
lea r8, str.Sending_frame:
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], 0x15
mov qword [rsp + 0x78], 0
lea rdx, [0x1403b39a8]
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], 0x62
movabs rdx, 0x2cb00000001
mov qword [rsp + 0xa8], rdx
lea rdx, [rsp + 0x60]
call qword [rax + 0x20]
movups xmm0, xmmword [r15]
movdqu xmm1, xmmword [r15 + 0x10]
movdqa xmmword [rsp + 0x40], xmm1
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x30], xmm0
mov r14, qword [rsp + 0x40]
cmp r14, 0x10000
mov eax, 2
sbb rax, 0
xor esi, esi
cmp r14, 0x7e
cmovae rsi, rax
lea rax, [0x1403d9500]
movzx ecx, byte [rsp + 0x4f]
shl rcx, 2
add rcx, qword [rax + rsi*8]
mov r12, qword [rdi + 0x98]
add rcx, r14
add rcx, r12
cmp rcx, qword [rdi + 0xa0]
jbe 0x1401b545b
mov qword [rsp + 0x60], 9
mov qword [rsp + 0x68], 5
movdqu xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movdqu xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm1
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x90], rax
jmp 0x1401b5a29
mov rax, qword [0x1403f6a88]
cmp rax, 5
jne 0x1401b5570
lea rax, [rsp + 0x30]
mov qword [rsp + 0xf8], rax
lea rax, [0x1402f32c0]
mov qword [rsp + 0x100], rax
mov rax, qword [0x1403f6038]
cmp rax, 2
lea rax, [0x14033a3c0]
cmove rax, qword [0x140305048]
lea rcx, [0x1403d7910]
cmove rcx, qword [0x140305040]
mov qword [rsp + 0x90], 5
lea rdx, str.tungstenite::protocol::frameno_frame_received
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], 0x1c
lea r8, str.writing_frame
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], 1
lea r8, [rsp + 0xf8]
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], 0x1c
mov qword [rsp + 0x78], 0
lea rdx, str._Users_sh1n_.cargo_registry_src_rsproxy.cn_8f6827c7555bfaf8_tungstenite_0.20.1_src_protocol_frame_mod.rsreceived_frame
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], 0x68
movabs rdx, 0xdb00000001
mov qword [rsp + 0xa8], rdx
lea rdx, [rsp + 0x60]
call qword [rax + 0x20]
lea rax, [0x1403d9518]
movzx ebx, byte [rsp + 0x4f]
mov r8, rbx
shl r8, 2
add r8, qword [rax + rsi*8]
add r8, r14
mov rax, qword [rdi + 0x90]
sub rax, r12
cmp rax, r8
jb 0x1401b5a6f
movq xmm0, qword [rsp + 0x48]
movzx eax, byte [rsp + 0x4e]
movzx edx, word [rsp + 0x4c]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
test dl, 1
mov qword [rsp + 0x20], r13
jne case.0x1401b4e77.4
cmp cl, 3
movzx eax, al
cmovb eax, ecx
jmp case.0x1401b55d8.3
lea rdx, [0x14030aff8]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov al, 8
jmp case.0x1401b55d8.3
mov ebp, dword [r14 + rcx*4 + 0x18]
lea rax, [rcx + 3]
mov qword [r14 + 0x110], rax
cmp rcx, 0x3d
jne 0x1401b5266
mov rcx, r14
add rcx, 0x120
mov rax, qword [r14 + 0x158]
test rax, rax
jle 0x1401b5acd
cmp qword [r14 + 0x160], 0
js 0x1401b5acd
add rax, 0xffffffffffffff00
mov qword [r14 + 0x158], rax
add dword [rax], eax
add byte [rcx + rcx*4 - 0x1e], cl
mov edx, esp
call fcn.140178cb0
jmp 0x1401b5ad5
mov al, 9
jmp case.0x1401b55d8.3
mov al, 0xa
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pxor xmm1, xmm1
pcmpeqb xmm1, xmm0
movmskps ecx, xmm1
test cl, 8
sete dl
test cl, 4
sete r8b
test cl, 2
sete r13b
xor r9d, r9d
test cl, 1
sete r9b
shl r9d, 7
shl r13b, 6
shl r8b, 5
shl dl, 4
or r13b, r9b
or r13b, r8b
or r13b, dl
test rsi, rsi
je 0x1401b5698
cmp rsi, 1
jne 0x1401b569d
mov cl, 0x7e
jmp 0x1401b569f
mov ecx, r14d
jmp 0x1401b569f
mov cl, 0x7f
mov r15, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0xe8], rdx
mov r11d, dword [rsp + 0x50]
or r13b, al
test bl, bl
setne bpl
shl bpl, 7
or bpl, cl
mov rax, qword [rdi + 0x90]
mov r12, qword [rdi + 0x98]
sub rax, r12
cmp rax, 1
jbe 0x1401b5a88
mov rax, qword [rdi + 0x88]
mov byte [rax + r12], r13b
mov byte [rax + r12 + 1], bpl
add r12, 2
mov qword [rdi + 0x98], r12
test rsi, rsi
je 0x1401b5732
cmp rsi, 1
mov r13, qword [rsp + 0x20]
jne 0x1401b5740
mov esi, r14d
rol si, 8
mov rcx, qword [rdi + 0x90]
sub rcx, r12
cmp rcx, 1
jbe 0x1401b5bb9
mov word [rax + r12], si
add r12, 2
jmp 0x1401b5762
mov r13, qword [rsp + 0x20]
test bl, bl
jne 0x1401b5771
jmp 0x1401b598f
mov rsi, r14
bswap rsi
mov rcx, qword [rdi + 0x90]
sub rcx, r12
cmp rcx, 7
jbe 0x1401b5be7
mov qword [rax + r12], rsi
add r12, 8
mov qword [rdi + 0x98], r12
test bl, bl
je 0x1401b598f
mov rcx, qword [rdi + 0x90]
sub rcx, r12
cmp rcx, 3
jbe 0x1401b5adc
mov dword [rax + r12], r11d
add r12, 4
mov qword [rdi + 0x98], r12
test bl, 1
je 0x1401b598f
lea r10, [r15 + 3]
and r10, 0xfffffffffffffffc
sub r10, r15
mov rax, r14
sub rax, r10
jae 0x1401b57d6
lea r8, [0x1403d7910]
xor r9d, r9d
mov r10, r14
mov rax, r8
xor edx, edx
mov dword [rsp + 0x2c], r11d
mov dword [rsp + 0x60], r11d
test r10, r10
jne 0x1401b5800
jmp 0x1401b58ca
lea r8, [r15 + r10]
mov r9, rax
shr r9, 2
mov edx, eax
and edx, 3
and rax, 0xfffffffffffffffc
add rax, r8
mov dword [rsp + 0x2c], r11d
mov dword [rsp + 0x60], r11d
test r10, r10
je 0x1401b58ca
lea rcx, [r15 + r10]
mov rbx, r15
not rbx
add rbx, rcx
mov r11, r10
xor esi, esi
and r11, 3
je 0x1401b5861
nop dword [rax + rax]
movzx ebp, byte [rsp + rsi + 0x60]
xor byte [r15 + rsi], bpl
inc rsi
cmp r11, rsi
jne 0x1401b5820
lea r11, [r15 + rsi]
cmp rbx, 3
jae 0x1401b586a
jmp 0x1401b58ca
mov rdx, r12
call fcn.1402f2d30
mov ebp, dword [r14 + 0x10]
mov qword [r14 + 0x110], 1
mov eax, 1
jmp 0x1401b5266
mov r11, r15
cmp rbx, 3
jb 0x1401b58ca
lea ebx, [rsi - 1]
and ebx, 3
mov r13d, esi
and r13d, 3
inc esi
and esi, 3
movzx ebp, byte [rsp + r13 + 0x60]
xor r13, 2
movzx r13d, byte [rsp + r13 + 0x60]
movzx ebx, byte [rsp + rbx + 0x60]
shl ebx, 8
or ebx, r13d
mov r13, qword [rsp + 0x20]
movzx esi, byte [rsp + rsi + 0x60]
shl esi, 8
or esi, ebp
movd xmm0, esi
pinsrw xmm0, ebx, 1
nop
movd xmm1, dword [r11]
pxor xmm1, xmm0
movd dword [r11], xmm1
lea rsi, [r11 + 4]
mov r11, rsi
cmp rsi, rcx
jne 0x1401b58b0
mov ecx, r10d
shl ecx, 3
mov esi, dword [rsp + 0x2c]
mov r11d, esi
ror r11d, cl
test r10b, 3
cmove r11d, esi
test r9, r9
je 0x1401b596c
lea rcx, [r9 - 1]
movabs r10, 0x3fffffffffffffff
and r10, rcx
mov rcx, r8
cmp r10, 7
jb 0x1401b5950
inc r10
mov rsi, r10
and rsi, 0xfffffffffffffff8
lea rcx, [r8 + rsi*4]
movd xmm0, r11d
pshufd xmm0, xmm0, 0
xor ebx, ebx
nop
movdqu xmm1, xmmword [r8 + rbx*4]
movdqu xmm2, xmmword [r8 + rbx*4 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [r8 + rbx*4], xmm1
movdqu xmmword [r8 + rbx*4 + 0x10], xmm2
add rbx, 8
cmp rsi, rbx
jne 0x1401b5920
cmp r10, rsi
je 0x1401b596c
lea r8, [r8 + r9*4]
nop word cs:[rax + rax]
xor dword [rcx], r11d
add rcx, 4
cmp rcx, r8
jne 0x1401b5960
test rdx, rdx
je 0x1401b598f
xor byte [rax], r11b
cmp edx, 1
je 0x1401b598f
mov ecx, r11d
shr ecx, 8
xor byte [rax + 1], cl
cmp edx, 2
je 0x1401b598f
shr r11d, 0x10
xor byte [rax + 2], r11b
mov rax, qword [rdi + 0x90]
sub rax, r12
cmp rax, r14
jb 0x1401b5aaf
mov rcx, qword [rdi + 0x88]
add rcx, r12
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcpy
add r12, r14
mov qword [rdi + 0x98], r12
cmp qword [rsp + 0xe8], 0
je 0x1401b59dd
mov rcx, qword [0x1403f6548]
xor edx, edx
mov r8, r15
call fcn.140302ad4
cmp r12, qword [rdi + 0xa8]
jbe 0x1401b5a20
lea rdx, [rdi + 0x48]
lea rcx, [rsp + 0x60]
mov r8, qword [rsp + 0xf0]
call fcn.1401b4780
cmp qword [rsp + 0x60], 5
jne 0x1401b5a29
mov rbx, qword [rsp + 0x68]
cmp byte [rdi + 0xf9], 2
jae 0x1401b5a51
mov qword [r13], 5
mov qword [r13 + 8], rbx
jmp 0x1401b5a3c
mov qword [rsp + 0x60], 0xf
lea rdx, [rsp + 0x60]
mov r8d, 0x88
mov rcx, r13
call sub.msvcrt.dll_memcpy
nop
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ebx
and eax, 3
lea rcx, [0x14030b008]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rbx + 0x10]
jmp 0x1401b5b7c
lea rcx, [rdi + 0x88]
mov rdx, r12
call fcn.1400f68e0
movzx ebx, byte [rsp + 0x4f]
jmp 0x1401b559d
lea rcx, [rdi + 0x88]
mov r8d, 2
mov rdx, r12
mov r12d, r11d
call fcn.1400f68e0
mov r11d, r12d
mov r12, qword [rdi + 0x98]
jmp 0x1401b56e1
lea rcx, [rdi + 0x88]
mov rdx, r12
mov r8, r14
call fcn.1400f68e0
mov r12, qword [rdi + 0x98]
jmp 0x1401b59a2
mov rdx, r12
call fcn.1402f2d30
xor eax, eax
jmp 0x1401b5266
lea rcx, [rdi + 0x88]
mov r8d, 4
mov rdx, r12
mov edx, esp
mov esi, r11d
call fcn.1400f68e0
mov r11d, esi
mov rax, qword [rdi + 0x88]
mov byte [rax], al
add byte [rax], al
mov byte [rax], al
add byte [rax], al
mov r12, qword [rdi + 0x98]
jmp 0x1401b5785
xor eax, eax
cmp byte [rbx + 0xf], 3
setne al
lea rax, [rax + rax + 3]
mov qword [r13], rax
mov qword [r13 + 8], rbx
jne 0x1401b5a3c
lea rsi, [rbx - 1]
mov rdi, qword [rbx - 1]
mov rbx, qword [rbx + 7]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1401b5b5a
cmp qword [rbx + 0x10], 0x11
jb 0x1401b5b49
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1403f6548]
xor edx, edx
mov r8, rdi
call fcn.140302ad4
mov rcx, qword [0x1403f6548]
xor edx, edx
mov r8, rsi
call fcn.140302ad4
jmp 0x1401b5a3c
add byte [rcx], dh
ror byte [rcx - 0x77], cl
invalid
mov rcx, rbx
shr rcx, 0x20
call fcn.140290850
invalid
lodsb al, byte [rsi]
invalid
invalid
xor ecx, ecx
cmp al, 3
setne cl
lea rax, [rcx*2 + 3]
add byte [rax], al
add byte [rcx - 0x77], cl
add byte [r9 - 0x77], r9b
pop rbp
or cl, ch
movsb byte [rdi], byte [rsi]
invalid
invalid
invalid
add byte [rax], al
add byte [rcx - 0x77], cl
add byte [r9 - 0x77], r9b
pop rbp
or cl, ch
movsb byte [rdi], byte [rsi]
invalid
lea rcx, [rdi + 0x88]
mov r8d, 2
mov rdx, r12
mov ebp, r11d
call fcn.1400f68e0
mov r11d, ebp
mov rax, qword [rdi + 0x88]
mov r12, qword [rdi + 0x98]
jmp 0x1401b5727
lea rcx, [rdi + 0x88]
mov r8d, 8
mov rdx, r12
mov ebp, r11d
call fcn.1400f68e0
mov r11d, ebp
mov rax, qword [rdi + 0x88]
mov r12, qword [rdi + 0x98]
jmp 0x1401b575a
and al, 0x48
test dword [rbx + 0x21], edx
add byte [rax], al
mov dh, 0x47
adc bl, ch
or al, 0x48
mov ecx, edi
invalid
or byte [rax], al
add byte [rax], al
add byte [rax], al
mov eax, r15d
add byte [rax], al
and al, 0xd0
add al, 0
add byte [rax - 0x77], cl
mov word [rax + rbx*8], fs
add al, 0
add byte [rcx + rcx*4 - 0x7c], cl
and al, 0xe0
add al, 0
add byte [rcx + rcx*4 - 0x54], cl
and al, 0xe8
add al, 0
add byte [rbx - 0x7af0fa05], al
xlatb
sti
invalid
shr al, cl
setg byte [rax + rax]
add byte [rax], al
add byte [rax], al
add byte [rax - 0x77], cl
test byte [rax + rsi*4], ah
add dword [rax], eax
add byte [rcx - 0x7d], al
cmp ebp, 5
invalid
test ecx, edi
clc
add byte [rdx + 0x63], cl
or al, 0xb0
dec dword [rdi]
or ecx, dword [rax - 0x77]
mov esi, eax
invalid
add byte [rax - 0x77], cl
int1
call fcn.140303060
ud2
cmp rax, 5
je 0x1401b9b6e
invalid
cmp eax, 0xf
jne 0x1401b9ba8
mov qword [rdi], 0xf
add rsp, 0xa8
mov rcx, qword [rsi + 8]
mov eax, ecx
and eax, 3