Function at 0x140012c30
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
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x140078010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, rcx
mov qword [rbp - 9], rcx
xor esi, esi
mov dword [rbp - 0x79], esi
xor ecx, ecx
call fcn.140042808
mov rcx, rax
call fcn.14003c958
movups xmm0, xmmword [0x14006c408]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [0x14006c418]
movups xmmword [rbp - 0x39], xmm1
movups xmm0, xmmword [0x14006c428]
movups xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [0x14006c438]
movsd qword [rbp - 0x19], xmm0
mov eax, dword [0x14006c440]
mov dword [rbp - 0x11], eax
movzx eax, word [0x14006c444]
mov word [rbp - 0xd], ax
movzx eax, byte [0x14006c446]
mov byte [rbp - 0xb], al
mov ecx, esi
cmp dword [0x140078018], 2
jl 0x140012e28
movdqa xmm5, xmmword [0x14006c6f0]
movdqa xmm4, xmmword [0x14006c780]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x14006c710]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x14006c750]
movdqa xmmword [rbp - 0x69], xmm0
lea rdx, [rbp - 0x45]
mov r8d, dword [rbp - 0x69]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
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, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006c730]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
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, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006c730]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x38
jl 0x140012d20
cmp ecx, 0x3f
jge 0x140012e60
movsxd rax, ecx
lea r8, [rbp - 0x49]
add r8, rax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3f
jl 0x140012e32
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
lea rax, [rbp - 0x49]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140012e80
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.1400267a0
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov edi, 1
mov dword [rbp - 0x79], edi
call fcn.14003c92c
cdqe
mov r9, qword [rbp + 0xf]
lea rcx, [r9 - 1]
xor edx, edx
div rcx
movsxd rcx, edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rsi
mov qword [rbp - 0x51], rsi
cmp r9, rcx
jb 0x140012fe4
sub r9, rcx
mov r8d, 1
cmp r9, r8
cmovb r8, r9
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rdx, qword [rbp - 1]
add rdx, rcx
lea rcx, [rbp - 0x69]
call fcn.1400267a0
or edi, 2
mov dword [rbp - 0x79], edi
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rdx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x59]
mov rcx, rbx
call fcn.14001ef30
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140012f65
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fde
call fcn.1400339c0
cmp qword [rbx + 0x10], 0x2c
jne 0x140012eb4
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140012fa7
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fea
call fcn.1400339c0
mov rax, rbx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400339a0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret
call fcn.1400435d4
int3
call fcn.1400223c0
nop
call fcn.1400435d4
int3