Function at 0x1800e4240
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x78
mov rax, qword [0x180201ac0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12, qword [rsp + 0xc0]
mov rsi, r8
mov r10, qword [rsp + 0xc8]
mov rbx, rdx
mov qword [rsp + 0x38], r12
mov rdi, rcx
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], r9
test r8, r8
je 0x1800e4577
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r15
mov r15d, 2
cmp rcx, 0x20
jb 0x1800e42b1
lea rax, [rcx - 0x20]
cmp rdx, rax
jbe 0x1800e42ba
cmp rcx, rdx
jae 0x1800e433a
mov r14, r12
cmp rsi, 0x10
jb 0x1800e432c
mov rbp, rsi
mov r12, r9
shr rbp, 4
imul rax, rbp, 0xfffffffffffffff0
add rsi, rax
mov qword [rsp + 0x20], rsi
mov rsi, r10
nop dword [rax]
mov r8, r12
mov rdx, rbx
mov rcx, rdi
call rsi
mov rcx, rbx
sub r14, rbx
mov rdx, r15
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r14 + rcx]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1800e4300
mov r14, rdi
add rbx, 0x10
add rdi, 0x10
sub rbp, 1
jne 0x1800e42e0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x38]
movups xmm0, xmmword [r14]
movups xmmword [r12], xmm0
jmp 0x1800e43d9
cmp rsi, 0x10
jb 0x1800e43ec
mov rbp, rsi
mov r14, r12
shr rbp, 4
mov r15, rdx
imul rax, rbp, 0xfffffffffffffff0
neg r14
sub r15, r12
add rsi, rax
mov qword [rsp + 0x20], rsi
mov rsi, r9
nop word [rax + rax]
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call r10
mov r10, rdi
mov r9, r12
sub r10, rbx
nop word [rax + rax]
mov rcx, qword [r9]
lea rdx, [r15 + r9]
mov r8, qword [rdx + r10]
lea rax, [r14 + r9]
shr rax, 3
lea r9, [r9 + 8]
xor rcx, qword [rsp + rax*8 + 0x40]
lea rax, [r14 + r9]
mov qword [rdx], rcx
mov qword [r9 - 8], r8
cmp rax, 0x10
jb 0x1800e4390
mov r10, qword [rsp + 0x30]
add rdi, 0x10
add rbx, 0x10
add r15, 0x10
sub rbp, 1
jne 0x1800e4370
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x1800e4565
mov r9, qword [rsp + 0x28]
mov r10, qword [rsp + 0x30]
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x41]
sub rax, r12
lea r15, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x42]
mov rbp, rdi
mov eax, 2
sub rbp, r12
sub rax, r12
mov r13d, 1
mov qword [rsp + 0x20], rax
sub r15, r12
sub r13, r12
sub r14, r12
add rbp, 2
sub rbx, r12
add rbx, 2
nop word [rax + rax]
mov r8, r9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call r10
mov r10, rdi
lea rcx, [r12 - 2]
sub r10, rcx
lea rax, [r12 + 1]
xor r9d, r9d
sub r10, rbx
cmp r9, rsi
jae 0x1800e4507
movzx ecx, byte [rax + r15 - 1]
xor cl, byte [rax - 1]
movzx edx, byte [rax + rbp - 3]
mov byte [rax + rbx - 3], cl
mov rcx, rax
sub rcx, r12
mov byte [rax - 1], dl
cmp rcx, rsi
jae 0x1800e4504
movzx ecx, byte [rax + r15]
lea rdx, [rax + rbx]
xor cl, byte [rax]
movzx r8d, byte [r10 + rdx - 2]
mov byte [rdx - 2], cl
lea rcx, [rax + r13]
mov byte [rax], r8b
cmp rcx, rsi
jae 0x1800e44fe
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rax + rbp - 1]
movzx ecx, byte [rax + rcx]
xor cl, byte [rax + 1]
mov byte [rax + rbx - 1], cl
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov byte [rax + 1], dl
cmp rcx, rsi
jae 0x1800e44f8
movzx edx, byte [rax + rbp]
add r9, 4
movzx ecx, byte [rax + r14]
xor cl, byte [rax + 2]
mov byte [rax + rbx], cl
mov byte [rax + 2], dl
add rax, 4
cmp r9, 0x10
jb 0x1800e4464
jmp 0x1800e4507
add r9, 3
jmp 0x1800e4507
add r9, 2
jmp 0x1800e4507
inc r9
cmp rsi, 0x10
jbe 0x1800e452f
mov r9, qword [rsp + 0x28]
add rdi, 0x10
mov r10, qword [rsp + 0x30]
add rbp, 0x10
add rbx, 0x10
sub rsi, 0x10
jne 0x1800e4440
jmp 0x1800e4560
cmp r9, 0x10
jae 0x1800e4560
sub rdi, r12
lea rcx, [r12 + r9]
mov edx, reloc.WS2_32.dll_recv
sub rdx, r9
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800e4550
mov r13, qword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180133630
add rsp, 0x78
pop r12
pop rdi
pop rsi
pop rbx
ret