Function at 0x18032d660
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x18032dad6
push r13
mov eax, 0xe0
call fcn.1802fb9b0
sub rsp, rax
movaps xmmword [rsp + 0xa0], xmm6
mov rax, qword [0x1805c4898]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp dword [0x1805f2b90], 0
movaps xmm6, xmm2
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], r14
movsxd r13, edx
mov qword [rsp + 0x30], rcx
je 0x18032d726
lea rcx, [rsp + 0x68]
call fcn.1803004c0
mov edx, sendto
lea r8, [0x1805d65e0]
mov r9d, 0xdf
lea ecx, [rdx - 0xe]
call fcn.1803002e0
lea rdx, [rsp + 0x68]
lea rcx, [0x1805f2b98]
call fcn.180300520
xor ebx, ebx
lea r8, [0x1805d65f8]
test eax, eax
mov edi, ebx
mov r9d, 0xe1
sete dil
lea edx, [rbx + 0x13]
mov dword [rsp + 0x20], edi
lea ecx, [rbx + 6]
call fcn.1803002e0
test edi, edi
jne 0x18032d748
jmp 0x18032d72e
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
mov edx, reloc.WS2_32.dll_select
lea r8, [0x1805d6610]
mov r9d, 0xe6
lea ecx, [rdx - 9]
call fcn.1803002e0
mov r14, qword [0x1805f2748]
mov rax, qword [0x1805f2b80]
movups xmm0, xmmword [0x1805f2b68]
mov qword [rsp + 0x28], rax
mov eax, dword [0x1805f2b78]
lea rcx, [r14 + r13]
mov dword [rsp + 0x88], eax
mov qword [0x1805f2748], rcx
movups xmmword [rsp + 0x78], xmm0
cmp rcx, 0x3ff
jb 0x18032d7c3
movabs rax, 0x40100401004011
mov qword [0x1805f2740], 0x3ff
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 9
imul rax, rax, 0x3ff
sub rcx, rax
mov qword [0x1805f2748], rcx
jmp 0x18032d7e0
mov rax, qword [0x1805f2740]
cmp rax, 0x3ff
jae 0x18032d7e0
cmp rcx, rax
cmova rax, rcx
mov qword [0x1805f2740], rax
mov eax, 0x66666667
mov ecx, r13d
imul r13d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, ebx
test ecx, ecx
setg al
add eax, edx
add dword [0x1805f2b84], eax
test edi, edi
jne 0x18032d828
mov r9d, 0x106
lea r8, [0x1805d6628]
lea edx, [rdi + 0x12]
lea ecx, [rdi + 0xa]
call fcn.1803002e0
mov qword [rsp + 0xd8], rbp
lea rcx, [rsp + 0x38]
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xb0], r15
call fcn.18033de70
mov r12d, ebx
test r13d, r13d
jle 0x18032d9c9
movsxd rsi, r14d
mov r15d, r13d
mov ebp, reloc.WS2_32.dll_sendto
cmp r15d, 0x14
mov edi, r15d
cmovg edi, ebp
call fcn.18031f7f0
mov rdx, rax
lea rcx, [rsp + 0x38]
xor r8d, r8d
call fcn.18033e1a0
test eax, eax
je 0x18032da73
mov r8, rbp
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.18033e3f0
test eax, eax
je 0x18032da73
lea rcx, [0x1805f2750]
movsxd rdx, r14d
add rdx, rcx
lea ebp, [r14 - 0x3ff]
add ebp, edi
lea rcx, [rsp + 0x38]
test ebp, ebp
jle 0x18032d8f6
mov eax, edi
sub eax, ebp
movsxd r8, eax
call fcn.18033e3f0
test eax, eax
je 0x18032da73
movsxd r8, ebp
lea rdx, [0x1805f2750]
lea rcx, [rsp + 0x38]
call fcn.18033e3f0
test eax, eax
je 0x18032da73
movsxd rdi, edi
jmp 0x18032d909
movsxd rdi, edi
mov r8, rdi
call fcn.18033e3f0
test eax, eax
je 0x18032da73
mov rbp, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov rdx, rbp
mov r8, rdi
call fcn.18033e3f0
test eax, eax
je 0x18032da73
mov r8d, 8
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18033e3f0
test eax, eax
je 0x18032da73
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.18033e410
test eax, eax
je 0x18032da73
inc dword [rsp + 0x2c]
add rbp, rdi
mov qword [rsp + 0x30], rbp
mov r8, rbx
test rdi, rdi
jle 0x18032d9af
lea rbp, [0x1805f2750]
nop dword [rax + rax]
movzx eax, byte [rsp + r8 + 0x78]
lea rcx, [rsi + 1]
xor byte [rsi + rbp], al
mov edx, ebx
cmp rcx, 0x3ff
lea eax, [r14 + 1]
mov rsi, rbx
cmovl edx, eax
cmovl rsi, rcx
inc r8
mov r14d, edx
cmp r8, rdi
jl 0x18032d980
add r12d, 0x14
sub r15d, 0x14
mov ebp, reloc.WS2_32.dll_sendto
cmp r12d, r13d
jl 0x18032d861
mov edi, dword [rsp + 0x20]
test edi, edi
jne 0x18032d9f0
mov r9d, 0x13b
lea r8, [0x1805d6640]
lea edx, [rdi + 0x12]
lea ecx, [rdi + 9]
call fcn.1803002e0
nop word [rax + rax]
movdqu xmm1, xmmword [0x1805f2b68]
mov ecx, 4
lea rdx, [0x1805f2b78]
movdqu xmm0, xmmword [rsp + 0x78]
pxor xmm1, xmm0
movdqu xmmword [0x1805f2b68], xmm1
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x88]
xor byte [rbx + rdx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x18032da20
movsd xmm0, qword [0x18049a200]
movsd xmm1, qword [0x1805f2b88]
comisd xmm0, xmm1
jbe 0x18032da57
addsd xmm1, xmm6
movsd qword [0x1805f2b88], xmm1
test edi, edi
jne 0x18032da73
mov r9d, 0x148
lea r8, [0x1805d6658]
lea edx, [rdi + 0x12]
lea ecx, [rdi + 0xa]
call fcn.1803002e0
lea rcx, [rsp + 0x38]
call fcn.18033de90
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1803026c0
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xe0
pop r13
ret