Function at 0x1800e12a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x120
call fcn.180188f30
sub rsp, rax
mov rax, qword [0x180237160]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, qword [rcx + 0x70]
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 0x1800e12f1
or eax, 0xffffffff
jmp 0x1800e15ce
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 0x1800e1452
mov edx, 0x80
lea rax, [rsi + 0x20]
mov qword [rsp + 0x40], rdx
mov r8d, edx
lea rdx, [0x1801d9370]
mov dword [rax], ebp
mov qword [rsp + 0x20], rax
call fcn.1801208f0
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.180112b80
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], ntohs
mov qword [rsi + 0xb0], rbx
cmp dword [rax + 0x10], ebp
je 0x1800e13dc
test rbx, rbx
je 0x1800e141e
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 0x1800e13c0
jmp 0x1800e141e
test rbx, rbx
je 0x1800e141e
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 0x1800e1400
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.180189610
lea r11, [rbx + rbp]
lea rbx, [rsi + 0xd0]
lea rbp, [r11 + 0x10]
add r12, r11
jmp 0x1800e153b
mov eax, 0x40
lea r15, [rsi + 0x20]
lea rdx, [0x1801d9370]
mov r8d, eax
mov dword [r15], ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
call fcn.1801208f0
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.180112b80
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.180112ce0
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], ntohs
mov qword [rsi + 0xb0], rbx
mov r8, rbx
mov rdx, r13
cmp dword [rax + 0x10], ebp
je 0x1800e14f1
mov r9, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1801208f0
lea rcx, [rsi + 0xd0]
mov r8, rbx
mov rdx, rdi
call fcn.180112ce0
jmp 0x1800e1513
lea rcx, [rsi + 0xd0]
call fcn.180112ce0
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1801208f0
add r13, rbx
add rdi, rbx
neg rbx
and ebx, 0xf
lea rdx, [0x1801d9370]
mov r8d, ebx
lea rbx, [rsi + 0xd0]
mov rcx, rbx
call fcn.180112ce0
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.180112ce0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.1800b6ec0
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x110]
cmp dword [rbp + 0x10], 0
lea rdx, [rsi + 0x84]
jne 0x1800e158d
mov rdx, r15
mov rcx, rbx
call fcn.180112dd0
mov qword [rsi + 0xc8], 0xffffffffffffffff
cmp dword [rbp + 0x10], 0
mov rbp, qword [rsp + 0x118]
je 0x1800e15ed
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.180183a50
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.1800b7a20
test eax, eax
je 0x1800e15c3
sub rdi, r14
lea r8, [r14 - 0x10]
xor edx, edx
lea rcx, [rdi + 0x10]
call fcn.180189610
or eax, 0xffffffff
jmp 0x1800e15c6