Function at 0x1800875a4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
xor r13d, r13d
mov r12d, r13d
mov dword [rbp + 0x120], r13d
lea rdx, str.HDR_REPLACEMENT
lea rcx, [rbp + 0x50]
call fcn.180018310
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.1800185c8
mov r14d, 0x1000
test al, al
jne 0x180087757
cmp byte [0x18010a364], r13b
je 0x1800876c0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x50]
call fcn.180084958
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180087639
mov rbx, qword [rax]
lea rcx, [rbp + 0x120]
call fcn.18007cd04
mov r10, rax
cmp byte [rax + 0x54], r13b
je 0x180087678
mov r9, r13
mov cl, r9b
and cl, 7
shl cl, 3
movabs rax, 0xd993efbb19cfe32d
shr rax, cl
xor byte [r9 + r10], al
inc r9
cmp r9, 0x54
jb 0x180087651
mov byte [r10 + 0x54], r13b
mov r8, rbx
mov rdx, r10
mov ecx, 4
call fcn.18006a848
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1800876c0
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r14
jb 0x1800876bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180087adc
call fcn.18009d1f4
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x18008772d
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1800876ea
mov rcx, rdi
call fcn.180018a78
add rdi, 0x40
cmp rdi, rbx
jne 0x1800876d4
mov rdi, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
sub rdx, rdi
and rdx, 0xffffffffffffffc0
mov rax, rdi
cmp rdx, r14
jb 0x180087717
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180087ae2
mov rcx, rdi
call fcn.18009d1f4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
lea rcx, [rbp + 0x50]
call fcn.18007c1e8
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r15d, r13d
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
sub rax, rdi
sar rax, 6
test rax, rax
je 0x1800876c5
mov rsi, r13
mov bl, byte [rbp + 0x120]
shl rsi, 6
add rsi, rdi
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], r13b
mov dword [rbp - 0x60], r13d
mov qword [rbp - 0x58], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.18000604c
mov eax, dword [rsi + 0x20]
mov dword [rbp - 0x60], eax
mov r14d, r13d
mov rcx, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rcx
sar rax, 6
test rax, rax
je 0x1800879c4
mov rdi, r13
shl rdi, 6
mov rax, qword [rdi + rcx + 0x30]
cmp qword [rdi + rcx + 0x10], rax
jne 0x1800879a6
lea rcx, [rbp - 0x20]
call fcn.18007b974
nop
mov rdx, qword [rsi + 0x28]
add rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.18000604c
mov rdx, qword [rsi + 0x28]
add rdx, 0x20
add rdx, rdi
lea rcx, [rbp]
call fcn.18000604c
mov r8, qword [rsi + 0x28]
add r8, rdi
mov rcx, qword [r8 + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
mov edi, 2
cmp rax, rdi
jb 0x180087af4
mov rax, r8
cmp qword [r8 + 0x18], 0x10
jb 0x18008784d
mov rax, qword [r8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [0x1800d6d20]
mov dl, byte [rbp + 0x120]
lea rcx, [rbp - 0x40]
call fcn.1800090dc
or r12d, 1
mov r8, rdi
lea rdx, [0x1800d6d20]
lea rcx, [rbp - 0x40]
call fcn.180002f70
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r13
mov edi, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], rdi
mov byte [rax], r13b
or r12d, 2
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r13b
jne 0x1800878d2
lea r8, [rax + rdx]
mov byte [rsp + 0x20], bl
mov r9d, 1
lea rcx, [rbp + 0x20]
call fcn.1800794d0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180087930
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008792b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180087ae8
call fcn.18009d1f4
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x58], r13b
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x18008797a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180087975
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180087aee
call fcn.18009d1f4
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x58]
cmp rdx, qword [rbp - 0x48]
je 0x180087993
lea rdx, [rbp - 0x20]
call fcn.1800788b8
jmp 0x18008799d
lea r8, [rbp - 0x20]
call fcn.180078ac4
nop
lea rcx, [rbp - 0x20]
call fcn.18007c13c
inc r14d
mov rcx, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rcx
sar rax, 6
mov edi, r14d
cmp rdi, rax
jb 0x1800877d8
mov r14, qword [rbp - 0x50]
mov rcx, r14
mov rdi, qword [rbp - 0x58]
sub rcx, rdi
movabs rax, 0x4ec4ec4ec4ec4ec5
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180087a07
lea rdx, [rbp - 0x80]
lea rcx, [0x18010b080]
call fcn.18007a1a4
mov r14, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x180087a78
mov rsi, rdi
cmp rdi, r14
je 0x180087a25
mov rcx, rsi
call fcn.18007c13c
add rsi, 0x68
cmp rsi, r14
jne 0x180087a14
mov rcx, qword [rbp - 0x48]
sub rcx, rdi
movabs rax, 0x4ec4ec4ec4ec4ec5
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x68
mov rax, rdi
mov r14d, 0x1000
cmp rdx, r14
jb 0x180087a6e
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180087ad6
mov rcx, rdi
call fcn.18009d1f4
jmp 0x180087a7e
mov r14d, 0x1000
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180087ab1
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r14
jb 0x180087aac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180087ad6
call fcn.18009d1f4
inc r15d
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
sub rax, rdi
sar rax, 6
mov esi, r15d
cmp rsi, rax
jae 0x1800876c5
jmp 0x18008777d
call fcn.1800a45b8
int3
call fcn.1800a45b8
nop
call fcn.1800a45b8
nop
call fcn.1800a45b8
nop
call fcn.1800a45b8
int3
call fcn.180001e88
int3