Function at 0x140031680
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140108718]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rdx
mov ebx, ecx
movsd xmm0, qword [0x1400f0af8]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x1400f0b00]
mov dword [rsp + 0x28], eax
movzx eax, word [0x1400f0b04]
mov word [rsp + 0x2c], ax
cmp byte [0x1400f0b05], 0
je 0x14003183e
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140031802
movdqa xmm4, xmmword [0x1400f52c0]
mov eax, 5
movd xmm6, eax
mov eax, Ordinal_35
movd xmm5, eax
movdqa xmm2, xmmword [0x1400f5100]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400f5190]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f5220]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400f5240]
movd xmm0, dword [0x1400f0af8]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x1400f5110]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400f5190]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f5220]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400f5240]
movd xmm0, dword [rsp + 0x24]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xe
jl 0x140031810
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140031860
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.14000b590
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x10]
lea rcx, [0x14010a470]
call fcn.140026110
nop
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x50]
call fcn.14001c6d0
nop
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add eax, ebx
mov dword [rdi], eax
cmp eax, 3
jl 0x140031973
lea rdx, [rsp + 0x30]
lea rcx, [0x14010a470]
call fcn.140027f70
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14003190c
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031907
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003196c
call fcn.1400bbd1c
mov qword [rsp + 0x78], 0
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
call fcn.140032a80
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140031a85
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031a7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031a7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140020bb0
nop
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x30]
lea rcx, [0x14010a470]
call fcn.1400243f0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400319cf
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400319ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031a23
call fcn.1400bbd1c
mov qword [rsp + 0x78], 0
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
call fcn.140032a80
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140031a2f
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031a2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031a2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbd1c
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140031a85
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031a7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031a7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbd1c
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140031ac3
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031abe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031abe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbd1c
movdqa xmm0, xmmword [0x1400f50f0]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 0x10]
call fcn.14002f4d0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140031b1c
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031b17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031b17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbd1c
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400bb950
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret