Function at 0x140047960
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1413f5a70]
mov rbx, r8
movss xmm0, dword [0x140103e70]
mov rdi, rdx
mov r11, rcx
mov r10d, 0xc116b
comiss xmm0, dword [rax + 0x118]
jbe 0x140047a8d
movss xmm0, dword [0x140103e6c]
comiss xmm0, dword [rax + 0x11c]
jbe 0x140047a8d
mov ecx, dword [0x14142d400]
cmp ecx, 0xffffffff
je 0x140047a38
movss xmm3, dword [0x140103cec]
mov edx, ecx
mov r10d, 0xc116f
and edx, 2
je 0x1400479d7
movaps xmm4, xmm3
jmp 0x1400479da
xorps xmm4, xmm4
and ecx, 1
jne 0x1400479e2
xorps xmm3, xmm3
movss xmm0, dword [0x140103db4]
test edx, edx
je 0x1400479f9
movss xmm2, dword [rax + 0x14]
subss xmm2, xmm0
jmp 0x1400479fc
movaps xmm2, xmm0
test ecx, ecx
je 0x140047a0b
movss xmm1, dword [rax + 0x10]
subss xmm1, xmm0
jmp 0x140047a0e
movaps xmm1, xmm0
movss dword [rax + 0x1ae4], xmm1
movss dword [rax + 0x1ae8], xmm2
movss dword [rax + 0x1aec], xmm3
movss dword [rax + 0x1af0], xmm4
mov dword [rax + 0x1ac8], 1
mov dword [rax + 0x1b28], 0x3d4ccccd
lea rcx, [rbp + 0x28]
mov dword [rax + 0x1ae0], 1
mov eax, dword [str.bTWQG6]
mov dword [rbp + 0x28], eax
movzx eax, word [0x14010360c]
xor byte [rbp + 0x29], 0x31
xor byte [rbp + 0x2a], 0x32
xor byte [rbp + 0x2b], 0x33
mov word [rbp + 0x2c], ax
movzx eax, byte [0x14010360e]
xor byte [rbp + 0x2c], 0x34
xor byte [rbp + 0x2d], 0x35
xor al, 0x36
mov byte [rbp + 0x28], 0x52
mov byte [rbp + 0x2e], al
jmp 0x140047c78
mov ecx, dword [0x14142d400]
cmp ecx, 0xffffffff
je 0x140047b13
movss xmm3, dword [0x140103cec]
mov edx, ecx
mov r10d, 0xc116f
and edx, 2
je 0x140047ab2
movaps xmm4, xmm3
jmp 0x140047ab5
xorps xmm4, xmm4
and ecx, 1
jne 0x140047abd
xorps xmm3, xmm3
movss xmm0, dword [0x140103db4]
test edx, edx
je 0x140047ad4
movss xmm2, dword [rax + 0x14]
subss xmm2, xmm0
jmp 0x140047ad7
movaps xmm2, xmm0
test ecx, ecx
je 0x140047ae6
movss xmm1, dword [rax + 0x10]
subss xmm1, xmm0
jmp 0x140047ae9
movaps xmm1, xmm0
movss dword [rax + 0x1ae4], xmm1
movss dword [rax + 0x1ae8], xmm2
movss dword [rax + 0x1aec], xmm3
movss dword [rax + 0x1af0], xmm4
mov dword [rax + 0x1ac8], 1
cmp byte [0x1401030d7], 0
mov dword [rax + 0x1b28], 0x3eb33333
mov dword [rax + 0x1ae0], 1
mov rax, qword [str.bTWQG_a7k]
mov qword [rbp + 0x28], rax
je 0x140047c74
xor r8d, r8d
cmp dword [0x140110090], 2
jl 0x140047c33
movdqa xmm2, xmmword [0x140103fa0]
movdqa xmm4, xmmword [0x140104360]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140103fc0]
psubd xmm2, xmm0
movd xmm0, dword [rbp + 0x28]
andps xmm2, xmmword [0x140103fe0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140104000]
xorps xmm2, xmm0
movd dword [rbp + 0x28], xmm2
movdqa xmm2, xmmword [0x140103fb0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140103fc0]
psubd xmm2, xmm0
movd xmm0, dword [rbp + 0x2c]
andps xmm2, xmmword [0x140103fe0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140104000]
xorps xmm2, xmm0
movd dword [rbp + 0x2c], xmm2
jmp 0x140047c74
lea r9, [rbp + 0x28]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140047c40
lea rcx, [rbp + 0x28]
mov r8d, r10d
mov rdx, r11
call fcn.140011bc0
test al, al
je 0x140047c97
mov rdx, rdi
mov rcx, rbx
call fcn.14002df90
call fcn.140014b30
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbp
ret