Function at 0x140012c20
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x140078010]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rbx, rcx
mov qword [rbp - 0x19], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor ecx, ecx
call fcn.140042488
mov rcx, rax
call fcn.14003c5d8
movups xmm0, xmmword [0x14006be18]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [0x14006be28]
movups xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [str._a_t_v_t5753_35753_r]
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x14006be48]
movsd qword [rbp - 0x29], xmm0
mov eax, dword [0x14006be50]
mov dword [rbp - 0x21], eax
movzx eax, word [0x14006be54]
mov word [rbp - 0x1d], ax
movzx eax, byte [0x14006be56]
mov byte [rbp - 0x1b], al
mov ecx, esi
lea r14d, [rsi + 1]
cmp dword [0x140078018], 2
jl 0x140012e10
movdqa xmm5, xmmword [0x14006c6d0]
movdqa xmm4, xmmword [0x14006c720]
movd xmm6, r14d
movdqa xmm7, xmmword [0x14006c700]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x14006c730]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x55]
mov r8d, dword [rbp - 0x79]
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 [0x14006c710]
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 [0x14006c710]
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 0x140012d10
cmp ecx, 0x3f
jge 0x140012e4b
movsxd rax, ecx
lea r8, [rbp - 0x59]
add r8, rax
nop word [rax + rax]
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3f
jl 0x140012e20
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
lea rax, [rbp - 0x59]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140012e65
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140026420
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, r14d
mov dword [rsp + 0x20], r14d
nop dword [rax]
call fcn.14003c5ac
cdqe
mov r9, qword [rbp - 1]
lea rcx, [r9 - 1]
xor edx, edx
div rcx
movsxd rcx, edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x61], rsi
cmp r9, rcx
jb 0x140012fcd
sub r9, rcx
mov r8, r14
cmp r9, r14
cmovb r8, r9
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rdx, qword [rbp - 0x11]
add rdx, rcx
lea rcx, [rbp - 0x79]
call fcn.140026420
or edi, 2
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0x10
cmovae rdx, qword [rbp - 0x79]
mov r8, qword [rbp - 0x69]
mov rcx, rbx
call fcn.14001ebb0
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x140012f4f
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fc7
call fcn.140033640
cmp qword [rbx + 0x10], 0x2c
jne 0x140012ea0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140012f91
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fd3
call fcn.140033640
mov rax, rbx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140033620
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140043254
int3
call fcn.140022040
nop
call fcn.140043254
int3