Function at 0x140079638
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x140079a30
push rbp
push r15
lea rbp, [rsp - 0x4f]
mov eax, 0xd8
call fcn.140150d80
sub rsp, rax
movaps xmmword [rsp + 0xa0], xmm6
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rbp + 7], rax
cmp dword [0x14022aaf0], 0
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xd0], rsi
movaps xmm6, xmm2
mov qword [rsp + 0xc8], rdi
mov r15d, edx
mov qword [rbp - 0x59], rcx
je 0x1400796eb
lea rcx, [rbp - 0x21]
call fcn.14004d2d0
mov edx, reloc.WS2_32.dll_send
lea r8, [0x140200350]
lea ecx, [rdx - 0xe]
mov r9d, 0xdf
call fcn.14004d570
lea rdx, [rbp - 0x21]
lea rcx, [0x14022af30]
call fcn.14004d2a0
xor edi, edi
lea r8, [0x140200368]
test eax, eax
mov ebx, edi
lea edx, [rdi + 0x13]
sete bl
lea ecx, [rdi + 6]
mov r9d, 0xe1
mov dword [rbp - 0x69], ebx
call fcn.14004d570
test ebx, ebx
jne 0x14007970c
jmp 0x1400796f2
xor edi, edi
mov ebx, edi
mov dword [rbp - 0x69], ebx
mov edx, reloc.WS2_32.dll_select
lea r8, [0x140200380]
mov r9d, 0xe6
lea ecx, [rdx - 9]
call fcn.14004d570
movsxd rcx, dword [0x14022aad8]
mov eax, dword [0x14022aae0]
movups xmm0, xmmword [0x14022af18]
mov r8d, dword [0x14022aae4]
mov dword [rbp - 0x61], eax
mov eax, dword [0x14022af28]
movups xmmword [rbp - 0x11], xmm0
mov rsi, rcx
add ecx, r15d
mov dword [rbp - 1], eax
mov dword [rbp - 0x5d], r8d
mov dword [0x14022aad8], ecx
cmp ecx, 0x3ff
jl 0x14007977c
mov eax, 0x7fdff7fd
mov dword [0x14022aad4], 0x3ff
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3ff
add ecx, eax
mov dword [0x14022aad8], ecx
jmp 0x140079794
mov eax, dword [0x14022aad4]
cmp eax, 0x3ff
jge 0x140079794
cmp ecx, eax
cmovg eax, ecx
mov dword [0x14022aad4], eax
mov eax, 0x66666667
mov ecx, r15d
imul r15d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, edi
test ecx, ecx
setg al
add eax, edx
add r8d, eax
mov dword [0x14022aae4], r8d
test ebx, ebx
jne 0x1400797e0
lea r8, [0x140200398]
lea edx, [rbx + 0x12]
lea ecx, [rbx + 0xa]
mov r9d, 0x106
call fcn.14004d570
lea rcx, [rbp - 0x51]
call fcn.1400829e0
test r15d, r15d
jle 0x140079953
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], r13
lea ecx, [r15 - 1]
mov eax, 0xcccccccd
mov qword [rsp + 0xb0], r14
mov rbx, rsi
mov r12d, reloc.WS2_32.dll_sendto
mul ecx
shr edx, 4
lea r13d, [rdx + 1]
nop word [rax + rax]
mov r14d, r15d
cmp r15d, 0x14
cmovg r14d, r12d
call fcn.14005a4a0
lea rcx, [rbp - 0x51]
mov rdx, rax
xor r8d, r8d
call fcn.140082420
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
mov r8, r12
call fcn.140082680
lea r12d, [rsi - 0x3ff]
movsxd rdx, esi
add r12d, r14d
lea rcx, [rbp - 0x51]
test r12d, r12d
jle 0x14007989d
mov eax, r14d
sub eax, r12d
movsxd r8, eax
lea rax, [0x14022ab00]
add rdx, rax
call fcn.140082680
movsxd r8, r12d
lea rdx, [0x14022ab00]
lea rcx, [rbp - 0x51]
jmp 0x1400798aa
lea rax, [0x14022ab00]
movsxd r8, r14d
add rdx, rax
call fcn.140082680
mov r12, qword [rbp - 0x59]
movsxd r14, r14d
lea rcx, [rbp - 0x51]
mov r8, r14
mov rdx, r12
call fcn.140082680
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
mov r8d, 8
call fcn.140082680
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
xor r8d, r8d
call fcn.140082340
inc dword [rbp - 0x5d]
add r12, r14
mov qword [rbp - 0x59], r12
mov rcx, rdi
test r14, r14
jle 0x140079925
lea rdx, [0x14022ab00]
movzx eax, byte [rbp + rcx - 0x11]
inc rbx
inc esi
xor byte [rbx + rdx - 1], al
cmp rbx, 0x3ff
jl 0x14007991d
mov esi, edi
mov rbx, rdi
inc rcx
cmp rcx, r14
jl 0x140079901
sub r15d, 0x14
mov r12d, reloc.WS2_32.dll_sendto
dec r13
jne 0x140079830
mov ebx, dword [rbp - 0x69]
mov r14, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
lea rcx, [rbp - 0x51]
call fcn.1400826a0
mov rsi, qword [rsp + 0xd0]
test ebx, ebx
jne 0x140079980
lea r8, [0x1402003b0]
lea edx, [rbx + 0x12]
lea ecx, [rbx + 9]
mov r9d, 0x137
call fcn.14004d570
movdqu xmm1, xmmword [0x14022af18]
movdqu xmm0, xmmword [rbp - 0x11]
mov ecx, 4
lea rdx, [0x14022af18]
pxor xmm1, xmm0
movdqu xmmword [0x14022af18], xmm1
nop word [rax + rax]
movzx eax, byte [rbp + rdi - 1]
lea rdi, [rdi + 1]
xor byte [rdi + rdx + 0xf], al
dec rcx
jne 0x1400799b0
movsd xmm0, qword [0x140181050]
movsd xmm1, qword [0x14022aae8]
mov rdi, qword [rsp + 0xc8]
comisd xmm0, xmm1
jbe 0x1400799ec
addsd xmm1, xmm6
movsd qword [0x14022aae8], xmm1
test ebx, ebx
mov rbx, qword [rsp + 0x100]
jne 0x140079a12
mov edx, reloc.WS2_32.dll_select
lea r8, [0x1402003c8]
mov r9d, 0x144
lea ecx, [rdx - 8]
call fcn.14004d570
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140150a60
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xd8
pop r15
pop rbp
ret