Function at 0x1800170e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x18021c8c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x108]
mov rbx, 0xffffffffffffffff
mov r15d, dword [rsp + 0x100]
mov r14d, r8d
movdqa xmm0, xmmword [0x1801dc950]
mov esi, r15d
mov qword [rsp + 0x50], rcx
imul esi, r8d
mov qword [rsp + 0x60], rax
mov eax, r9d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x48], r15d
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x78], 6
mov dword [rsp + 0x88], 0x474e5089
lea ecx, [rsi + 1]
mov dword [rsp + 0x8c], 0xa1a0a0d
mul ecx
mov dword [rsp + 0x4c], ecx
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
mov r12, rax
test rax, rax
je 0x1800171b7
mov eax, r15d
mul r14d
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1800171e4
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180172080
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x40]
xor edi, edi
mov r13d, edi
test eax, eax
jle 0x1800173c3
movsxd r15, esi
nop dword [rax + rax]
mov r12d, edi
mov r14d, 0x7fffffff
mov ebp, edi
nop dword [rax + rax]
mov ecx, dword [rsp + 0x48]
mov r9d, eax
mov r8d, dword [rsp + 0x44]
mov edx, esi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x20], r13d
call fcn.180016d50
mov r10d, edi
mov rcx, rdi
test esi, esi
jle 0x1800172d7
cmp esi, 8
jb 0x1800172d7
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800172d7
mov edx, esi
xorps xmm3, xmm3
xorps xmm4, xmm4
and edx, 0x80000007
jge 0x180017275
dec edx
or edx, 0xfffffff8
inc edx
mov eax, esi
sub eax, edx
movsxd rdx, eax
nop dword [rax]
movd xmm0, dword [rcx + rbx]
pmovsxbd xmm1, xmm0
movd xmm0, dword [rcx + rbx + 4]
pabsd xmm2, xmm1
paddd xmm3, xmm2
add rcx, 8
pmovsxbd xmm1, xmm0
pabsd xmm2, xmm1
paddd xmm2, xmm4
movdqa xmm4, xmm2
cmp rcx, rdx
jl 0x180017280
paddd xmm3, xmm2
movdqa xmm0, xmm3
psrldq xmm0, 8
paddd xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd r10d, xmm3
mov r8d, edi
mov r9d, edi
cmp rcx, r15
jge 0x18001732c
mov rax, r15
sub rax, rcx
cmp rax, 2
jl 0x180017319
lea r11, [r15 - 1]
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r8d, eax
movsx eax, byte [rcx + rbx + 1]
cdq
add rcx, 2
xor eax, edx
sub eax, edx
add r9d, eax
cmp rcx, r11
jl 0x1800172f2
cmp rcx, r15
jge 0x180017325
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r10d, eax
lea eax, [r9 + r8]
add r10d, eax
cmp r10d, r14d
mov eax, ebp
cmovge eax, r12d
inc ebp
cmp r10d, r14d
mov r12d, eax
mov eax, dword [rsp + 0x40]
cmovge r10d, r14d
mov r14d, r10d
cmp ebp, 5
jl 0x180017210
mov r14d, dword [rsp + 0x44]
cmp ebp, r12d
je 0x180017389
mov eax, dword [rsp + 0x48]
mov r8d, r14d
mov r9d, dword [rsp + 0x40]
mov edx, esi
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
call fcn.180016d50
mov ebp, r12d
mov r12, qword [rsp + 0x58]
lea eax, [rsi + 1]
imul eax, r13d
mov rdx, rbx
movsxd r8, esi
lea rcx, [r12 + 1]
cdqe
add rcx, rax
mov byte [rax + r12], bpl
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
inc r13d
cmp r13d, eax
jl 0x180017200
mov r15d, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [rsp + 0x4c]
lea r8, [rsp + 0x80]
mov ebp, dword [rsp + 0x40]
mov r9d, 8
imul edx, ebp
mov rcx, r12
call fcn.1800159e0
mov rcx, r12
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x1800171b7
mov ecx, dword [rsp + 0x80]
mov rax, 0xffffffffffffffff
add ecx, 0x2d
add ecx, 0xc
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
je 0x1800171b7
mov rcx, qword [rsp + 0x60]
lea rsi, [r12 + 8]
movsxd r9, dword [rsp + 0x80]
lea eax, [r9 + 0x39]
mov dword [rcx], eax
mov rax, qword [rsp + 0x88]
mov qword [r12], rax
mov eax, r14d
sar eax, 0x18
mov byte [rsi + 8], al
mov eax, r14d
sar eax, 0x10
mov byte [rsi + 9], al
mov eax, r14d
sar eax, 8
mov byte [rsi + 0xa], al
mov eax, ebp
sar eax, 0x18
mov byte [rsi + 0xc], al
mov eax, ebp
sar eax, 0x10
mov byte [rsi + 0xd], al
mov eax, ebp
sar eax, 8
mov byte [rsi + 0xe], al
mov byte [rsi + 0xb], r14b
lea r14, [0x1801af380]
mov dword [rsi], 0xd000000
mov dword [rsi + 4], 0x52444849
mov byte [rsi + 0xf], bpl
mov byte [rsi + 0x10], 8
mov word [rsi + 0x12], di
mov byte [rsi + 0x14], dil
movsxd rax, r15d
movzx edx, byte [rsp + rax*4 + 0x68]
mov byte [rsi + 0x11], dl
movzx eax, byte [rsi + 4]
not al
movzx ecx, al
movzx eax, byte [rsi + 5]
mov r8d, dword [r14 + rcx*4]
xor r8d, 0xffffff
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 6]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 7]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 8]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 9]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 0xa]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 0xb]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 0xc]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r14 + rcx*4]
movzx eax, byte [rsi + 0xd]
mov rbx, r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 0xe]
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, bpl
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x1c], r9b
mov dword [rsi + 0x1d], 0x54414449
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor rcx, rdx
mov rdx, r13
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r14 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r14 + rcx*4]
not r8d
mov eax, r8d
mov byte [rsi + 0x18], r8b
shr eax, 0x18
mov byte [rsi + 0x15], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 0x16], al
mov eax, r8d
shr eax, 8
mov r8, r9
mov byte [rsi + 0x17], al
mov eax, r9d
sar eax, 0x18
mov byte [rsi + 0x19], al
mov eax, r9d
sar eax, 0x10
mov byte [rsi + 0x1a], al
mov eax, r9d
sar eax, 8
mov byte [rsi + 0x1b], al
add rsi, 0x21
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r13
add rsi, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rcx, dword [rsp + 0x80]
mov r8d, 0xffffffff
lea eax, [rcx + 4]
movsxd r10, eax
test eax, eax
jle 0x18001768c
mov rax, rsi
sub rax, rcx
nop dword [rax + rax]
movzx edx, byte [rdi + rax - 4]
inc rdi
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
xor r8d, dword [r14 + rdx*4]
cmp rdi, r10
jl 0x180017670
mov edx, dword [0x1801af658]
not r8d
xor edx, 0xffffff
mov byte [rsi + 3], r8b
movzx ecx, dl
mov eax, r8d
shr eax, 0x18
mov byte [rsi], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 1], al
mov eax, r8d
mov dword [rsi + 4], 0
mov dword [rsi + 8], 0x444e4549
shr edx, 8
shr eax, 8
mov byte [rsi + 2], al
movzx eax, byte [rsi + 9]
xor rcx, rax
movzx eax, byte [rsi + 0xa]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xb]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, r12
xor edx, dword [r14 + rcx*4]
not edx
mov ecx, edx
mov byte [rsi + 0xf], dl
shr ecx, 0x18
mov byte [rsi + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rsi + 0xd], cl
mov ecx, edx
shr ecx, 8
mov byte [rsi + 0xe], cl
jmp 0x1800171b9