Function at 0x140042940
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 [0x1403687c8]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rax, qword [rbp + 0x8f]
mov r13d, r9d
movsxd r15, dword [rbp + 0x87]
mov edi, r13d
mov r9, qword [rbp + 0x6f]
xorps xmm0, xmm0
mov rbx, qword [rbp + 0x7f]
mov rsi, r8
mov qword [rbp - 0x31], rax
mov r14, rdx
mov eax, r13d
shr edi, 4
and eax, 0xf
mov r12, rcx
mov dword [rbp - 0x61], eax
mov eax, dword [rbp + 0x77]
movups xmmword [rbp - 0x41], xmm0
cmp eax, 0xc
jne 0x1400429c2
movsd xmm0, qword [r9]
mov eax, dword [r9 + 8]
movsd qword [rbp - 0x41], xmm0
mov dword [rbp - 0x39], eax
mov byte [rbp - 0x32], 1
jmp 0x1400429e4
lea rcx, [rbp - 0x41]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x20], eax
xor edx, edx
call fcn.140041e50
movaps xmm0, xmmword [rbp - 0x41]
lea rax, [rbp - 0x59]
mov r8d, dword [rbp + 0x97]
mov r9, rsi
mov rdx, qword [rbp - 0x31]
mov rcx, r12
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
movdqa xmmword [rbp - 0x41], xmm0
call fcn.140041e50
lea r8, [rbp - 0x21]
mov rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1400400e0
lea rax, [rbp - 0x21]
xor r8d, r8d
lea rcx, [rbp - 0x59]
or rax, rcx
test al, 7
jne 0x140042a50
movdqu xmm1, xmmword [rbp - 0x59]
movdqu xmm0, xmmword [rbp - 0x21]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x59], xmm1
jmp 0x140042a9a
lea rcx, [rbp - 0x59]
lea rax, [rbp - 0x12]
cmp rcx, rax
ja 0x140042a87
lea rcx, [rbp - 0x4a]
lea rax, [rbp - 0x21]
cmp rcx, rax
jb 0x140042a87
mov rcx, r8
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [rbp + rcx - 0x21]
xor byte [rbp + rcx - 0x59], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140042a72
jmp 0x140042a9a
movdqu xmm1, xmmword [rbp - 0x59]
movdqu xmm0, xmmword [rbp - 0x21]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x59], xmm1
mov ecx, r8d
test r15d, r15d
jle 0x140042b95
lea rax, [rbp - 0x59]
cmp r15d, 8
jb 0x140042b54
mov rdx, r15
xorps xmm4, xmm4
and rdx, 0xfffffffffffffff8
xorps xmm3, xmm3
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
lea rax, [rbp - 0x59]
add rax, r8
add ecx, 8
add r8, 8
movd xmm2, dword [rax + rbx]
movd xmm1, dword [rax]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rax + 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rbx + rax + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r8, rdx
jl 0x140042ad0
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd r8d, xmm3
cmp ecx, r15d
jge 0x140042b86
jmp 0x140042b57
sub rbx, rax
movsxd rax, ecx
lea rdx, [rbp - 0x59]
add rdx, rax
sub r15d, ecx
mov r9d, r15d
nop word [rax + rax]
movzx ecx, byte [rbx + rdx]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, eax
or r8d, ecx
sub r9, 1
jne 0x140042b70
test r8d, r8d
je 0x140042b95
mov eax, 0xffffff4c
jmp 0x140042c32
mov ebx, recv
test edi, edi
je 0x140042beb
nop
dec edi
mov rax, rbx
add byte [rbp + rax - 0x41], 1
jne 0x140042bb5
dec rax
cmp rax, 0xc
jge 0x140042ba5
lea r8, [rbp - 0x31]
mov rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1400400e0
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x31]
mov rdx, rsi
call fcn.14003fed0
movups xmm0, xmmword [rbp - 0x31]
add rsi, 0x10
movups xmmword [r14], xmm0
add r14, 0x10
test edi, edi
jne 0x140042ba0
mov edi, dword [rbp - 0x61]
test edi, edi
je 0x140042c30
add byte [rbp + rbx - 0x41], 1
jne 0x140042c02
dec rbx
cmp rbx, 0xc
jge 0x140042bf2
lea r8, [rbp - 0x31]
mov rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1400400e0
mov r8d, edi
lea rcx, [rbp - 0x31]
mov rdx, rsi
call fcn.14003fed0
mov r8, rdi
lea rdx, [rbp - 0x31]
mov rcx, r14
call fcn.140097850
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140095720
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret