Function at 0x14018db20
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x120
call fcn.1402563f0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, qword [rcx + 0x78]
mov r14, r9
mov r13, r8
mov rbx, qword [rsi + 0xc8]
mov rdi, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rbx + 0x10]
cmp r9, rax
je 0x14018db71
or eax, 0xffffffff
jmp 0x14018de4e
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0x110], r12
lea rax, [rsp + 0x50]
neg rax
xor ebp, ebp
mov qword [rsp + 0x108], r15
and eax, 0xf
mov r9, rsi
lea rcx, [rsp + rax + 0x50]
mov qword [rsp + 0x30], rcx
lea r12, [rcx + 0x40]
lea r15, [rcx + 0x30]
cmp rbx, 0x40
ja 0x14018dcd2
mov edx, 0x80
lea rax, [rsi + 0x20]
mov qword [rsp + 0x40], rdx
mov r8d, edx
lea rdx, [0x140335f50]
mov dword [rax], ebp
mov qword [rsp + 0x20], rax
call fcn.1401d2e10
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.1401d36e0
mov rax, qword [rsi + 0x94]
mov dword [rsi + 0x70], ebp
mov qword [r15], rax
mov rax, qword [rsi + 0x9c]
mov qword [r15 + 8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], socket
mov qword [rsi + 0xb0], rbx
cmp dword [rax + 0x10], ebp
je 0x14018dc5c
test rbx, rbx
je 0x14018dc9e
mov r8, r13
mov r9, rdi
mov rdx, r12
sub r8, r12
sub r9, r12
mov rbp, rbx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
movzx eax, byte [rdx]
inc rdx
xor ecx, eax
dec rbx
mov byte [rdx - 1], cl
mov byte [r9 + rdx - 1], cl
jne 0x14018dc40
jmp 0x14018dc9e
test rbx, rbx
je 0x14018dc9e
mov r9, r13
mov r10, rdi
mov r8, r12
sub r9, rdi
sub r10, r12
mov rbp, rbx
nop word [rax + rax]
lea rcx, [r8 + r10]
inc r8
movzx edx, byte [rcx + r9]
movzx eax, dl
xor al, byte [r8 - 1]
dec rbx
mov byte [r8 - 1], dl
mov byte [rcx], al
jne 0x14018dc80
mov rbx, rbp
lea rcx, [r12 + rbp]
xor edx, edx
neg rbx
add r13, rbp
add rdi, rbp
and ebx, 0xf
mov r8d, ebx
call fcn.140254810
lea r11, [rbx + rbp]
lea rbx, [rsi + 0xd0]
lea rbp, [r11 + 0x10]
add r12, r11
jmp 0x14018ddbb
mov eax, 0x40
lea r15, [rsi + 0x20]
lea rdx, [0x140335f50]
mov r8d, eax
mov dword [r15], ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
call fcn.1401d2e10
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.1401d36e0
lea rdx, [rsi + 0x94]
lea rcx, [rsi + 0xd0]
mov r8d, reloc.WS2_32.dll_recv
mov dword [r15], 1
mov dword [rsi + 0x70], ebp
call fcn.1401d3840
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], socket
mov qword [rsi + 0xb0], rbx
mov r8, rbx
mov rdx, r13
cmp dword [rax + 0x10], ebp
je 0x14018dd71
mov r9, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1401d2e10
lea rcx, [rsi + 0xd0]
mov r8, rbx
mov rdx, rdi
call fcn.1401d3840
jmp 0x14018dd93
lea rcx, [rsi + 0xd0]
call fcn.1401d3840
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1401d2e10
add r13, rbx
add rdi, rbx
neg rbx
and ebx, 0xf
lea rdx, [0x140335f50]
mov r8d, ebx
lea rbx, [rsi + 0xd0]
mov rcx, rbx
call fcn.1401d3840
mov r15, r12
mov rax, qword [rsi + 0xa8]
lea r8, [rbp + 0x10]
mov rdx, r15
mov qword [r12], rax
mov rax, qword [rsi + 0xb0]
mov rcx, rbx
mov qword [r12 + 8], rax
call fcn.1401d3840
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.1400f5f80
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x110]
cmp dword [rbp + 0x10], 0
lea rdx, [rsi + 0x84]
jne 0x14018de0d
mov rdx, r15
mov rcx, rbx
call fcn.1401d3930
mov qword [rsi + 0xc8], 0xffffffffffffffff
cmp dword [rbp + 0x10], 0
mov rbp, qword [rsp + 0x118]
je 0x14018de6d
mov rax, qword [rsi + 0x84]
mov qword [rdi], rax
mov rax, qword [rsi + 0x8c]
mov qword [rdi + 8], rax
mov eax, r14d
mov r15, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140254fb0
add rsp, 0x120
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, r15
call fcn.14013a5e0
test eax, eax
je 0x14018de43
sub rdi, r14
lea r8, [r14 - 0x10]
xor edx, edx
lea rcx, [rdi + 0x10]
call fcn.140254810
or eax, 0xffffffff
jmp 0x14018de46