Function at 0x1800a59b0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r13
sub rsp, 0x88
mov r13, r8
lea rax, [r9 - 1]
xor r8d, r8d
mov rdi, rcx
movabs rcx, 0x1ffffffffffffffe
mov qword [r11 - 0x48], r8
mov rbp, r9
cmp rax, rcx
ja 0x1800a5c93
mov rsi, qword [rsp + 0xd8]
movabs rax, 0x2000000000000000
cmp rsi, rax
jae 0x1800a5c93
mov qword [r11 + 0x18], r14
xorps xmm0, xmm0
mov qword [r11 - 0x28], r15
lea r14, [rdi + 0x178]
mov qword [r11 + 8], rbx
movups xmmword [r14], xmm0
movups xmmword [rdi + 0x188], xmm0
mov dword [rdi + 0x198], edx
mov qword [rdi + 0x158], r8
mov qword [rdi + 0x160], r8
cmp r9, 0xc
jne 0x1800a5a5b
movsd xmm0, qword [r13]
movsd qword [r14], xmm0
mov eax, dword [r13 + 8]
mov dword [r14 + 8], eax
mov byte [rdi + 0x187], 1
jmp 0x1800a5bdd
mov qword [rsp + 0xb8], r12
lea r12, [r9*8]
mov rax, r12
shr rax, 0x38
mov qword [rsp + 0xc8], rax
mov rax, r12
shr rax, 0x30
mov qword [rsp + 0x30], rax
mov rax, r12
shr rax, 0x28
mov qword [rsp + 0x38], rax
mov rax, r12
shr rax, 0x20
mov qword [rsp + 0x40], rax
mov rax, r12
shr rax, 0x18
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x10
mov qword [rsp + 0x50], rax
mov rax, r12
shr rax, 8
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x68], xmm0
nop word [rax + rax]
mov ebx, reloc.WS2_32.dll_recv
cmp rbp, rbx
cmovb rbx, rbp
test rbx, rbx
je 0x1800a5b05
mov r8, r13
mov rcx, r14
sub r8, rdi
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rcx + r8 - 0x178]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800a5af0
mov r8, r14
mov rdx, r14
mov rcx, rdi
call fcn.1800a4fb0
add r13, rbx
sub rbp, rbx
jne 0x1800a5ad0
movzx eax, byte [rsp + 0x68]
mov r8, r14
xor byte [r14], al
mov rdx, r14
movzx eax, byte [rsp + 0x69]
mov rcx, rdi
xor byte [rdi + 0x179], al
movzx eax, byte [rsp + 0x6a]
xor byte [rdi + 0x17a], al
movzx eax, byte [rsp + 0x6b]
xor byte [rdi + 0x17b], al
movzx eax, byte [rsp + 0x6c]
xor byte [rdi + 0x17c], al
movzx eax, byte [rsp + 0x6d]
xor byte [rdi + 0x17d], al
movzx eax, byte [rsp + 0x6e]
xor byte [rdi + 0x17e], al
movzx eax, byte [rsp + 0x6f]
xor byte [rdi + 0x17f], al
mov rax, qword [rsp + 0xc8]
xor byte [rdi + 0x180], al
mov rax, qword [rsp + 0x30]
xor byte [rdi + 0x181], al
mov rax, qword [rsp + 0x38]
xor byte [rdi + 0x182], al
mov rax, qword [rsp + 0x40]
xor byte [rdi + 0x183], al
mov rax, qword [rsp + 0x48]
xor byte [rdi + 0x184], al
mov rax, qword [rsp + 0x50]
xor byte [rdi + 0x185], al
mov rax, qword [rsp + 0x58]
xor byte [rdi + 0x186], al
xor byte [rdi + 0x187], r12b
call fcn.1800a4fb0
mov r12, qword [rsp + 0xb8]
lea rax, [rsp + 0x60]
mov r8d, reloc.WS2_32.dll_recv
lea r9, [rdi + 0x168]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rdi
call fcn.1800a36b0
mov r14, qword [rsp + 0xc0]
test eax, eax
jne 0x1800a5c76
mov rbp, qword [rsp + 0xd0]
mov qword [rdi + 0x160], rsi
test rsi, rsi
je 0x1800a5c74
nop
mov ebx, reloc.WS2_32.dll_recv
cmp rsi, rbx
cmovb rbx, rsi
test rbx, rbx
je 0x1800a5c56
mov r8, rbp
lea rax, [rdi + 0x188]
sub r8, rdi
mov rdx, rbx
movzx ecx, byte [r8 + rax - 0x188]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1800a5c41
lea r8, [rdi + 0x188]
mov rcx, rdi
lea rdx, [rdi + 0x188]
call fcn.1800a4fb0
add rbp, rbx
sub rsi, rbx
jne 0x1800a5c20
xor eax, eax
mov rbx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x88
pop r13
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xffffffec
add rsp, 0x88
pop r13
pop rdi
pop rsi
pop rbp
ret