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.140042528
mov rcx, rax
call fcn.14003c678
movups xmm0, xmmword [0x14006b820]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [0x14006b830]
movups xmmword [rbp - 0x39], xmm1
movups xmm0, xmmword [0x14006b840]
movups xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [0x14006b850]
movsd qword [rbp - 0x19], xmm0
mov eax, dword [0x14006b858]
mov dword [rbp - 0x11], eax
movzx eax, word [0x14006b85c]
mov word [rbp - 0xd], ax
movzx eax, byte [0x14006b85e]
mov byte [rbp - 0xb], al
mov ecx, esi
cmp dword [0x140078018], 2
jl 0x140012e20
movdqa xmm5, xmmword [0x14006c700]
movdqa xmm4, xmmword [0x14006c780]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x14006c720]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x14006c760]
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
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 [0x14006c740]
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
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 [0x14006c740]
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 0x140012e5c
movsxd rax, ecx
lea r8, [rbp - 0x49]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3f
jl 0x140012e30
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
inc r8
cmp byte [rax + r8], sil
jne 0x140012e76
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.1400264c0
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
nop word [rax + rax]
call fcn.14003c64c
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 0x140012fe0
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.1400264c0
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.14001ec50
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140012f61
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fda
call fcn.1400336e0
cmp qword [rbx + 0x10], 0x2c
jne 0x140012eb0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140012fa3
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fe6
call fcn.1400336e0
mov rax, rbx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400336c0
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.1400432f4
int3
call fcn.1400220e0
nop
call fcn.1400432f4
int3