Function at 0x180039830
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x188]
sub rsp, 0x270
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, rdx
xor esi, esi
lea r14d, [rsi + 4]
test cl, cl
je 0x1800399d7
lea r9, [0x1800e3898]
cmp byte [0x1800e389f], sil
je 0x180039a14
mov ecx, esi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800399a2
movdqa xmm4, xmmword [0x1800b95a0]
movd xmm6, r14d
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x1800b9500]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800b9520]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.8888888888888888]
movd xmm0, dword [0x1800e3898]
pxor xmm2, xmm0
movd dword [0x1800e3898], xmm2
movdqa xmm3, xmmword [0x1800b9510]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800b9520]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.8888888888888888]
movd xmm0, dword [0x1800e389c]
pxor xmm2, xmm0
movd dword [0x1800e389c], xmm2
jmp 0x180039a14
mov r8, r9
nop word [rax + rax]
mov eax, 0x5397829d
mul ecx
shr edx, 4
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x38
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 8
jl 0x1800399b0
jmp 0x180039a14
movzx eax, byte [0x1800e38c9]
test al, al
je 0x180039a0d
xor byte [0x1800e38c4], 0x38
xor byte [0x1800e38c5], 0x39
xor byte [0x1800e38c6], 0x3a
xor byte [0x1800e38c7], 0x3b
xor byte [0x1800e38c8], 0x3c
xor al, 0x3d
mov byte [0x1800e38c9], al
lea r9, [0x1800e38c4]
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0x110], rsi
mov qword [rbp + 0x118], rsi
mov qword [rbp + 0x110], rsi
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x100], sil
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r9 + r8], sil
jne 0x180039a50
mov rdx, r9
lea rcx, [rbp + 0x100]
call fcn.180009130
nop
mov byte [rbp - 0x40], 0
xor eax, eax
mov qword [rbp - 0x38], rax
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.1800496f0
mov byte [rbp - 0x40], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov ecx, 0x20
call fcn.18009d58c
mov rbx, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rbx
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 6
lea rdx, str.sender
mov rcx, rbx
call fcn.180009130
mov qword [rbp + 0xd8], rsi
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rsi
movzx eax, byte [0x1800e386e]
test al, al
je 0x180039b1e
xor byte [0x1800e3868], 0x38
xor byte [0x1800e3869], 0x39
xor byte [0x1800e386a], 0x3a
xor byte [0x1800e386b], 0x3b
xor byte [0x1800e386c], 0x3c
xor byte [0x1800e386d], 0x3d
xor al, 0x3e
mov byte [0x1800e386e], al
lea rax, [0x1800e3868]
mov qword [rbp + 0xd0], rax
mov byte [rbp - 0x28], 0
xor eax, eax
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x28]
call fcn.18008cad0
nop
mov qword [rbp - 0x18], rsi
lea rax, [rbp - 0x40]
mov qword [rbp + 0xd0], rax
lea rax, [rbp - 0x10]
mov qword [rbp + 0xd8], rax
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x50]
call fcn.180043ec0
nop
mov qword [rbp + 0x60], rsi
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1800496f0
mov byte [rsp + 0x30], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
mov ecx, 0x20
call fcn.18009d58c
mov rbx, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], rbx
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov r8, r14
lea rdx, str.type
mov rcx, rbx
call fcn.180009130
mov qword [rbp + 0x128], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x48], 0
xor eax, eax
mov qword [rsp + 0x50], rax
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800496f0
mov byte [rsp + 0x48], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
mov ecx, 0x20
call fcn.18009d58c
mov rbx, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rbx
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 7
lea rdx, str.message
mov rcx, rbx
call fcn.180009130
mov qword [rbp + 0xe8], rsi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x30]
mov qword [rbp + 0xe0], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0xe8], rax
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x68]
call fcn.180043ec0
nop
mov qword [rbp + 0x78], rsi
mov byte [rbp - 0x10], 0
xor eax, eax
mov qword [rbp - 8], rax
xor edx, edx
lea rcx, [rbp - 8]
call fcn.1800496f0
mov byte [rbp - 0x10], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
mov ecx, 0x20
call fcn.18009d58c
mov rbx, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], rbx
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 7
lea rdx, str.message
mov rcx, rbx
call fcn.180009130
mov qword [rbp + 0x138], rsi
mov qword [rbp - 8], rbx
mov qword [rbp], rsi
mov byte [rbp - 0x70], 0
xor eax, eax
mov qword [rbp - 0x68], rax
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.1800496f0
mov byte [rbp - 0x70], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
mov ecx, 0x20
call fcn.18009d58c
mov rbx, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rbx
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov r8, r14
lea rdx, str.type
mov rcx, rbx
call fcn.180009130
mov qword [rbp + 0xf8], rsi
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rsi
mov byte [rbp - 0x58], 0
xor eax, eax
mov qword [rbp - 0x50], rax
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x58]
call fcn.180084030
nop
mov qword [rbp - 0x48], rsi
lea rax, [rbp - 0x70]
mov qword [rbp + 0xf0], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0xf8], rax
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x20]
call fcn.180043ec0
nop
mov qword [rbp + 0x30], rsi
mov byte [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0x68], rax
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1800496f0
mov byte [rsp + 0x60], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov ecx, 0x20
call fcn.18009d58c
mov rbx, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rbx
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 7
lea rdx, str.message
mov rcx, rbx
call fcn.180009130
mov qword [rbp + 0xb8], rsi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x78], 0
xor eax, eax
mov qword [rbp - 0x80], rax
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.180084030
nop
mov qword [rbp - 0x78], rsi
lea rax, [rsp + 0x60]
mov qword [rbp + 0xb0], rax
lea rax, [rbp - 0x70]
mov qword [rbp + 0xb8], rax
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x38]
call fcn.180043ec0
nop
mov qword [rbp + 0x48], rsi
lea rax, [rbp + 0x20]
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0xb8], rax
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 8]
call fcn.180043ec0
nop
mov qword [rbp + 0x18], rsi
lea rax, [rbp - 0x10]
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0xb8], rax
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x80]
call fcn.180043ec0
nop
mov qword [rbp + 0x90], rsi
lea rax, [rbp + 0x50]
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0x98]
mov qword [rbp + 0xb8], rax
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x140]
call fcn.180043ec0
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x15]
lea rcx, [rbp + 0x50]
call fcn.18009d608
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x16]
lea rcx, [rbp - 0x10]
call fcn.18009d608
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x16]
lea rcx, [rbp + 0x20]
call fcn.18009d608
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x16]
lea rcx, [rsp + 0x60]
call fcn.18009d608
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x16]
lea rcx, [rbp - 0x70]
call fcn.18009d608
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x16]
lea rcx, [rsp + 0x30]
call fcn.18009d608
nop
lea r9, [0x1800397f0]
mov edx, 0x18
lea r8d, [rdx - 0x16]
lea rcx, [rbp - 0x40]
call fcn.18009d608
cmp qword [0x1800e3820], 0
je 0x18003a069
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x140]
call fcn.180043840
nop
mov rdx, rax
mov rcx, qword [0x1800e3820]
call fcn.1800395f0
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x18003a050
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a04b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a04b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009d5c8
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xb0], 0
movzx edx, byte [rbp + 0x140]
lea rcx, [rbp + 0x148]
call fcn.1800496f0
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x18003a0c1
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a0bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a0bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009d5c8
mov qword [rbp + 0x110], rsi
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x100], 0
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret