Function at 0x1801c9ee0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x108
call fcn.1800b9c10
sub rsp, rax
mov rax, qword [0x1802e4710]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, qword [rcx + 0x348]
mov rbp, qword [rsp + 0x170]
mov rsi, rcx
lea rax, [rsp + 0x50]
lea r15, [rcx + 0x1f8]
xor r12d, r12d
neg rax
mov r13, r9
mov qword [rsp + 0x48], r8
and eax, 0xf
mov rdi, rdx
lea r9, [rsi + 0x180]
lea rcx, [rsp + rax + 0x50]
mov qword [rsp + 0x38], rcx
lea rax, [rcx + 0x30]
lea r14, [rcx + 0x40]
mov qword [rsp + 0x30], rax
cmp rbx, 0x40
ja 0x1801ca07a
mov edx, 0x80
lea rax, [rsi + 0x1a0]
mov qword [rsp + 0x40], rdx
mov r8d, edx
lea rdx, [0x1802a1f20]
mov dword [rax], r12d
mov qword [rsp + 0x20], rax
call fcn.1801d2870
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call fcn.1801c1d30
test byte [rsi + 0x3c], 2
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsi + 0x30c]
mov dword [rsi + 0x1f0], r12d
mov qword [rsi + 0x320], select
mov qword [rcx], rax
mov rax, qword [rsi + 0x314]
mov qword [rsi + 0x328], rbx
mov qword [rcx + 8], rax
je 0x1801ca00c
test rbx, rbx
je 0x1801ca04d
mov r8, r13
mov r9, rdi
mov rdx, r14
sub r8, r14
sub r9, r14
mov r12, rbx
nop dword [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 0x1801c9ff0
jmp 0x1801ca04d
test rbx, rbx
je 0x1801ca04d
mov r9, r13
mov r10, rdi
mov r8, r14
sub r9, rdi
sub r10, r14
mov r12, rbx
nop word [rax + rax]
movzx eax, byte [r8]
lea rcx, [r8 + r10]
inc r8
movzx edx, byte [rcx + r9]
xor al, dl
dec rbx
mov byte [r8 - 1], dl
mov byte [rcx], al
jne 0x1801ca030
mov rbx, r12
lea rcx, [r12 + r14]
xor edx, edx
neg rbx
add r13, r12
add rdi, r12
and ebx, 0xf
mov r8d, ebx
call fcn.1800b45b0
lea r11, [rbx + r12]
lea r12, [r11 + 0x10]
add r14, r11
jmp 0x1801ca173
mov edx, 0x40
lea r15, [rsi + 0x1a0]
mov qword [rsp + 0x40], rdx
mov r8d, edx
lea rdx, [0x1802a1f20]
mov dword [r15], r12d
mov qword [rsp + 0x20], r15
call fcn.1801d2870
mov rdx, qword [rsp + 0x38]
lea rcx, [rsi + 0x1f8]
call fcn.1801c1d30
lea rdx, [rsi + 0x30c]
lea rcx, [rsi + 0x1f8]
mov r8d, reloc.WS2_32.dll_recv
mov dword [r15], 1
mov dword [rsi + 0x1f0], r12d
call fcn.1801c1e90
test byte [rsi + 0x3c], 2
mov qword [rsp + 0x30], r14
mov qword [rsi + 0x320], select
mov qword [rsi + 0x328], rbx
mov r8, rbx
mov rdx, r13
je 0x1801ca128
lea r9, [rsi + 0x180]
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1801d2870
lea r15, [rsi + 0x1f8]
mov r8, rbx
mov rcx, r15
mov rdx, rdi
call fcn.1801c1e90
jmp 0x1801ca155
lea rcx, [rsi + 0x1f8]
call fcn.1801c1e90
lea r9, [rsi + 0x180]
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1801d2870
lea r15, [rsi + 0x1f8]
add r13, rbx
add rdi, rbx
neg rbx
and ebx, 0xf
lea rdx, [0x1802a1f20]
mov rcx, r15
mov r8d, ebx
call fcn.1801c1e90
mov rax, qword [rsi + 0x320]
mov rbx, qword [rsp + 0x30]
lea r8, [r12 + 0x10]
mov qword [r14], rax
mov rax, qword [rsi + 0x328]
mov rdx, rbx
mov rcx, r15
mov qword [r14 + 8], rax
call fcn.1801c1e90
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1800ca7c0
test byte [rsi + 0x3c], 2
lea rdx, [rsi + 0x2fc]
jne 0x1801ca1bc
mov rdx, rbx
mov rcx, r15
call fcn.1801c1f80
test byte [rsi + 0x3c], 2
mov qword [rsi + 0x348], 0xffffffffffffffff
je 0x1801ca1ec
mov rax, qword [rsi + 0x2fc]
mov qword [rdi], rax
mov rax, qword [rsi + 0x304]
mov qword [rdi + 8], rax
jmp 0x1801ca221
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, rbx
call fcn.1800d8df0
test eax, eax
je 0x1801ca21d
cmp rbp, 0x10
jbe 0x1801ca219
sub rdi, rbp
lea r8, [rbp - 0x10]
xor edx, edx
lea rcx, [rdi + 0x10]
call fcn.1800b45b0
xor eax, eax
jmp 0x1801ca22e
sub rbp, 0x10
mov rcx, qword [rsp + 0x48]
mov eax, 1
mov qword [rcx], rbp
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800acfa0
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret