Function at 0x1800077b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rdx
mov qword [rbp - 0x11], rdx
mov r14, rcx
cmp byte [rcx + 0x5d], 0
jne 0x180007932
mov r10, qword [rcx + 0x10]
mov rdx, qword [rcx + 8]
mov rax, r10
sub rax, rdx
cmp rax, 2
jb 0x180007932
xor r13d, r13d
mov edi, 4
lea esi, [rdi + 4]
movzx r9d, byte [rdx]
movzx ebx, r9b
shr bl, 7
mov byte [rbp - 0x75], bl
and r9d, 0xf
mov dword [rbp - 0x71], r9d
movzx r8d, byte [rdx + 1]
movzx eax, r8b
shr al, 7
movzx r11d, al
mov byte [rbp - 0x74], r11b
and r8d, 0x7f
mov dword [rbp - 0x6d], r8d
mov ecx, r13d
cmp r8d, 0x7f
cmove ecx, esi
mov eax, 2
cmp r8d, 0x7e
cmove eax, edi
add ecx, eax
lea eax, [rcx + r11*4]
mov dword [rbp - 0x79], eax
sub r10, rdx
mov r12d, eax
cmp r10, r12
jb 0x180007932
mov rcx, r13
cmp r8d, 0x7e
jae 0x180007889
mov esi, r8d
mov qword [rbp - 0x69], rsi
lea ecx, [rdi - 2]
jmp 0x18000795d
jne 0x1800078a6
movzx esi, byte [rdx + 2]
shl rsi, 8
movzx eax, byte [rdx + 3]
or rsi, rax
mov qword [rbp - 0x69], rsi
mov rcx, rdi
jmp 0x18000795d
cmp r8d, 0x7f
jne 0x180007959
movzx esi, byte [rdx + 2]
shl rsi, 8
movzx eax, byte [rdx + 3]
or rsi, rax
shl rsi, 8
movzx eax, byte [rdx + 4]
or rsi, rax
shl rsi, 8
movzx eax, byte [rdx + 5]
or rsi, rax
shl rsi, 8
movzx eax, byte [rdx + 6]
or rsi, rax
shl rsi, 8
movzx eax, byte [rdx + 7]
or rsi, rax
shl rsi, 8
movzx eax, byte [rdx + 8]
or rsi, rax
shl rsi, 8
movzx eax, byte [rdx + 9]
or rsi, rax
mov qword [rbp - 0x69], rsi
lea ecx, [r8 - 0x75]
jge 0x18000795d
mov byte [r14 + 0x5d], 1
lea ecx, [r8 - 0x7d]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR:_Frame_has_invalid_frame_length._Closing._n
call fcn.180006900
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18009ce50
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rbp - 0x69]
test r11b, r11b
je 0x180007983
movzx eax, byte [rcx + rdx]
mov byte [rbp - 0x61], al
movzx eax, byte [rcx + rdx + 1]
mov byte [rbp - 0x60], al
movzx eax, byte [rcx + rdx + 2]
mov byte [rbp - 0x5f], al
movzx eax, byte [rcx + rdx + 3]
mov byte [rbp - 0x5e], al
jmp 0x18000798a
mov dword [rbp - 0x61], 0
lea rax, [r12 + rsi]
cmp r10, rax
jb 0x180007932
cmp r9d, 2
jbe 0x180007b42
cmp r9d, 9
jne 0x180007afc
test r11b, r11b
je 0x1800079e2
mov rax, r13
test rsi, rsi
je 0x1800079e2
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [r14 + 8]
add r8, r12
movzx edx, byte [r8 + rax]
mov rcx, rax
and ecx, 3
xor dl, byte [rbp + rcx - 0x61]
mov byte [r8 + rax], dl
inc rax
cmp rax, rsi
jne 0x1800079c0
mov rdi, qword [r14 + 8]
add rdi, r12
lea rbx, [rdi + rsi]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], reloc.WS2_32.dll_ntohs
mov byte [rbp - 1], 0
mov rdx, rbx
sub rdx, rdi
lea rcx, [rbp - 1]
call fcn.18000b250
lea rax, [rbp - 1]
mov qword [rbp - 0x29], rax
cmp rdi, rbx
je 0x180007a72
nop word [rax + rax]
movzx r9d, byte [rdi]
mov rcx, qword [rbp + 0xf]
mov rdx, qword [rbp + 0x17]
cmp rcx, rdx
jae 0x180007a61
lea rax, [rcx + 1]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 1]
cmp rdx, 0x10
cmovae rax, qword [rbp - 1]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180007a6a
lea rcx, [rbp - 1]
call fcn.18000c100
inc rdi
cmp rdi, rbx
jne 0x180007a30
mov qword [rbp - 0x29], r13
lea rax, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rax, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
add rax, r8
lea r9, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae r9, qword [rbp - 1]
mov qword [rsp + 0x20], rax
mov edx, 0xa
mov rcx, r14
call fcn.1800096f0
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x180007ae7
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007ae2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007d6e
call fcn.18009d5c8
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], reloc.WS2_32.dll_ntohs
mov byte [rbp - 1], 0
jmp 0x180007d27
cmp r9d, 0xa
je 0x180007d27
cmp r9d, 8
jne 0x180007b1a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
jmp 0x180007d27
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR:_Got_unexpected_WebSocket_message._n
call fcn.180006900
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
jmp 0x180007d27
test r11b, r11b
je 0x180007b72
mov r8, r13
test rsi, rsi
je 0x180007b72
nop
mov rdx, qword [r14 + 8]
add rdx, r12
movzx ecx, byte [rdx + r8]
mov rax, r8
and eax, 3
xor cl, byte [rbp + rax - 0x61]
mov byte [rdx + r8], cl
inc r8
cmp r8, rsi
jne 0x180007b50
lea rdi, [r14 + 0x38]
mov r8, qword [r14 + 8]
add r8, r12
lea r9, [r8 + rsi]
mov rdx, qword [r14 + 0x40]
mov rcx, rdi
call fcn.18000a8a0
test bl, bl
je 0x180007d27
mov rax, qword [r15]
mov rax, qword [rax]
mov qword [rbp - 9], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r13
mov r13, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rbp - 0x21], rax
cmp r13, rax
je 0x180007c4f
mov r15, rax
sub r15, r13
cmp r15, 0x1000
jb 0x180007bfa
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x180007d83
call fcn.18009d58c
mov rcx, rax
test rax, rax
je 0x180007d75
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180007c0b
test r15, r15
je 0x180007c09
mov rcx, r15
call fcn.18009d58c
jmp 0x180007c0b
xor eax, eax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
add rax, r15
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x19], rax
mov rbx, qword [rbp - 0x59]
mov r8, r15
mov rdx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
sub rbx, r13
mov rax, qword [rbp - 0x21]
add rax, rbx
mov qword [rbp - 0x51], rax
xor r13d, r13d
mov qword [rbp - 0x19], r13
mov r15, qword [rbp - 0x11]
jmp 0x180007c52
xor r13d, r13d
lea rdx, [rbp - 0x59]
mov rcx, r15
call qword [rbp - 9]
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x180007ca3
mov rdx, qword [rbp - 0x49]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007d75
call fcn.18009d5c8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r13
mov rax, qword [rdi]
cmp rax, qword [r14 + 0x40]
je 0x180007cb0
mov qword [r14 + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r13
mov rcx, r13
mov rdx, r13
lea rax, [rbp - 0x41]
cmp rax, rdi
je 0x180007ced
mov rcx, qword [rdi]
mov qword [rbp - 0x41], rcx
mov qword [rdi], r13
mov rax, qword [rdi + 8]
mov qword [rbp - 0x39], rax
mov qword [rdi + 8], r13
mov rdx, qword [rdi + 0x10]
mov qword [rbp - 0x31], rdx
mov qword [rdi + 0x10], r13
test rcx, rcx
je 0x180007d27
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180007d16
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180007d7c
mov rcx, r8
call fcn.18009d5c8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r13
mov rdi, qword [r14 + 8]
lea rdx, [rdi + r12]
add rdx, rsi
cmp rdi, rdx
je 0x180007d51
mov rbx, qword [r14 + 0x10]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [r14 + 0x10], rax
mov r10, qword [r14 + 0x10]
mov rdx, qword [r14 + 8]
mov rax, r10
sub rax, rdx
cmp rax, 2
jb 0x180007932
jmp 0x180007809
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180006d70
int3