Function at 0x140041bc0
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, 0x98
mov rax, qword [0x14011c358]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rax, qword [rbp + 0x8f]
mov r13d, r9d
movsxd rsi, dword [rbp + 0x87]
mov r14d, r13d
mov r9, qword [rbp + 0x6f]
xorps xmm0, xmm0
mov rdi, qword [rbp + 0x7f]
mov rbx, r8
mov qword [rbp - 0x49], rax
mov r15, rdx
mov eax, r13d
shr r14d, 4
and eax, 0xf
mov r12, rcx
mov dword [rbp - 0x51], eax
mov eax, dword [rbp + 0x77]
movups xmmword [rbp - 0x21], xmm0
cmp eax, 0xc
jne 0x140041c43
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 0x140041c65
lea rcx, [rbp - 0x21]
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.1400410d0
movaps xmm0, xmmword [rbp - 0x21]
lea rax, [rbp - 0x39]
mov r8d, dword [rbp + 0x97]
mov r9, rbx
mov rdx, qword [rbp - 0x49]
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 - 0x21], xmm0
call fcn.1400410d0
lea r8, [rbp - 0x49]
mov rcx, r12
lea rdx, [rbp - 0x21]
call fcn.14003f360
lea rax, [rbp - 0x49]
xor r8d, r8d
lea rcx, [rbp - 0x39]
or rax, rcx
test al, 7
jne 0x140041cd1
movdqu xmm1, xmmword [rbp - 0x39]
movdqu xmm0, xmmword [rbp - 0x49]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x39], xmm1
jmp 0x140041d1b
lea rcx, [rbp - 0x39]
lea rax, [rbp - 0x3a]
cmp rcx, rax
ja 0x140041d08
lea rcx, [rbp - 0x2a]
lea rax, [rbp - 0x49]
cmp rcx, rax
jb 0x140041d08
mov rcx, r8
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [rbp + rcx - 0x49]
xor byte [rbp + rcx - 0x39], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140041cf3
jmp 0x140041d1b
movdqu xmm1, xmmword [rbp - 0x39]
movdqu xmm0, xmmword [rbp - 0x49]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, r8d
test esi, esi
jle 0x140041e05
lea rax, [rbp - 0x39]
cmp esi, 8
jb 0x140041dc6
mov rdx, rsi
xorps xmm4, xmm4
and rdx, 0xfffffffffffffff8
xorps xmm3, xmm3
sub rdi, rax
xorps xmm0, xmm0
lea rax, [rbp - 0x39]
add rax, r8
add ecx, 8
add r8, 8
movd xmm2, dword [rdi + rax]
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 [rax + rdi + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r8, rdx
jl 0x140041d43
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, esi
jge 0x140041df6
jmp 0x140041dc9
sub rdi, rax
movsxd rax, ecx
lea rdx, [rbp - 0x39]
add rdx, rax
sub esi, ecx
mov r9d, esi
nop dword [rax + rax]
movzx ecx, byte [rdi + rdx]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, eax
or r8d, ecx
sub r9, 1
jne 0x140041de0
test r8d, r8d
je 0x140041e05
mov eax, 0xffffff4c
jmp 0x140041f18
mov edi, recv
test r14d, r14d
je 0x140041ed1
lea rsi, [rbp - 0x3a]
neg rsi
nop word [rax + rax]
dec r14d
mov rax, rdi
add byte [rbp + rax - 0x21], 1
jne 0x140041e36
dec rax
cmp rax, 0xc
jge 0x140041e26
lea r8, [rbp - 0x49]
mov rcx, r12
lea rdx, [rbp - 0x21]
call fcn.14003f360
lea rcx, [rbp - 0x49]
mov rax, rbx
or rax, rcx
test al, 7
jne 0x140041e65
mov rax, qword [rbx]
xor qword [rbp - 0x49], rax
mov rax, qword [rbx + 8]
xor qword [rbp - 0x41], rax
jmp 0x140041eb8
lea r9, [rbx + 0xf]
lea rax, [rbp - 0x49]
cmp rax, r9
ja 0x140041ea6
lea rax, [rbp - 0x3a]
cmp rax, rbx
jb 0x140041ea6
lea rax, [rbp - 0x49]
mov r8d, reloc.WS2_32.dll_recv
nop word [rax + rax]
lea rcx, [r9 + rsi]
movzx edx, byte [rcx + rax]
xor byte [rax], dl
lea rax, [rax + 1]
sub r8, 1
jne 0x140041e90
jmp 0x140041eb8
movdqu xmm0, xmmword [rbp - 0x49]
movdqu xmm1, xmmword [rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [rbp - 0x49]
add rbx, 0x10
movups xmmword [r15], xmm0
add r15, 0x10
test r14d, r14d
jne 0x140041e20
mov esi, dword [rbp - 0x51]
test esi, esi
je 0x140041f16
add byte [rbp + rdi - 0x21], 1
jne 0x140041ee8
dec rdi
cmp rdi, 0xc
jge 0x140041ed8
lea r8, [rbp - 0x49]
mov rcx, r12
lea rdx, [rbp - 0x21]
call fcn.14003f360
mov r8d, esi
lea rcx, [rbp - 0x49]
mov rdx, rbx
call fcn.14003f190
mov r8, rsi
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.14009c440
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14009a320
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret