Function at 0x394050fe7
Capabilities:
Encrypt data using chaskey

Disassembly:
push r8
emms
push r11
psrld mm3, 0x38
shr r11b, 0x16
push r10
mulps xmm9, xmm10
sar r8w, 0x14
subps xmm15, xmm7
push r14
psrad mm1, 0x28
test r10b, r14b
nop
pminsw mm5, mm3
push r13
sub r10b, r8b
xor r14b, r8b
orps xmm4, xmm13
nop
psrld mm2, 0x1f
pop r13
movlhps xmm15, xmm12
nop
emms
psllq mm7, 0x2f
pop r14
nop
nop
movlhps xmm1, xmm15
pop r10
adc r11d, r8d
mov r11w, 0x11
pop r11
movhlps xmm1, xmm7
pop r8
mov qword [rsp + 8], rcx
push rbx
mov rbx, 1
push r10
push r11
pop r11
pop r10
dec rbx
jne 0x394051055
pop rbx
mov qword [rsp + 0x10], rdx
cmp r11w, bx
jne 0x394051101
push rax
emms
push r14
emms
dec r14
push r15
emms
ror eax, 0x10
movlhps xmm1, xmm11
push rbx
nop
maxps xmm1, xmm10
nop
emms
push r13
cmp ebx, r13d
nop
xor ax, bx
addps xmm3, xmm11
xorps xmm9, xmm1
pop r13
subss xmm13, xmm11
psraw mm0, 0x1d
emms
pslld mm0, 0x10
pop rbx
punpckhwd mm6, mm4
rcl rax, 1
sub eax, 0xe
pop r15
pmaxsw mm5, mm2
nop
pop r14
pmaddwd mm1, mm5
pop rax
jmp 0x394051118
push r8
nop
pcmpgtw mm0, mm1
push rbx
shl r8w, 0x14
pop rbx
shr r8w, 0x15
inc r8
pop r8
cmp r11w, r13w
jne 0x394051147
push rdx
inc edx
push r13
inc r13
not r13w
pop r13
emms
pop rdx
jmp 0x39405115e
push r11
sar r11w, 0x11
push r15
shr r15b, 6
not r15
pop r15
paddusw mm6, mm7
pop r11
push r12
not r12b
push rbx
mov r12w, bx
dec r12
pop rbx
emms
pop r12
mov qword [rsp + 0x18], r8
push r12
subss xmm15, xmm1
push r15
rcpss xmm2, xmm5
shr r15, 0x16
push rbx
psrlq mm6, 8
rcpps xmm2, xmm8
sbb r12b, 5
push r9
shl r9d, 5
sar r15, 1
rcpps xmm10, xmm15
xor rbx, r15
push r11
ucomiss xmm10, xmm5
rol r12d, 8
packssdw mm7, mm6
mov r11b, r9b
not r9d
pop r11
maxps xmm2, xmm13
punpckldq mm5, mm2
nop
rcr r12d, 0x13
pop r9
xor r15b, bl
por mm1, mm0
nop
pop rbx
psllq mm4, 0x4a
nop
pop r15
nop
pop r12
mov qword [rsp + 0x20], r9
push rcx
psrld mm7, 0x44
rcr cl, 0x17
maxps xmm6, xmm15
inc rcx
push r14
sub cl, r14b
emms
movaps xmm0, xmm9
mulss xmm14, xmm9
pop r14
not rcx
emms
emms
rcr ecx, 0xa
pop rcx
sub rsp, 0x64
cmp r11d, 0x35
jne 0x394051221
push r14
emms
pop r14
jmp 0x394051227
push r11
emms
pop r11
push r10
emms
pop r10
mov rcx, 0xbe61967
push r12
rol r12, 5
shl r12w, 6
emms
punpckhbw mm5, mm7
push r14
nop
add r14, r12
andps xmm10, xmm6
push rcx
psllq mm0, 0x1b
emms
push r10
nop
pop r10
psllq mm7, 0x55
psrld mm7, 0x26
pop rcx
cmp r14b, r12b
andnps xmm3, xmm4
emms
pop r14
nop
rol r12d, 0x13
emms
not r12b
pop r12
call fcn.394048608
push r14
mov r14, 2
push rbx
push r12
pop r12
pop rbx
dec r14
jne 0x394051287
pop r14
mov r15, rax
push rdx
psrlq mm4, 0x5d
nop
dec edx
not dx
pmaxsw mm1, mm3
push r8
sbb dl, 0x17
shl r8d, 1
nop
not r8d
emms
pop r8
xorps xmm7, xmm2
psrlq mm5, 0x4e
emms
psubusw mm5, mm7
emms
minps xmm5, xmm8
pop rdx
mov rcx, 0xbe61967
push rbx
mulps xmm10, xmm6
push rcx
pand mm1, mm6
push rdx
neg dl
push rax
emms
push r9
punpckldq mm3, mm7
push r15
not dl
pop r15
xorps xmm8, xmm0
pop r9
nop
pop rax
pmaxub mm1, mm2
pop rdx
psrad mm1, 0x2b
pop rcx
inc ebx
pop rbx
call fcn.3940487b3
cmp r11d, 0x11
jne 0x39405131c
push r12
rcr r12w, 1
push rcx
nop
xchg r12b, cl
pop rcx
psrad mm0, 0x68
pop r12
jmp 0x394051334
push r14
shr r14w, 8
push r11
pcmpeqd mm5, mm7
addss xmm1, xmm0
pop r11
psrld mm6, 0xc
pop r14
push r8
emms
push rbx
nop
sub r8b, bl
pop rbx
nop
pop r8
add rsp, 0x64
cmp r11w, bx
jne 0x3940513ee
push r12
psubw mm2, mm3
push r13
emms
neg r12w
push r15
not r12
pcmpgtw mm7, mm1
emms
push r11
nop
neg r15
nop
emms
pop r11
cmp r15b, r12b
pcmpgtw mm0, mm6
pslld mm2, 3
pop r15
not r13b
nop
pop r13
nop
pop r12
jmp 0x39405143d
cmp r11b, 0x31
jne 0x394051419
push r10
neg r10d
push r14
mov r14b, 0x11
movups xmm3, xmm11
pop r14
nop
pop r10
jmp 0x394051429
push rax
nop
push r12
neg r12w
neg rax
pop r12
emms
pop rax
push r13
paddsw mm0, mm4
push r8
emms
movups xmm9, xmm3
pop r8
inc r13
pop r13
push r9
nop
dec r9
ror r9w, 0xa
push rdx
psllq mm3, 0x48
sar r9b, 2
nop
push r12
nop
pslld mm2, 0x5f
emms
pop r12
punpcklbw mm0, mm3
mov dx, 0x12
psadbw mm0, mm7
pop rdx
emms
not r9b
not r9
pop r9
mov rcx, qword [rsp + 8]
cmp r11b, bl
jne 0x394051483
push rax
rcr eax, 0x10
pop rax
jmp 0x394051489
push r8
emms
pop r8
push r9
comiss xmm7, xmm13
pop r9
mov rdx, qword [rsp + 0x10]
push r13
punpckldq mm6, mm2
push rax
packssdw mm1, mm0
push r9
mulss xmm14, xmm13
push r12
not eax
push rbx
maxss xmm9, xmm1
push r11
pcmpeqw mm1, mm2
push r10
nop
pop r10
mov bl, 0x10
pop r11
nop
pop rbx
shl r13, 0x15
pop r12
punpckhbw mm0, mm4
pop r9
not al
pop rax
dec r13d
pop r13
mov r8, qword [rsp + 0x18]
push rdx
psraw mm5, 0x37
push r11
shl dl, 0x10
emms
push r9
nop
emms
ror r9w, 0x17
push rcx
emms
mov cl, 0x17
pmaxub mm3, mm1
emms
push rax
inc r11d
test r9, rcx
maxps xmm1, xmm14
neg cl
inc edx
pop rax
neg cx
addps xmm3, xmm14
not ecx
shl rdx, 7
pop rcx
nop
pandn mm5, mm3
and r9, r11
pop r9
psrad mm7, 0x15
pmaxub mm1, mm5
pop r11
nop
pop rdx
mov r9, qword [rsp + 0x20]
cmp r11b, 0xa
je 0x39405161b
push r13
punpcklbw mm1, mm6
neg r13b
push rcx
shl r13, 0x10
neg r13d
push rax
nop
not r13d
push r10
psrlw mm3, 0x35
and r13d, r10d
pop r10
maxss xmm12, xmm4
neg cx
pop rax
not ecx
nop
pop rcx
inc r13
nop
pop r13
cmp edx, r14d
je 0x39405163e
push r9
movaps xmm12, xmm10
punpckhwd mm4, mm3
pslld mm5, 0x53
push r13
mulss xmm9, xmm7
subss xmm0, xmm3
rcr r13w, 0xd
push r8
emms
inc r13
pcmpgtw mm5, mm1
pop r8
nop
punpckhwd mm4, mm2
maxps xmm13, xmm9
pop r13
emms
sar r9d, 7
nop
pop r9
cmp dl, r15b
je 0x39405165c
push r15
ucomiss xmm1, xmm2
push r8
neg r15
dec r8
pop r8
nop
pop r15
cmp rdx, 0x19
je 0x394051676
push r13
rcl r13w, 0x14
pop r13
cmp ebx, r14d
je 0x394051685
push r8
nop
push rdx
emms
push r12
not dx
push rax
emms
push rbx
por mm7, mm0
pop rbx
movhlps xmm13, xmm9
pop rax
emms
pop r12
nop
pop rdx
punpckhbw mm3, mm0
pop r8
cmp rax, 0x4e
je 0x3940516c0
jne 0x394051701
push r13
nop
push rax
nop
push r12
pcmpeqd mm6, mm1
push rcx
dec rcx
pop rcx
psrld mm5, 0x50
pop r12
add r13, rax
pop rax
not r13b
pop r13
jmp 0x394051701
push rbx
comiss xmm5, xmm9
push r11
nop
push r12
addps xmm10, xmm14
pop r12
psllq mm4, 0xe
pop r11
neg ebx
pop rbx
jmp 0x394051701
push rbx
psrlw mm6, 0x4d
rcl bl, 0x14
push rcx
rcpss xmm10, xmm12
pop rcx
emms
psubusw mm6, mm1
pop rbx
jmp 0x394051701
push rbx
nop
nop
push rax
nop
pop rax
emms
psrad mm4, 0x16
pop rbx
jmp 0x394051701
push rdx
movlhps xmm12, xmm2
push r13
comiss xmm11, xmm5
push r9
rol r9d, 1
push r8
emms
push r15
psrad mm5, 0x35
push r11
psubsb mm7, mm4
pop r11
emms
pop r15
shl edx, 0xd
pop r8
emms
pop r9
pslld mm2, 0x4c
pop r13
rcl dx, 0xe
pop rdx
jmp 0x394051701
push r10
psrlw mm3, 0x33
push r15
rcr r15b, 3
push r14
dec r15d
push r11
pslld mm1, 0x29
push r9
pslld mm7, 0x4a
push rax
ror eax, 9
pop rax
psrad mm3, 3
pop r9
psrld mm6, 9
pop r11
neg r10w
pop r14
psrlq mm4, 0x21
pop r15
rcl r10w, 0x13
pop r10
push rbx
sbb bl, 0xa
mulps xmm7, xmm4
push r11
sbb ebx, 9
dec r11
push rdx
sub r11w, bx
andps xmm1, xmm15
push r14
sub r11b, 0xa
sar r14b, 1
push rcx
sub rcx, rbx
psrad mm0, 0x28
pop rcx
rcl r11d, 0x11
xadd rbx, rdx
pop r14
mov edx, 0x11
andnps xmm8, xmm4
pop rdx
psllq mm6, 6
nop
pop r11
rcr bx, 2
psrad mm3, 0x17
pop rbx
mov r10, rcx
cmp r11, 0x3b
jne 0x394051761
push rcx
maxss xmm12, xmm4
pop rcx
jmp 0x394051768
push r15
punpcklwd mm7, mm6
pop r15
push rax
pcmpgtw mm2, mm1
pop rax
jmp r15