Function at 0x1801741f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x130
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x100], rax
cmp dword [rcx + 0x60], 3
mov rsi, r9
mov r13, qword [rsp + 0x180]
mov rdi, rdx
mov r12, qword [rsp + 0x190]
movsxd rbx, r8d
mov qword [rsp + 0x50], rdx
jne 0x180174262
mov eax, dword [rsp + 0x198]
mov r8d, ebx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x188]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
call fcn.180172d30
jmp 0x1801744cc
mov qword [rsp + 0x128], rbp
mov rcx, rsi
mov qword [rsp + 0x120], r14
call fcn.1800dac50
movsxd r14, dword [rsp + 0x188]
movsxd r8, eax
lea ebp, [r8 + r14]
lea eax, [rbp + 0x14]
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x48], eax
cmp eax, 0x80
ja 0x1801744bc
lea eax, [rbx + 1]
mov qword [rsp + 0x118], r15
cdq
lea rcx, [rsp + 0x94]
sub eax, edx
mov rdx, rsi
sar eax, 1
movsxd r15, eax
mov rax, rbx
sub rax, r15
mov rbx, r8
add rax, rdi
mov qword [rsp + 0x58], rax
call fcn.180210e90
lea rcx, [rsp + 0x94]
mov r8, r14
add rcx, rbx
mov rdx, r13
call fcn.180210e90
lea rax, [rsp + 0x84]
mov r9d, ebp
lea r8, [rsp + 0x94]
mov qword [rsp + 0x20], rax
mov edx, r15d
mov rcx, rdi
call fcn.18019e180
movsxd r14, dword [rsp + 0x198]
xor edi, edi
test r14d, r14d
jle 0x1801743ce
mov esi, r14d
lea eax, [rbp + 0x10]
mov dword [rsp + 0x40], eax
mov ebx, edi
and esi, 0x8000000f
jge 0x18017433a
dec esi
or esi, 0xfffffff0
inc esi
mov rdi, qword [rsp + 0x50]
mov ebp, reloc.WS2_32.dll_recv
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x60]
mov r9d, eax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x84]
mov rcx, rdi
mov edx, r15d
call fcn.18019e180
lea rax, [rsp + 0x84]
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov edx, r15d
mov rcx, rdi
call fcn.18019e180
cmp ebp, r14d
mov eax, esi
mov ecx, reloc.WS2_32.dll_recv
cmovle eax, ecx
movsxd r8, eax
test eax, eax
jle 0x1801743b8
lea rcx, [rbx + r12]
lea rdx, [rsp + 0x60]
call fcn.180210e90
mov eax, dword [rsp + 0x40]
add ebp, 0x10
add rbx, 0x10
cmp rbx, r14
jl 0x180174350
mov ebp, dword [rsp + 0x44]
xor edi, edi
mov r9d, ebp
lea rax, [rsp + 0x80]
mov rbp, qword [rsp + 0x58]
lea r8, [rsp + 0x94]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov edx, r15d
call fcn.18019e1c0
test r14d, r14d
jle 0x1801744b4
lea rbx, [rsp + 0x60]
mov esi, setsockopt
sub rbx, r12
nop dword [rax]
mov r9d, dword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov edx, r15d
mov rcx, rbp
call fcn.18019e1c0
lea rax, [rsp + 0x80]
mov r9d, setsockopt
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov edx, r15d
mov rcx, rbp
call fcn.18019e1c0
cmp esi, r14d
jle 0x18017447c
mov eax, 0x66666667
mov ecx, r14d
imul r14d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
jmp 0x180174481
mov ecx, setsockopt
movsxd rdx, ecx
test ecx, ecx
jle 0x1801744a0
lea rax, [rdi + r12]
nop dword [rax]
movzx ecx, byte [rbx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180174490
add esi, 0x14
add rdi, 0x14
sub rbx, 0x14
cmp rdi, r14
jl 0x180174410
mov r15, qword [rsp + 0x118]
mov rbp, qword [rsp + 0x128]
mov r14, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x130
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret