Function at 0x140131820
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, 0xb8
mov rax, qword [0x14030a100]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r12, qword [rbp + 0x7f]
mov eax, r9d
mov r9, qword [rbp + 0x6f]
mov esi, eax
mov r13d, eax
shr esi, 4
and r13d, 0xf
mov dword [rbp - 0x71], eax
mov eax, dword [rbp + 0x77]
mov r15, rcx
mov rcx, qword [rbp + 0x8f]
xorps xmm0, xmm0
mov qword [rbp - 0x51], r8
mov rdi, r8
mov qword [rbp - 0x61], rdx
mov r14, rdx
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x59], rcx
movups xmmword [rbp - 0x21], xmm0
cmp eax, 0xc
jne 0x1401318a7
movsd xmm0, qword [r9]
mov eax, dword [r9 + 8]
movsd qword [rbp - 0x21], xmm0
mov dword [rbp - 0x19], eax
mov byte [rbp - 0x12], 1
jmp 0x1401318e2
mov ebx, dword [r15 + 0x144]
lea rcx, [rbp - 0x21]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
xor r8d, r8d
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, r15
mov dword [r15 + 0x144], 0
mov dword [rsp + 0x20], eax
call fcn.140131050
mov dword [r15 + 0x144], ebx
movaps xmm0, xmmword [rbp - 0x21]
mov ebx, recv
movdqa xmmword [rbp - 0x31], xmm0
test esi, esi
je 0x1401319b0
lea r12, [rbp - 0x3a]
neg r12
nop
dec esi
mov rax, rbx
add byte [rbp + rax - 0x31], 1
jne 0x140131915
dec rax
cmp rax, 0xc
jge 0x140131905
lea r8, [rbp - 0x49]
mov rcx, r15
lea rdx, [rbp - 0x31]
call fcn.14012f2b0
lea rcx, [rbp - 0x49]
mov rax, rdi
or rax, rcx
test al, 7
jne 0x140131944
mov rax, qword [rdi]
xor qword [rbp - 0x49], rax
mov rax, qword [rdi + 8]
xor qword [rbp - 0x41], rax
jmp 0x140131994
lea rcx, [rdi + 0xf]
lea rax, [rbp - 0x49]
cmp rax, rcx
ja 0x140131983
lea rax, [rbp - 0x3a]
cmp rax, rdi
jb 0x140131983
lea rax, [rbp - 0x49]
mov edx, reloc.WS2_32.dll_recv
lea r8, [rcx + r12]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140131970
jmp 0x140131994
movdqu xmm0, xmmword [rbp - 0x49]
movdqu xmm1, xmmword [rdi]
xorps xmm1, xmm0
movdqu xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [rbp - 0x49]
add rdi, 0x10
movups xmmword [r14], xmm0
add r14, 0x10
test esi, esi
jne 0x140131900
mov r12, qword [rbp - 0x69]
test r13d, r13d
je 0x1401319f3
add byte [rbp + rbx - 0x31], 1
jne 0x1401319c5
dec rbx
cmp rbx, 0xc
jge 0x1401319b5
lea r8, [rbp - 0x49]
mov rcx, r15
lea rdx, [rbp - 0x31]
call fcn.14012f2b0
mov r8d, r13d
lea rcx, [rbp - 0x49]
mov rdx, rdi
call fcn.14011da10
mov r8d, r13d
lea rdx, [rbp - 0x49]
mov rcx, r14
call fcn.140168a90
test r12, r12
je 0x140131a5c
mov ebx, dword [rbp + 0x87]
mov rcx, r15
mov edi, dword [rbp + 0x97]
mov r8d, edi
mov esi, dword [rbp - 0x71]
mov r9, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x59]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], esi
call fcn.140131050
lea r8, [rbp - 0x49]
mov rcx, r15
lea rdx, [rbp - 0x21]
call fcn.14012f2b0
mov r8d, ebx
lea rdx, [rbp - 0x49]
mov rcx, r12
call fcn.14011da10
cmp qword [rbp - 0x51], 0
jne 0x140131a5c
xor eax, eax
test esi, esi
jne 0x140131a5e
mov dword [r15 + 0x144], edi
jmp 0x140131a5e
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14013d5b0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret