Function at 0x1400be7d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
mov rax, qword [0x140126240]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r13, qword [rbp + 0x7f]
mov eax, r9d
mov r9, qword [rbp + 0x6f]
mov esi, eax
mov dword [rbp - 0x61], eax
mov r12, rcx
mov rcx, qword [rbp + 0x8f]
and eax, 0xf
mov dword [rbp - 0x5d], eax
xor edi, edi
mov eax, dword [rbp + 0x77]
mov r15, r8
shr esi, 4
mov r14, rdx
mov qword [rbp - 0x59], rcx
cmp eax, 0xc
jne 0x1400be848
movsd xmm0, qword [r9]
mov eax, dword [r9 + 8]
movsd qword [rbp - 0x41], xmm0
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x35], 0x1000000
jmp 0x1400be886
mov ebx, dword [r12 + 0x144]
lea rcx, [rbp - 0x41]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
xor r8d, r8d
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, r12
mov dword [r12 + 0x144], edi
mov dword [rsp + 0x20], eax
call fcn.1400be160
mov rcx, qword [rbp - 0x59]
mov dword [r12 + 0x144], ebx
mov ebx, dword [rbp + 0x97]
lea rax, [rbp - 0x51]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rdx, rcx
mov qword [rsp + 0x28], rax
mov r9, r15
mov eax, dword [rbp - 0x61]
mov r8d, ebx
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.1400be160
lea r8, [rbp - 0x31]
mov rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1400bafb0
test eax, eax
jne 0x1400bead5
lea rax, [rbp - 0x31]
lea rcx, [rbp - 0x51]
or rax, rcx
test al, 7
jne 0x1400be8f0
movdqu xmm1, xmmword [rbp - 0x51]
movdqu xmm0, xmmword [rbp - 0x31]
xorps xmm1, xmm0
movdqu xmmword [rbp - 0x51], xmm1
jmp 0x1400be939
lea rcx, [rbp - 0x51]
lea rax, [rbp - 0x22]
cmp rcx, rax
ja 0x1400be927
lea rcx, [rbp - 0x42]
lea rax, [rbp - 0x31]
cmp rcx, rax
jb 0x1400be927
mov rcx, rdi
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [rbp + rcx - 0x31]
xor byte [rbp + rcx - 0x51], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400be912
jmp 0x1400be939
movdqu xmm1, xmmword [rbp - 0x51]
movdqu xmm0, xmmword [rbp - 0x31]
xorps xmm1, xmm0
movdqu xmmword [rbp - 0x51], xmm1
test r14, r14
jne 0x1400be946
mov dword [r12 + 0x144], ebx
mov ebx, recvfrom
test esi, esi
je 0x1400be99c
nop
dec esi
mov rax, rbx
add byte [rbp + rax - 0x41], 1
jne 0x1400be965
dec rax
cmp rax, 0xc
jge 0x1400be955
lea r8, [rbp - 0x21]
mov rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1400bafb0
test eax, eax
jne 0x1400bead5
lea r9d, [rax + 0x10]
mov r8, r15
lea rdx, [rbp - 0x21]
mov rcx, r14
call fcn.1400bad60
add r14, 0x10
add r15, 0x10
test esi, esi
jne 0x1400be950
mov esi, dword [rbp - 0x5d]
test esi, esi
je 0x1400be9e9
add byte [rbp + rbx - 0x41], 1
jne 0x1400be9b3
dec rbx
cmp rbx, 0xc
jge 0x1400be9a3
lea r8, [rbp - 0x21]
mov rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1400bafb0
test eax, eax
jne 0x1400bead5
mov r8d, esi
lea rcx, [rbp - 0x21]
mov rdx, r15
call fcn.1400ad320
mov r8, rsi
lea rdx, [rbp - 0x21]
mov rcx, r14
call fcn.1400f7100
movsxd r8, dword [rbp + 0x87]
mov ecx, edi
test r8d, r8d
jle 0x1400beac6
lea rax, [rbp - 0x51]
cmp r8d, 8
jb 0x1400bea9e
mov rdx, r8
xorps xmm4, xmm4
and rdx, 0xfffffffffffffff8
xorps xmm3, xmm3
sub r13, rax
nop dword [rax]
xorps xmm0, xmm0
lea rax, [rbp - 0x51]
add rax, rdi
add ecx, 8
add rdi, 8
movd xmm2, dword [rax + r13]
movd xmm1, dword [rax]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rax + 4]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rax + r13 + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp rdi, rdx
jl 0x1400bea20
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd edi, xmm3
cmp ecx, r8d
jge 0x1400beac6
jmp 0x1400beaa1
sub r13, rax
movsxd rax, ecx
lea rdx, [rbp - 0x51]
add rdx, rax
sub r8d, ecx
nop
movzx ecx, byte [rdx + r13]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, eax
or edi, ecx
sub r8, 1
jne 0x1400beab0
neg edi
shr edi, 0x1f
neg edi
and edi, 0xffffff4c
mov eax, edi
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1400ccc80
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret