Function at 0x140172020
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
mov eax, 0x80
call fcn.1401ef830
sub rsp, rax
mov qword [rsp + 0xa8], rbp
xor ebx, ebx
mov qword [rsp + 0x78], r12
mov rcx, r9
mov qword [rsp + 0x70], r13
mov rsi, r9
mov qword [rsp + 0x60], r15
mov r12, r8
mov rdi, rdx
mov dword [rsp + 0x20], ebx
call fcn.1400f5750
mov rcx, rsi
call fcn.1400f5840
mov qword [rsp + 0x48], rax
mov r15, rax
test rax, rax
je 0x14017255f
mov rcx, rsi
call fcn.1400f5840
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14017255f
mov rcx, rsi
mov qword [rsp + 0x68], r14
call fcn.1400f5840
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
je 0x14017255a
mov rcx, rsi
call fcn.1400f5840
mov qword [rsp + 0x30], rax
mov rbx, rax
test rax, rax
je 0x140172556
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140171800
test eax, eax
je 0x140172556
cmp dword [r14 + 8], 0
je 0x140172556
mov rdx, r12
mov rcx, rbx
call fcn.14009b410
test rax, rax
je 0x140172556
mov rcx, r14
call fcn.14009afb0
mov rcx, rbx
mov ebp, eax
call fcn.14009afb0
movsxd r13, dword [r12 + 8]
mov dword [rsp + 0x24], eax
cmp r13d, dword [r14 + 0xc]
jg 0x140172129
mov rax, r14
jmp 0x140172134
mov edx, r13d
mov rcx, r14
call fcn.14009b330
test rax, rax
je 0x140172556
movsxd rax, dword [r14 + 8]
mov rcx, r13
mov rbx, qword [r14]
cmp rax, r13
jge 0x140172158
sub rcx, rax
lea rdi, [rbx + rax*8]
xor eax, eax
rep stosq qword [rdi], rax
mov dword [r14 + 8], r13d
cmp r13d, dword [r15 + 0xc]
jg 0x140172167
mov rax, r15
jmp 0x140172172
mov edx, r13d
mov rcx, r15
call fcn.14009b330
test rax, rax
je 0x140172556
mov r14, qword [r15]
mov eax, 1
mov qword [r14], rax
cmp r13d, eax
jle 0x14017219b
lea eax, [r13 - 1]
movsxd rcx, eax
lea rdi, [r14 + 8]
xor eax, eax
rep stosq qword [rdi], rax
mov r8, qword [rsp + 0x28]
mov dword [r15 + 8], r13d
cmp r13d, dword [r8 + 0xc]
jg 0x1401721af
mov rax, r8
jmp 0x1401721bf
mov edx, r13d
mov rcx, r8
call fcn.14009b330
mov r8, qword [rsp + 0x28]
test rax, rax
je 0x140172556
mov r9, qword [r8]
mov qword [rsp + 0x38], r9
test r13d, r13d
jle 0x1401721e0
mov rdi, r9
xor eax, eax
mov rcx, r13
rep stosq qword [rdi], rax
mov rcx, qword [rsp + 0x30]
mov dword [r8 + 8], r13d
mov r11, qword [rcx]
mov qword [rsp + 0x50], r11
test ebp, ebp
je 0x1401722ca
nop dword [rax]
mov r8, qword [rbx]
test r8b, 1
jne 0x1401722b1
mov rdi, qword [r14]
xor r15d, r15d
mov rax, qword [r12]
mov r9, rdi
and r9d, 1
neg r9
mov rcx, qword [rax]
lea eax, [r13 - 1]
and rcx, r9
movsxd r10, eax
xor rdi, rcx
test eax, eax
jle 0x14017229a
mov r11, rbx
lea rax, [r14 + 8]
sub r11, r14
mov rsi, 0xfffffffffffffff8
sub rsi, r14
mov r15, r10
nop dword [rax]
mov rcx, qword [r11 + rax]
lea rdx, [rsi + rax]
shl rcx, 0x3f
lea rax, [rax + 8]
shr r8, 1
or rcx, r8
shr rdi, 1
mov r8, qword [r11 + rax - 8]
mov qword [r11 + rax - 0x10], rcx
mov rcx, qword [r12]
mov rdx, qword [rdx + rcx + 8]
and rdx, r9
xor rdx, qword [rax - 8]
mov rcx, rdx
shl rcx, 0x3f
or rcx, rdi
mov rdi, rdx
mov qword [rax - 0x10], rcx
sub r10, 1
jne 0x140172250
shr r8, 1
shr rdi, 1
mov qword [rbx + r15*8], r8
mov qword [r14 + r15*8], rdi
sub ebp, 1
jne 0x140172200
mov r9, qword [rsp + 0x38]
mov r11, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
cmp ebp, 0x40
jg 0x1401722e5
mov rax, qword [rbx]
test rax, rax
je 0x14017254e
cmp rax, 1
je 0x1401724e9
mov esi, dword [rsp + 0x24]
cmp ebp, esi
jge 0x14017232f
mov eax, ebp
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x24], eax
mov ebp, esi
mov esi, eax
mov rbx, r11
mov rax, qword [rsp + 0x40]
mov r14, r9
mov qword [rsp + 0x40], rcx
mov rcx, rax
mov qword [rsp + 0x30], rax
mov rax, r15
mov r15, r8
mov qword [rsp + 0x28], rax
mov r11, qword [rcx]
mov r9, qword [rax]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x50], r11
xor r10d, r10d
test r13d, r13d
jle 0x140172441
cmp r13d, 4
jb 0x140172441
lea eax, [r13 - 1]
movsxd rcx, eax
lea rdi, [r9 + rcx*8]
lea rax, [r14 + rcx*8]
cmp r14, rdi
ja 0x140172362
cmp rax, r9
jae 0x140172441
lea rdx, [rbx + rcx*8]
cmp r14, rdx
ja 0x140172374
cmp rax, rbx
jae 0x140172441
lea rcx, [r11 + rcx*8]
cmp r14, rcx
ja 0x140172386
cmp rax, r11
jae 0x140172441
cmp rbx, rdi
ja 0x140172394
cmp rdx, r9
jae 0x140172441
cmp rbx, rcx
ja 0x1401723a2
cmp rdx, r11
jae 0x140172441
mov ecx, r13d
and ecx, 0x80000003
jge 0x1401723b4
dec ecx
or ecx, 0xfffffffc
inc ecx
mov eax, r13d
mov rdx, r9
sub eax, ecx
sub rdx, rbx
mov rcx, r11
movsxd r8, eax
sub rcx, rbx
lea rax, [rbx + 0x10]
mov rdi, r14
sub rdi, rbx
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 4
movdqu xmm1, xmmword [rcx + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rdi + rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
movdqu xmm1, xmmword [rdx + rax - 0x20]
movdqu xmm0, xmmword [rdi + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rdi + rax - 0x20], xmm1
cmp r10, r8
jl 0x1401723e0
cmp r10, r13
jge 0x140172489
mov r8, r9
lea rcx, [rbx + r10*8]
mov r9, r14
mov rdi, r11
sub r9, rbx
sub rdi, rbx
sub r8, rbx
mov rdx, r13
sub rdx, r10
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx + rdi]
xor qword [rcx], rax
mov rax, qword [rcx + r8]
xor qword [rcx + r9], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140172470
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
cmp ebp, esi
jne 0x1401721f1
lea eax, [rbp - 1]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movsxd rdx, eax
mov rax, rdx
mov rcx, qword [rbx + rdx*8]
test rcx, rcx
jne 0x1401724d4
nop dword [rax + rax]
test rax, rax
je 0x1401724d4
mov rcx, qword [rbx + rax*8 - 8]
dec rax
dec edx
test rcx, rcx
je 0x1401724c0
call fcn.14009aea0
mov rcx, qword [rsp + 0x30]
shl edx, 6
lea ebp, [rdx + rax]
jmp 0x1401721f1
mov edx, dword [r15 + 8]
test edx, edx
jle 0x140172516
lea eax, [rdx - 1]
movsxd rcx, eax
mov rax, qword [r15]
lea rcx, [rax + rcx*8]
nop
mov rax, qword [rcx]
lea rcx, [rcx - 8]
test rax, rax
jne 0x140172512
dec edx
test edx, edx
jg 0x140172500
mov dword [r15 + 8], edx
cmp dword [r15 + 8], 0
jne 0x140172525
mov dword [r15 + 0x10], 0
mov rcx, qword [rsp + 0xa0]
mov rdx, r15
call fcn.14009b410
mov ebx, dword [rsp + 0x20]
test rax, rax
mov rsi, qword [rsp + 0xb8]
mov eax, 1
cmovne ebx, eax
jmp 0x14017255a
mov rsi, qword [rsp + 0xb8]
mov ebx, dword [rsp + 0x20]
mov r14, qword [rsp + 0x68]
mov ecx, dword [rsi + 0x34]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0xa8]
test ecx, ecx
je 0x14017258f
dec ecx
mov eax, ebx
mov dword [rsi + 0x34], ecx
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
dec dword [rsi + 0x28]
mov ecx, dword [rsi + 0x28]
mov rax, qword [rsi + 0x20]
mov edi, dword [rsi + 0x30]
mov r8d, dword [rax + rcx*4]
cmp r8d, edi
jae 0x1401725e2
mov eax, dword [rsi + 0x18]
sub edi, r8d
lea edx, [rax - 1]
sub eax, edi
and edx, 0xf
mov dword [rsi + 0x18], eax
test edi, edi
je 0x1401725e2
nop word [rax + rax]
dec edi
test edx, edx
jne 0x1401725dc
mov rax, qword [rsi + 8]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rax + 0x180]
mov qword [rsi + 8], rcx
jmp 0x1401725de
dec edx
test edi, edi
jne 0x1401725c0
mov dword [rsi + 0x30], r8d
mov eax, ebx
mov dword [rsi + 0x38], 0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret