Function at 0x140047840
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 [0x1413f3ba0]
mov rbx, r8
movss xmm0, dword [0x140103e50]
mov rdi, rdx
mov r11, rcx
mov r10d, 0xc116b
comiss xmm0, dword [rax + 0x118]
jbe 0x14004796d
movss xmm0, dword [0x140103e4c]
comiss xmm0, dword [rax + 0x11c]
jbe 0x14004796d
mov ecx, dword [0x14142b540]
cmp ecx, 0xffffffff
je 0x140047918
movss xmm3, dword [0x140103cd4]
mov edx, ecx
mov r10d, 0xc116f
and edx, 2
je 0x1400478b7
movaps xmm4, xmm3
jmp 0x1400478ba
xorps xmm4, xmm4
and ecx, 1
jne 0x1400478c2
xorps xmm3, xmm3
movss xmm0, dword [0x140103d9c]
test edx, edx
je 0x1400478d9
movss xmm2, dword [rax + 0x14]
subss xmm2, xmm0
jmp 0x1400478dc
movaps xmm2, xmm0
test ecx, ecx
je 0x1400478eb
movss xmm1, dword [rax + 0x10]
subss xmm1, xmm0
jmp 0x1400478ee
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 [0x1401029ac]
mov dword [rbp + 0x28], eax
movzx eax, word [0x1401029b0]
xor byte [rbp + 0x29], 0x32
xor byte [rbp + 0x2a], 0x33
xor byte [rbp + 0x2b], 0x34
mov word [rbp + 0x2c], ax
movzx eax, byte [0x1401029b2]
xor byte [rbp + 0x2c], 0x35
xor byte [rbp + 0x2d], 0x36
xor al, 0x37
mov byte [rbp + 0x28], 0x52
mov byte [rbp + 0x2e], al
jmp 0x140047b58
mov ecx, dword [0x14142b540]
cmp ecx, 0xffffffff
je 0x1400479f3
movss xmm3, dword [0x140103cd4]
mov edx, ecx
mov r10d, 0xc116f
and edx, 2
je 0x140047992
movaps xmm4, xmm3
jmp 0x140047995
xorps xmm4, xmm4
and ecx, 1
jne 0x14004799d
xorps xmm3, xmm3
movss xmm0, dword [0x140103d9c]
test edx, edx
je 0x1400479b4
movss xmm2, dword [rax + 0x14]
subss xmm2, xmm0
jmp 0x1400479b7
movaps xmm2, xmm0
test ecx, ecx
je 0x1400479c6
movss xmm1, dword [rax + 0x10]
subss xmm1, xmm0
jmp 0x1400479c9
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 [str.8f_R_Ahhzex_], 0
mov dword [rax + 0x1b28], 0x3eb33333
mov dword [rax + 0x1ae0], 1
mov rax, qword [0x140102de0]
mov qword [rbp + 0x28], rax
je 0x140047b54
xor r8d, r8d
cmp dword [0x140110090], 2
jl 0x140047b13
movdqa xmm2, xmmword [0x140103f80]
movdqa xmm4, xmmword [0x140104340]
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 [0x140103fb0]
psubd xmm2, xmm0
movd xmm0, dword [rbp + 0x28]
andps xmm2, xmmword [0x140103fc0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140103ff0]
xorps xmm2, xmm0
movd dword [rbp + 0x28], xmm2
movdqa xmm2, xmmword [0x140103f90]
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 [0x140103fb0]
psubd xmm2, xmm0
movd xmm0, dword [rbp + 0x2c]
andps xmm2, xmmword [0x140103fc0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140103ff0]
xorps xmm2, xmm0
movd dword [rbp + 0x2c], xmm2
jmp 0x140047b54
lea r9, [rbp + 0x28]
nop word [rax + rax]
mov eax, 0x8fb823ef
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, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140047b20
lea rcx, [rbp + 0x28]
mov r8d, r10d
mov rdx, r11
call fcn.140011a80
test al, al
je 0x140047b77
mov rdx, rdi
mov rcx, rbx
call fcn.14002de30
call fcn.1400149f0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbp
ret