Function at 0x1400d7cf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
lea rax, [rsp + 0x90]
mov qword [rsp + 0x148], rdx
mov rdi, rcx
lea rdx, [rsp + 0x98]
movq xmm6, rax
mov rax, qword [0x1401477c8]
movq xmm0, rdx
punpcklqdq xmm6, xmm0
test rax, rax
je 0x1400d80a0
mov rbx, qword [rax]
test rbx, rbx
je 0x1400d7d50
mov rbx, qword [rbx + 0x10]
mov dword [rsp + 0x34], 2
lea r12, [rsp + 0xa0]
lea rbp, [rsp + 0xb0]
nop dword [rax + rax]
mov r9, r12
mov r8, rbp
mov edx, 2
mov rcx, rdi
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0xa8], 0
call sym.WebSocket_getRawSocketData
cmp dword [rsp + 0xa0], 0xffffffff
je 0x1400d8208
test rax, rax
je 0x1400d8070
cmp qword [rsp + 0xb0], 1
jbe 0x1400d8070
movzx r13d, byte [rax]
mov edx, r13d
and edx, 0xf
je 0x1400d7de8
movsx edx, dl
lea ecx, [rdx - 3]
cmp ecx, 4
jbe 0x1400d8208
cmp edx, 0xa
ja 0x1400d8208
mov dword [rsp + 0x34], edx
movsx esi, byte [rax + 1]
mov r10d, esi
shr esi, 0x1f
and r10d, 0x7f
cmp r10b, 0x7e
je 0x1400d7fe8
cmp r10b, 0x7f
je 0x1400d8030
movsx r14, r10b
test esi, esi
je 0x1400d7e4b
mov r9, r12
mov r8, rbp
mov edx, 4
mov rcx, rdi
call sym.WebSocket_getRawSocketData
cmp dword [rsp + 0xa0], 0xffffffff
je 0x1400d8208
test rax, rax
je 0x1400d8208
cmp qword [rsp + 0xb0], 3
jbe 0x1400d8070
mov r9, r12
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call sym.WebSocket_getRawSocketData
cmp dword [rsp + 0xa0], 0xffffffff
mov r15, rax
je 0x1400d8208
test rax, rax
je 0x1400d8208
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
cmp rcx, r14
jb 0x1400d8070
test esi, esi
jne 0x1400d7fa0
add rcx, 0x10
test rbx, rbx
je 0x1400d7f68
mov rsi, qword [rbx]
lea rdx, [rsi + rcx]
mov rcx, rbx
call sym.realloc
mov rbx, rax
test rax, rax
je 0x1400d81e0
mov r8, qword [rsp + 0xb0]
lea rcx, [rsi + 0x10]
mov rax, qword [0x1401477c8]
test rax, rax
je 0x1400d7ede
mov rax, qword [rax]
test rax, rax
je 0x1400d7ede
mov qword [rax + 0x10], rbx
add rcx, rbx
mov rdx, r15
call sym.memcpy
xor edx, edx
mov r9, r12
mov r8, rbp
add rsi, qword [rsp + 0xb0]
mov rcx, rdi
mov qword [rbx], rsi
call sym.WebSocket_getRawSocketData
cmp dword [rsp + 0xa0], 0xffffffff
je 0x1400d8208
test r13b, r13b
jns 0x1400d7d70
mov esi, dword [rsp + 0x34]
lea eax, [rsi - 9]
cmp eax, 1
jbe 0x1400d80b1
cmp dword [rsp + 0x34], 8
je 0x1400d81ea
mov rcx, qword [0x1401477c8]
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x1400d80c5
mov rdi, qword [rsp + 0x148]
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov qword [rdi], rax
xor eax, eax
jmp 0x1400d8080
mov qword [rsp + 0x38], r8
call sym.malloc
mov r8, qword [rsp + 0x38]
test rax, rax
mov rbx, rax
je 0x1400d81e0
mov qword [rax + 8], 0
mov ecx, 0x10
xor esi, esi
jmp 0x1400d7ec6
test r14, r14
je 0x1400d7e92
mov eax, 1
cmp r14, 1
je 0x1400d7fdb
nop dword [rax]
mov rdx, rax
and edx, 3
movzx edx, byte [rsp + rdx + 0xa8]
xor byte [r15 + rax], dl
add rax, 1
cmp r14, rax
jne 0x1400d7fb8
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
jmp 0x1400d7e92
mov r9, r12
mov r8, rbp
mov edx, 2
mov rcx, rdi
call sym.WebSocket_getRawSocketData
cmp dword [rsp + 0xa0], 0xffffffff
je 0x1400d8208
test rax, rax
je 0x1400d8208
cmp qword [rsp + 0xb0], 1
jbe 0x1400d8070
movzx ecx, word [rax]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r14d, ax
jmp 0x1400d7e0e
mov r9, r12
mov r8, rbp
mov edx, 8
mov rcx, rdi
call sym.WebSocket_getRawSocketData
cmp dword [rsp + 0xa0], 0xffffffff
je 0x1400d8208
test rax, rax
je 0x1400d8208
cmp qword [rsp + 0xb0], 7
jbe 0x1400d8070
mov r14, qword [rax]
bswap r14
jmp 0x1400d7e0e
mov qword [0x1401477b0], 0
mov eax, 0xffffffea
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.ListInitialize
mov qword [0x1401477c8], rax
jmp 0x1400d7d44
cmp esi, 9
je 0x1400d80e0
mov rcx, rbx
xor ebx, ebx
call sym.free
jmp 0x1400d7d70
mov r8, qword [rbx]
mov rdx, rbx
add r8, 0x10
call sym.ListAppend
jmp 0x1400d7f48
lea rdx, [rbx + 0x10]
mov rax, qword [rbx]
mov qword [rsp + 0x90], rdx
mov edx, dword [rdi + 0x30]
mov qword [rsp + 0x98], rax
test edx, edx
je 0x1400d80b6
mov qword [rsp + 0x28], rbp
mov r9, r12
lea rcx, [rsp + 0x70]
mov rdx, rdi
lea rax, [rsp + 0x8c]
mov r8d, 0xa
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0xd0], 0
movups xmmword [rsp + 0xb8], xmm6
call sym.WebSocket_buildFrame.constprop.0
mov rsi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
lea r8, str.Sending_WebSocket_PONG
mov edx, 1
mov ecx, 4
call sym.Log
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8, r13
movdqa xmm1, xmmword [rsp + 0xb0]
mov rax, qword [rsp + 0xd0]
mov rdx, rsi
movdqa xmm2, xmmword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x50], xmm2
call sym.Socket_putdatas
mov rcx, rsi
call sym.free
jmp 0x1400d80b6
mov eax, 0xffffff9d
jmp 0x1400d8080
mov rcx, rbx
call sym.free
xor r8d, r8d
mov edx, 0x3e9
mov rcx, rdi
call sym.WebSocket_close
nop word [rax + rax]
mov eax, 0xffffffff
jmp 0x1400d8080