Function at 0x180185190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
sub rax, r10
cmp rax, r8
jb 0x180185866
mov r8, qword [rcx + 0x38]
mov r9, qword [rcx + 0x40]
sub r9, r8
lea rdx, [r10 + rbx]
mov rcx, rdi
call fcn.1800d71e0
mov rax, qword [rdi]
mov r13, qword [rdi + 8]
sub r13, rax
sub r13, rbx
mov qword [rsp + 0x38], r13
lea r15, [rax + rbx]
mov qword [rbp + 0x7f], r15
mov rax, qword [r14 + 0x58]
sub rax, qword [r14 + 0x50]
test al, 0xf
jne 0x18018584b
mov rdi, qword [r14 + 0x18]
mov qword [rbp + 0x77], rdi
mov edx, 1
lea ecx, [rdx + 0xf]
call fcn.18009de10
mov r12, rax
mov qword [rbp - 1], rax
add rax, 0x10
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [rbp + 7], rax
mov r8, r13
lea rdx, [rbp - 0x51]
mov rcx, r14
call fcn.180184bf0
nop
mov rsi, qword [rax]
mov rbx, qword [rax + 8]
sub rbx, rsi
mov r8, qword [rdi]
mov rdi, qword [r8 + 0x48]
mov rcx, qword [rbp + 0x77]
call qword [r8 + 0x30]
mov rcx, rax
xor edx, edx
mov rax, rbx
div rcx
mov r9, rax
mov r8, r12
mov rdx, rsi
mov rcx, qword [rbp + 0x77]
call rdi
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18018529f
mov rdx, qword [rbp - 0x41]
sub rdx, rcx
mov r8d, 1
call fcn.18009df10
nop
xor edi, edi
mov rcx, qword [r14 + 0x50]
cmp qword [r14 + 0x58], rcx
je 0x18018535d
lea r14, [r12 + 0xf]
lea rsi, [r12 + 0x10]
sub rsi, r12
mov r15, qword [rbp + 0x67]
mov r13, qword [rbp + 0x77]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rcx + rdi]
lea rax, [rdx + 0xf]
cmp r12, rax
ja 0x180185302
cmp r14, rdx
jb 0x180185302
mov rcx, r12
sub rdx, r12
mov r8d, reloc.WS2_32.dll_recv
nop
movzx eax, byte [rdx + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1801852f0
jmp 0x180185315
movdqu xmm1, xmmword [rdx]
movdqu xmm0, xmmword [r12]
xorps xmm1, xmm0
movdqu xmmword [r12], xmm1
mov rax, qword [r13]
mov rbx, qword [rax + 0x48]
mov rcx, r13
call qword [rax + 0x30]
mov rcx, rax
xor edx, edx
mov rax, rsi
div rcx
mov r9, rax
mov r8, r12
mov rdx, r12
mov rcx, r13
call rbx
add rdi, 0x10
mov rcx, qword [r15 + 0x50]
mov rax, qword [r15 + 0x58]
sub rax, rcx
cmp rdi, rax
jne 0x1801852d0
mov r15, qword [rbp + 0x7f]
mov r13, qword [rsp + 0x38]
mov r14, qword [rbp + 0x67]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180184e40
nop
mov edx, 1
lea ecx, [rdx + 0xf]
call fcn.18009de10
mov qword [rbp - 0x39], rax
lea rcx, [rax + 0x10]
mov qword [rbp - 0x29], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rbp - 0x31], rcx
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
sub rbx, rsi
mov rax, qword [rbp + 0x77]
mov r8, qword [rax]
mov rdi, qword [r8 + 0x48]
mov rcx, rax
call qword [r8 + 0x30]
mov rcx, rax
xor edx, edx
mov rax, rbx
div rcx
mov r9, rax
mov r8, qword [rbp - 0x39]
mov rdx, rsi
mov rcx, qword [rbp + 0x77]
call rdi
xor r8d, r8d
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
cmp rcx, rdx
je 0x180185405
nop word [rax + rax]
sub rcx, rdx
sub rcx, r8
add byte [rcx + rdx - 1], 1
jne 0x180185405
inc r8
mov rcx, qword [rsp + 0x28]
mov rax, rcx
mov rdx, qword [rsp + 0x20]
sub rax, rdx
cmp r8, rax
jne 0x1801853e0
mov edx, 1
lea ecx, [rdx + 0xf]
call fcn.18009de10
mov rbx, rax
mov qword [rbp - 0x51], rax
lea rdi, [rax + 0x10]
mov qword [rbp - 0x41], rdi
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rbp - 0x49], rdi
lea rax, [r15 + r13]
mov qword [rsp + 0x38], rax
cmp r15, rax
je 0x180185765
lea rsi, [r12 + 0x10]
sub rsi, r12
mov qword [rbp - 0x79], rsi
nop dword [rax]
sub rax, r15
mov r13d, reloc.WS2_32.dll_recv
cmp rax, r13
cmovb r13, rax
mov rbx, r13
and ebx, 0x1f
mov qword [rbp + 0x7f], rbx
mov r14, r13
sub r14, rbx
mov r9, r15
je 0x1801854ef
mov rcx, r12
sub r9, r12
nop dword [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x71], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x61], xmm1
movups xmm0, xmmword [r9 + rcx]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [r9 + rcx + 0x10]
movups xmmword [rbp - 0x11], xmm1
xor eax, eax
nop dword [rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rbp + rax - 0x21]
movdqu xmm0, xmmword [rbp + rax - 0x71]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax - 0x71], xmm1
add rax, 0x10
cmp rax, 0x20
jl 0x1801854b0
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rcx + 0x10], xmm1
add rcx, 0x20
mov rax, rcx
sub rax, r12
cmp rax, r14
jne 0x180185480
jmp 0x1801854f2
sub r9, r12
mov rdx, r14
cmp r14, r13
je 0x180185581
cmp rbx, 8
jb 0x180185563
lea rcx, [r12 + r14]
lea r10, [r12 - 1]
add r10, r13
lea r11, [r14 + r15]
mov r8, r9
lea rax, [r13 - 1]
add rax, r15
cmp rcx, rax
ja 0x18018552e
cmp r10, r11
jae 0x180185563
mov r8, r15
sub r8, r12
mov rax, rbx
and eax, 7
mov r10, r13
sub r10, rax
nop word [rax + rax]
movq xmm1, qword [rcx + r8]
movq xmm0, qword [rcx]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add rdx, 8
lea rcx, [rcx + 8]
cmp rdx, r10
jne 0x180185540
cmp rdx, r13
je 0x180185581
lea rcx, [r12 + rdx]
mov r8, r13
sub r8, rdx
nop dword [rax]
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x180185570
mov rdi, qword [rbp + 0x77]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x48]
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, rax
xor edx, edx
mov rax, rsi
div rcx
mov r9, rax
mov r8, r12
mov rdx, r12
mov rcx, rdi
call rbx
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
sub rbx, rsi
mov r8, qword [rdi]
mov rdi, qword [r8 + 0x48]
mov rcx, qword [rbp + 0x77]
call qword [r8 + 0x30]
mov rcx, rax
xor edx, edx
mov rax, rbx
div rcx
mov r9, rax
mov rbx, qword [rbp - 0x51]
mov r8, rbx
mov rdx, rsi
mov rcx, qword [rbp + 0x77]
call rdi
test r14, r14
je 0x18018566d
mov rcx, r15
mov rdx, rbx
sub rdx, r15
nop word [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x71], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x61], xmm1
movups xmm0, xmmword [rdx + rcx]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rdx + rcx + 0x10]
movups xmmword [rbp - 0x11], xmm1
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movdqu xmm1, xmmword [rbp + rax - 0x21]
movdqu xmm0, xmmword [rbp + rax - 0x71]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax - 0x71], xmm1
add rax, 0x10
cmp rax, 0x20
jl 0x180185630
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rcx + 0x10], xmm1
add rcx, 0x20
mov rax, rcx
sub rax, r15
cmp rax, r14
jne 0x180185600
mov r9, r15
cmp r14, r13
je 0x180185711
mov r10, qword [rbp + 0x7f]
cmp r10, 8
jb 0x1801856e2
lea rcx, [r14 + r15]
lea rdx, [r13 - 1]
add rdx, r15
lea r8, [rbx + r14]
lea rax, [rbx - 1]
add rax, r13
cmp rcx, rax
ja 0x1801856a3
cmp rdx, r8
jae 0x1801856e2
and r10d, 7
mov rax, r13
sub rax, r10
mov rdx, rbx
sub rdx, r9
nop dword [rax]
nop word [rax + rax]
movq xmm1, qword [rcx + rdx]
movq xmm0, qword [rcx]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add r14, 8
lea rcx, [rcx + 8]
cmp r14, rax
jne 0x1801856c0
cmp r14, r13
je 0x180185711
lea rcx, [r14 + r15]
mov r8, rbx
sub r8, r9
mov rdx, r13
sub rdx, r14
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180185700
xor r9d, r9d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
cmp rdx, rcx
je 0x180185748
sub rdx, rcx
sub rcx, r9
add byte [rcx + rdx - 1], 1
jne 0x180185748
inc r9
mov rdx, qword [rsp + 0x28]
mov rax, rdx
mov rcx, qword [rsp + 0x20]
sub rax, rcx
cmp r9, rax
jne 0x180185723
add r15, r13
mov rax, qword [rsp + 0x38]
cmp r15, rax
mov rsi, qword [rbp - 0x79]
jne 0x180185450
mov r14, qword [rbp + 0x67]
lea rdi, [rbx + 0x10]
mov r8d, reloc.WS2_32.dll_recv
mov rsi, qword [rbp - 0x39]
mov rdx, rsi
mov rcx, r12
call fcn.18009dfd0
mov r9, qword [r14 + 8]
mov rcx, qword [rbp + 0x6f]
mov rdx, qword [rcx + 8]
mov r8, r12
call fcn.1800d71e0
mov rax, qword [r14 + 0x20]
cmp rax, qword [r14 + 0x28]
je 0x18018579c
mov qword [r14 + 0x28], rax
mov rax, qword [r14 + 0x38]
cmp rax, qword [r14 + 0x40]
je 0x1801857aa
mov qword [r14 + 0x40], rax
mov rax, qword [r14 + 0x50]
cmp rax, qword [r14 + 0x58]
je 0x1801857b8
mov qword [r14 + 0x58], rax
test rbx, rbx
je 0x1801857d2
sub rdi, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.18009df10
nop
test rsi, rsi
je 0x1801857ed
lea rdx, [rsi + 0x10]
sub rdx, rsi
mov r8d, 1
mov rcx, rsi
call fcn.18009df10
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18018581b
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov r8d, 1
call fcn.18009df10
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
test r12, r12
je 0x180185837
lea rdx, [r12 + 0x10]
sub rdx, r12
mov r8d, 1
mov rcx, r12
call fcn.18009df10
nop
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [0x1803e3020]
lea rdx, str.finish_msg
lea rcx, str.AD_is_block_size_multiple
call fcn.1800d20d0
int3
lea r8, [0x1803e3020]
lea rdx, str.finish_msg
lea rcx, str.Offset_is_out_of_range
call fcn.1800d20d0
int3