Function at 0x140215d20
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1402807a0
sub rsp, rax
mov ebp, dword [rsp + 0xc0]
mov r13, rcx
mov ebx, 1
mov ecx, ebp
mov esi, r9d
mov rdi, r8
shl ebx, cl
mov qword [rsp + 0x28], r8
mov r11d, edx
cmp edx, dword [r13 + 0xc]
jg 0x140215d68
mov rax, r13
jmp 0x140215d78
mov rcx, r13
call fcn.1401df820
mov r11d, dword [rsp + 0xa8]
test rax, rax
jne 0x140215d88
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 0x140215e06
xor r10d, r10d
test r11, r11
jle 0x140215fcd
movsxd rbp, ebx
shl rbp, 3
nop dword [rax + rax]
xor r9d, r9d
xor edx, edx
test ebx, ebx
jle 0x140215ded
mov r8, rdi
nop dword [rax]
mov ecx, edx
inc edx
lea r8, [r8 + 8]
xor ecx, esi
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov rax, qword [r8 - 8]
neg ecx
and ecx, 1
neg rcx
and rcx, rax
or r9, rcx
cmp edx, ebx
jl 0x140215dc0
mov rax, qword [r13]
inc r10
add rdi, rbp
mov qword [rax + r10*8 - 8], r9
cmp r10, r11
jl 0x140215db0
jmp 0x140215fcd
lea ecx, [rbp - 2]
mov edx, esi
mov r8d, 1
sar edx, cl
shl r8d, cl
mov qword [rsp + 0x60], r15
lea ecx, [rdx - 1]
lea eax, [r8 - 1]
xor r15d, r15d
and esi, eax
shr ecx, 0x1f
mov eax, edx
not eax
movsxd rbp, r8d
mov qword [rsp + 0x20], r15
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 eax, 0x1f
shr ecx, 0x1f
and eax, ecx
mov ecx, edx
xor edx, 3
neg eax
xor ecx, 2
and eax, 1
neg rax
mov qword [rsp + 0x38], rax
lea eax, [rcx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
and eax, 1
neg rax
mov qword [rsp + 0x40], rax
lea eax, [rdx - 1]
not edx
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
neg edx
and edx, 1
neg rdx
mov qword [rsp + 0xb0], rdx
test r11, r11
jle 0x140215fc8
movsxd rax, ebx
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0x68], r14
shl rax, 3
mov qword [rsp + 0x50], rax
nop dword [rax + rax]
xor ebx, ebx
xor r10d, r10d
test rbp, rbp
jle 0x140215f99
mov r13, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rbp
shl rcx, 4
mov rax, rbp
mov r11, rbp
neg rax
add rcx, rdi
mov rdi, qword [rsp + 0x40]
neg r11
mov r14, rbp
lea r12, [rax*8]
add r11, r11
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx + rbp*8]
mov r9d, r10d
inc r10d
and rax, rdx
mov rdx, qword [rcx]
mov r8, qword [r12 + rcx]
and rdx, rdi
xor r9d, esi
and r8, r15
or rdx, rax
mov rax, qword [rcx + r11*8]
lea rcx, [rcx + 8]
or r8, rdx
lea edx, [r9 - 1]
and rax, r13
shr edx, 0x1f
or rax, r8
not r9d
shr r9d, 0x1f
and edx, r9d
neg edx
and edx, 1
neg rdx
and rdx, rax
or rbx, rdx
mov rdx, qword [rsp + 0xb0]
dec r14
jne 0x140215f20
mov rdi, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [r13]
inc r15
add rdi, rax
mov qword [rcx + r15*8 - 8], rbx
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], rdi
cmp r15, r11
jl 0x140215ed0
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x60]
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