Function at 0x18008e090
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x98
mov rax, qword [0x1800f3188]
xor rax, rsp
mov qword [rbp - 0x11], rax
movsxd rbx, dword [rbp + 0x87]
mov r14d, r9d
mov r9, qword [rbp + 0x6f]
mov eax, r14d
mov r13, qword [rbp + 0x8f]
and eax, 0xf
mov r12d, r14d
mov dword [rbp - 0x51], eax
mov eax, dword [rbp + 0x77]
mov rsi, r8
shr r12d, 4
mov rdi, rdx
mov qword [rbp - 0x49], rcx
mov r15, rcx
cmp eax, 0xc
jne 0x18008b2db
movsd xmm0, qword [r9]
mov eax, dword [r9 + 8]
movsd qword [rbp - 0x31], xmm0
mov dword [rbp - 0x29], eax
mov dword [rbp - 0x25], 0x1000000
jmp 0x18008b2fd
lea rcx, [rbp - 0x31]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x20], eax
xor edx, edx
call fcn.18008b880
mov r8d, dword [rbp + 0x97]
lea rax, [rbp - 0x41]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov r9, rsi
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r15
mov dword [rsp + 0x20], r14d
call fcn.18008b880
lea r8, [rbp - 0x21]
mov rcx, r15
lea rdx, [rbp - 0x31]
call fcn.18008d180
lea rax, [rbp - 0x21]
xor r8d, r8d
lea rcx, [rbp - 0x41]
or rax, rcx
test al, 7
jne 0x18008b35f
movdqu xmm1, xmmword [rbp - 0x41]
movdqu xmm0, xmmword [rbp - 0x21]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x41], xmm1
jmp 0x18008b3a9
lea rcx, [rbp - 0x41]
lea rax, [rbp - 0x12]
cmp rcx, rax
ja 0x18008b396
lea rcx, [rbp - 0x32]
lea rax, [rbp - 0x21]
cmp rcx, rax
jb 0x18008b396
mov rcx, r8
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [rbp + rcx - 0x21]
xor byte [rbp + rcx - 0x41], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18008b381
jmp 0x18008b3a9
movdqu xmm1, xmmword [rbp - 0x41]
movdqu xmm0, xmmword [rbp - 0x21]
pxor xmm1, xmm0
movdqu xmmword [rbp - 0x41], xmm1
mov ecx, r8d
test ebx, ebx
jle 0x18008b4a6
mov r10, qword [rbp + 0x7f]
cmp ebx, 8
jb 0x18008b461
mov r9, rbx
lea rax, [rbp - 0x41]
and r9, 0xfffffffffffffff8
mov rdx, r10
sub rdx, rax
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
xorps xmm0, xmm0
lea rax, [rbp - 0x41]
add rax, r8
add ecx, 8
add r8, 8
movd xmm2, dword [rax + rdx]
movd xmm1, dword [rax]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rax + 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rax + rdx + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r8, r9
jl 0x18008b3e0
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd r8d, xmm3
cmp ecx, ebx
jge 0x18008b497
movsxd rax, ecx
lea rdx, [rbp - 0x41]
add rdx, rax
lea rax, [rbp - 0x41]
sub r10, rax
sub ebx, ecx
mov r9d, ebx
nop word [rax + rax]
movzx ecx, byte [rdx + r10]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, eax
or r8d, ecx
sub r9, 1
jne 0x18008b480
test r8d, r8d
je 0x18008b4a6
mov eax, 0xffffff4c
jmp 0x18008b5e7
mov r14d, reloc.WS2_32.dll_ntohs
test r12d, r12d
je 0x18008b59f
mov r13, rsi
lea rax, [rbp - 0x41]
sub r13, rdi
lea rbx, [rdi + 0xf]
mov r15, r13
sub r15, rax
nop dword [rax]
dec r12d
mov rax, r14
add byte [rbp + rax - 0x31], 1
jne 0x18008b4e6
dec rax
cmp rax, 0xc
jge 0x18008b4d6
mov rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x31]
call fcn.18008d180
mov rax, rdi
lea rcx, [rbp - 0x41]
or rax, rsi
or rax, rcx
test al, 7
jne 0x18008b521
mov rax, qword [rbp - 0x41]
xor rax, qword [rsi]
mov qword [rdi], rax
mov rax, qword [rbp - 0x39]
xor rax, qword [rbx + r13 - 7]
mov qword [rbx - 7], rax
jmp 0x18008b586
lea rax, [rbp - 0x32]
cmp rdi, rax
ja 0x18008b533
lea rax, [rbp - 0x41]
cmp rbx, rax
jae 0x18008b541
lea rax, [rbx + r13]
cmp rdi, rax
ja 0x18008b575
cmp rbx, rsi
jb 0x18008b575
lea rax, [rbp - 0x41]
mov r8d, reloc.WS2_32.dll_recv
nop dword [rax + rax]
lea rcx, [r15 + rbx]
movzx edx, byte [rcx + rax - 0xf]
lea r9, [rbp - 0x32]
xor dl, byte [rax]
lea rax, [rax + 1]
mov rcx, rbx
sub rcx, r9
mov byte [rcx + rax - 1], dl
sub r8, 1
jne 0x18008b550
jmp 0x18008b586
movdqu xmm1, xmmword [rsi]
movdqu xmm0, xmmword [rbp - 0x41]
pxor xmm1, xmm0
movdqu xmmword [rdi], xmm1
add rdi, 0x10
add rbx, 0x10
add rsi, 0x10
test r12d, r12d
jne 0x18008b4d0
mov r15, qword [rbp - 0x49]
mov ebx, dword [rbp - 0x51]
test ebx, ebx
je 0x18008b5e5
add byte [rbp + r14 - 0x31], 1
jne 0x18008b5b7
dec r14
cmp r14, 0xc
jge 0x18008b5a6
lea r8, [rbp - 0x41]
mov rcx, r15
lea rdx, [rbp - 0x31]
call fcn.18008d180
mov r8d, ebx
lea rcx, [rbp - 0x41]
mov rdx, rsi
call fcn.18008f660
mov r8, rbx
lea rdx, [rbp - 0x41]
mov rcx, rdi
call fcn.1800a2a90
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1800a1bf0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 8], rbx
push rdi
mov r11, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x18008e0f6
mov r10, qword [rsp + 0x30]
test r10, r10
je 0x18008e0f6
test r9d, r9d
je 0x18008e0bd
test r8, r8
je 0x18008e0f6
test rdx, rdx
je 0x18008e0f6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18008e0f6
mov r8d, dword [rsp + 0x48]
lea eax, [r8 - 1]
cmp eax, 0xf
ja 0x18008e0f6
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x18008e0f6
mov r8, r11
mov rcx, rdi
mov rdx, rbx
mov qword [rsp + 0x30], r10
mov rbx, qword [rsp + 0x10]
pop rdi
jmp 0x18008b260
mov rbx, qword [rsp + 0x10]
mov eax, 0xffffff53
pop rdi
ret