Function at 0x1801fab80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1800b9c10
sub rsp, rax
mov rcx, r9
mov rdi, r9
mov r15, r8
mov rbx, rdx
xor ebp, ebp
call fcn.180144810
mov rcx, rdi
call fcn.180144900
mov rcx, rdi
mov qword [rsp + 0x38], rax
call fcn.180144900
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.180144900
mov rcx, rdi
mov r13, rax
mov qword [rsp + 0x50], rax
call fcn.180144900
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1801faf61
mov r8, r15
mov rdx, rbx
mov rcx, r13
call fcn.1801fa6f0
test eax, eax
je 0x1801faf61
mov rcx, r13
call fcn.1800e3940
test eax, eax
jne 0x1801faf61
mov rdx, r15
mov rcx, rdi
call fcn.1800e4400
test rax, rax
je 0x1801faf61
mov rcx, r13
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0x60], r14
call fcn.1800e3b30
mov rcx, rdi
mov esi, eax
call fcn.1800e3b30
movsxd rbx, dword [r15 + 8]
mov edx, ebx
mov rcx, r13
mov r14d, eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], ebx
call fcn.1800e43d0
test rax, rax
je 0x1801faf54
movsxd rax, dword [r13 + 8]
mov rdi, qword [r13]
mov qword [rsp + 0x68], r12
mov r12, rbx
cmp rax, rbx
jge 0x1801fac99
mov r8, rbx
lea rcx, [rdi + rax*8]
xor edx, edx
sub r8, rax
shl r8, 3
call fcn.1800b45b0
mov dword [r13 + 8], ebx
mov r13, qword [rsp + 0x38]
mov edx, ebx
mov rcx, r13
call fcn.1800e43d0
test rax, rax
je 0x1801faf4f
mov r13, qword [r13]
mov eax, 1
mov qword [r13], rax
cmp rbx, rax
jle 0x1801facda
lea r8, [rbx - 1]
lea rcx, [r13 + 8]
xor edx, edx
shl r8, 3
call fcn.1800b45b0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov edx, ebx
mov dword [rax + 8], ebx
call fcn.1800e43d0
test rax, rax
je 0x1801faf4f
mov r9, qword [rsp + 0x28]
mov r11, qword [r9]
mov qword [rsp + 0x48], r11
test ebx, ebx
jle 0x1801fad1e
mov r8, rbx
xor edx, edx
mov rcx, r11
shl r8, 3
call fcn.1800b45b0
mov r9, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov dword [r9 + 8], ebx
mov r8, qword [rdx]
mov qword [rsp + 0x40], r8
nop
test esi, esi
je 0x1801fae0d
nop dword [rax + rax]
mov r10, qword [rdi]
test r10b, 1
jne 0x1801fadf6
mov r8, qword [r13]
mov rax, qword [r15]
mov r12, rbp
mov rcx, qword [rax]
mov r9, r8
lea eax, [rbx - 1]
and r9d, 1
neg r9
and rcx, r9
xor r8, rcx
test eax, eax
jle 0x1801faddf
mov r11, rdi
mov rbp, 0xfffffffffffffff8
lea rbx, [r13 + 8]
sub r11, r13
mov r14d, eax
mov r12d, eax
sub rbp, r13
nop dword [rax + rax]
mov rcx, qword [r11 + rbx]
shr r10, 1
shr r8, 1
mov rax, rcx
shl rax, 0x3f
or rax, r10
mov r10, rcx
lea rcx, [rbx + rbp]
mov qword [r11 + rbx - 8], rax
mov rax, qword [r15]
add rbx, 8
mov rdx, qword [rcx + rax + 8]
and rdx, r9
xor rdx, qword [rbx - 8]
mov rax, rdx
shl rax, 0x3f
or rax, r8
dec r14
mov r8, rdx
mov qword [rbx - 0x10], rax
jne 0x1801fad90
mov ebx, dword [rsp + 0x24]
xor ebp, ebp
shr r10, 1
shr r8, 1
dec esi
mov qword [rdi + r12*8], r10
mov qword [r13 + r12*8], r8
jne 0x1801fad40
mov r14d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x28]
movsxd r12, ebx
cmp esi, 0x40
jg 0x1801fae28
mov rax, qword [rdi]
test rax, rax
je 0x1801faf4f
cmp rax, 1
je 0x1801faf27
cmp esi, r14d
jge 0x1801fae77
mov rcx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov eax, esi
mov esi, r14d
mov dword [rsp + 0x20], eax
mov r14d, eax
mov rax, qword [rsp + 0x38]
mov rdi, r8
mov r8, qword [rcx]
mov r11, qword [rax]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x38], r9
mov rdx, rcx
mov qword [rsp + 0x30], rcx
mov r9, rax
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r8
jmp 0x1801fae7c
mov r11, qword [rsp + 0x48]
test r12, r12
jle 0x1801faeca
mov r9, r8
mov r10, r11
mov rdx, r13
sub r9, rdi
sub r10, rdi
mov rcx, rdi
sub rdx, rdi
mov r8, r12
nop dword [rax]
mov rax, qword [r9 + rcx]
add rcx, 8
xor qword [rcx - 8], rax
mov rax, qword [r10 + rcx - 8]
xor qword [rdx + rcx - 8], rax
dec r8
jne 0x1801faea0
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x28]
cmp esi, r14d
jne 0x1801fad30
lea eax, [rsi - 1]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movsxd rbx, eax
mov rax, rbx
mov rcx, qword [rdi + rbx*8]
test rcx, rcx
jne 0x1801faf04
nop
test rax, rax
je 0x1801faf04
mov rcx, qword [rdi + rax*8 - 8]
dec rax
dec ebx
test rcx, rcx
je 0x1801faef0
call fcn.1800e3280
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x28]
shl ebx, 6
lea esi, [rbx + rax]
mov ebx, dword [rsp + 0x24]
jmp 0x1801fad30
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1800e3af0
mov rcx, qword [rsp + 0xa0]
mov rdx, rbx
call fcn.1800e4400
test rax, rax
mov eax, 1
cmovne ebp, eax
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb8]
call fcn.180144880
mov eax, ebp
add rsp, 0x70
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret