Function at 0x140003590
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 - 0x68]
sub rsp, 0x140
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14008e180]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r13, rcx
mov qword [rsp + 0x20], rcx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x30], esi
movups xmm0, xmmword [0x140078680]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x140078690]
movups xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [0x1400786a0]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [0x1400786b0]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [0x1400786c0]
movups xmmword [rbp - 0x40], xmm0
mov eax, dword [0x1400786d0]
mov dword [rbp - 0x30], eax
mov ecx, esi
cmp dword [0x14008e1d8], 2
jl 0x140003744
movdqa xmm4, xmmword [0x140078d40]
movdqa xmm3, xmmword [0x140078e00]
movdqa xmm5, xmmword [0x140078d80]
movdqa xmm0, xmmword [0x140078e10]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rbp - 0x7c]
movdqa xmm6, xmmword [0x140078df0]
mov r8d, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
psubb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
psubb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x50
jl 0x140003660
cmp ecx, 0x54
jge 0x14000377d
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
nop
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
shl al, 3
add dl, al
movzx eax, cl
sub al, dl
sub al, 0x6d
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x54
jl 0x140003750
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1400037a0
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call fcn.140004e70
nop
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.140002f10
nop
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002c60
mov rdi, rax
lea rax, [rbp - 0x20]
cmp rax, rdi
je 0x140003844
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140003816
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003811
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003878
call fcn.140066284
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140003884
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000387f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000387f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066284
lea r12, [rbp - 0x20]
mov rdi, qword [rbp - 0x20]
mov r15, qword [rbp - 8]
cmp r15, 0xf
cmova r12, rdi
mov rsi, qword [rbp - 0x10]
test rsi, rsi
je 0x1400038bb
mov r8, rsi
mov edx, 0xa
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400038bb
sub rax, r12
jmp 0x1400038be
mov rax, rbx
cmp rax, 0xffffffffffffffff
je 0x140003969
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
cmp rsi, rax
cmovb rax, rsi
lea rdx, [rbp - 0x20]
cmp r15, 0xf
cmova rdx, rdi
mov r8, rax
lea rcx, [rsp + 0x38]
call fcn.140004e70
mov r14d, 8
mov dword [rsp + 0x30], r14d
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000393f
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000393a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b8d
call fcn.140066284
movups xmm2, xmmword [rsp + 0x38]
movups xmmword [rbp - 0x20], xmm2
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r15, xmm0
movq rsi, xmm1
movq rdi, xmm2
xorps xmm0, xmm0
xorps xmm1, xmm1
test rsi, rsi
je 0x140003a6b
movups xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
lea r12, [rbp - 0x20]
cmp r15, 0xf
cmova r12, rdi
movabs rbx, 0x7fffffffffffffff
cmp rsi, rbx
ja 0x140003c5e
cmp rsi, 0xf
ja 0x1400039c5
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x58], xmm0
jmp 0x140003a60
mov rax, rsi
or rax, 0xf
cmp rax, rbx
jbe 0x140003a01
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140066240
mov rcx, rax
test rax, rax
je 0x140003b8d
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003a3a
mov rbx, rax
mov ecx, reloc.WS2_32.dll_shutdown
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140003a1d
xor eax, eax
jmp 0x140003a3a
cmp rcx, 0x1000
jb 0x140003a35
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003c64
jmp 0x1400039df
call fcn.140066240
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rbx
lea r8, [rsi + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r15, qword [rbp - 8]
mov rdi, qword [rbp - 0x20]
lea rax, [rsp + 0x58]
or r14d, 1
jmp 0x140003adc
mov eax, dword [0x140077b54]
mov dword [rsp + 0x20], eax
movzx eax, word [0x140077b58]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], 0x65
xor byte [rsp + 0x21], 0x94
xor byte [rsp + 0x22], 0x95
xor byte [rsp + 0x23], 0x96
xor al, 0x97
mov byte [rsp + 0x24], al
xor byte [rsp + 0x25], 0x98
movups xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rsp + 0x20]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003ab0
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140004e70
lea rax, [rsp + 0x38]
or r14d, 2
mov r15, qword [rbp - 8]
mov rdi, qword [rbp - 0x20]
xor ebx, ebx
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
or r14d, 4
test r14b, 2
je 0x140003b53
and r14d, 0xfffffffd
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140003b53
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066284
mov r15, qword [rbp - 8]
mov rdi, qword [rbp - 0x20]
test r14b, 1
je 0x140003ba1
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140003ba1
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066284
mov r15, qword [rbp - 8]
mov rdi, qword [rbp - 0x20]
cmp r15, 0xf
jbe 0x140003bdb
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003bd3
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140066284
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x140003c29
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066284
mov rax, r13
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140066220
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001520
nop
call fcn.140001480
int3