Function at 0x180121e70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, WSACleanup
call fcn.1800f84e0
sub rsp, rax
mov ebp, dword [rsp + 0xc0]
mov r13, rcx
mov ecx, ebp
mov ebx, 1
shl ebx, cl
mov esi, r9d
mov rdi, r8
mov r11d, edx
cmp edx, dword [r13 + 0xc]
jg 0x180121eb8
mov rax, r13
jmp 0x180121ec8
mov rcx, r13
call fcn.1800f6df0
mov r11d, dword [rsp + 0xa8]
test rax, rax
jne 0x180121ed8
add rsp, 0x70
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
movsxd r11, r11d
mov qword [rsp + 0x48], r11
cmp ebp, 3
jg 0x180121f55
test r11, r11
jle 0x180122119
xor r10d, r10d
movsxd rbp, ebx
shl rbp, 3
nop dword [rax + rax]
xor r9d, r9d
xor eax, eax
test ebx, ebx
jle 0x180121f3d
mov r8, rdi
nop dword [rax]
mov edx, eax
lea r8, [r8 + 8]
xor edx, esi
inc eax
lea ecx, [rdx - 1]
not edx
shr edx, 0x1f
shr ecx, 0x1f
and edx, ecx
mov rcx, qword [r8 - 8]
neg edx
and edx, 1
neg rdx
and rdx, rcx
or r9, rdx
cmp eax, ebx
jl 0x180121f10
mov rax, qword [r13]
add rdi, rbp
mov qword [rax + r10*8], r9
inc r10
cmp r10, r11
jl 0x180121f00
jmp 0x180122119
lea ecx, [rbp - 2]
mov edx, esi
sar edx, cl
mov r8d, 1
shl r8d, cl
movsxd rbp, r8d
lea ecx, [rdx - 1]
shr ecx, 0x1f
lea eax, [r8 - 1]
and esi, eax
mov eax, edx
not eax
shr eax, 0x1f
and eax, ecx
mov ecx, edx
neg eax
xor ecx, 1
and eax, 1
neg rax
mov qword [rsp + 0x30], rax
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and eax, ecx
mov ecx, edx
xor ecx, 2
neg eax
and eax, 1
xor edx, 3
neg rax
mov qword [rsp + 0x38], rax
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and eax, ecx
lea ecx, [rdx - 1]
shr ecx, 0x1f
neg eax
and eax, 1
not edx
shr edx, 0x1f
neg rax
and ecx, edx
mov qword [rsp + 0x40], rax
neg ecx
and ecx, 1
neg rcx
mov qword [rsp + 0x28], rcx
test r11, r11
jle 0x180122119
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r15
xor r15d, r15d
movsxd rax, ebx
shl rax, 3
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], r15
nop dword [rax]
nop dword [rax + rax]
xor ebx, ebx
xor r10d, r10d
test rbp, rbp
jle 0x1801220de
mov r13, qword [rsp + 0x30]
mov rax, rbp
mov r15, qword [rsp + 0x38]
neg rax
mov r9, rbp
mov r11, rbp
shl r9, 4
neg r11
add r9, rdi
mov r14, rbp
mov rdi, qword [rsp + 0x40]
lea r12, [rax*8]
add r11, r11
mov rax, qword [r9 + rbp*8]
lea r9, [r9 + 8]
and rax, rcx
mov r8d, r10d
mov rcx, qword [r9 - 8]
xor r8d, esi
mov rdx, qword [r12 + r9 - 8]
and rcx, rdi
or rcx, rax
and rdx, r15
mov rax, qword [r9 + r11*8 - 8]
or rdx, rcx
lea ecx, [r8 - 1]
and rax, r13
shr ecx, 0x1f
or rax, rdx
not r8d
inc r10d
shr r8d, 0x1f
and ecx, r8d
neg ecx
and ecx, 1
neg rcx
and rcx, rax
or rbx, rcx
mov rcx, qword [rsp + 0x28]
sub r14, 1
jne 0x180122061
mov rdi, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [r13]
add rdi, rax
mov qword [rsp + 0xb0], rdi
mov qword [rcx + r15*8], rbx
inc r15
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], r15
cmp r15, r11
jl 0x180122020
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xa8]
mov eax, 1
mov dword [r13 + 8], ecx
add rsp, 0x70
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret