Function at 0x2e49b6e48
Capabilities:
Encrypt data using chaskey

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
push r10
emms
psrlw mm3, 0x3a
pcmpgtd mm4, mm0
emms
xorps xmm0, xmm12
push rcx
rcr r10w, 0x16
rcr r10b, 6
movss xmm0, xmm2
emms
push r14
emms
paddsb mm4, mm1
inc rcx
push rbx
shl r10d, 8
mov cl, 0x11
push r9
cmp r9d, ebx
pop r9
emms
psraw mm3, 0x67
pop rbx
neg r14b
or cl, r14b
nop
pop r14
inc ecx
ucomiss xmm5, xmm1
movss xmm7, xmm12
neg r10d
pop rcx
emms
not r10b
sbb r10b, 0x10
minps xmm10, xmm12
pmullw mm1, mm5
pop r10
mov ecx, 0x10
call sub.msvcrt.dll_malloc
mov rcx, rax
push rcx
ror cx, 8
push r12
psrld mm1, 0x34
dec r12
pop r12
emms
pop rcx
mov edx, 0x90
call sub.msvcrt.dll_realloc
mov rcx, rax
push r8
shl r8b, 0xd
nop
pcmpeqb mm5, mm1
shl r8b, 0x10
punpckhwd mm6, mm7
pcmpeqd mm5, mm7
nop
emms
psraw mm5, 0x3c
emms
movaps xmm13, xmm0
dec r8d
pop r8
call sub.msvcrt.dll_free
cmp dx, r12w
jne 0x2e49b6f2f
push rbx
psrlq mm5, 0x67
push r14
psrad mm7, 0xa
rcl bx, 4
pop r14
movhlps xmm3, xmm8
pop rbx
jmp 0x2e49b6f41
push rcx
shr rcx, 0xf
push r8
sub r8d, 0x16
emms
pop r8
emms
pop rcx
push r11
minps xmm6, xmm11
push r9
paddw mm3, mm7
movlhps xmm3, xmm14
pop r9
subss xmm9, xmm10
pop r11
mov rcx, rbx
call fcn.2e49b5f72
cmp edx, r8d
jne 0x2e49b6fb2
push rdx
emms
psrlw mm5, 0x5b
comiss xmm13, xmm10
psrlq mm0, 0x48
psllq mm6, 0x1c
push r15
emms
nop
rcr dx, 0x16
comiss xmm13, xmm6
rcpss xmm6, xmm4
pop r15
neg rdx
sub edx, 0xc
ucomiss xmm8, xmm11
emms
emms
psrlw mm6, 0x23
pop rdx
jmp 0x2e49b6fd3
push rdx
neg dl
push r9
pcmpgtb mm5, mm4
push r11
psraw mm5, 0xd
push rbx
pslld mm0, 0xb
pop rbx
emms
pop r11
neg r9
pop r9
neg dx
pop rdx
push rdx
emms
pop rdx
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
call fcn.2e49b2f20
movabs rax, 0x7e005a0057
mov qword [rsp + 0x20], rax
push r15
shl r15b, 0xd
push r12
xchg r15w, r12w
push rdx
rol r12b, 0x12
push rbx
pmaxub mm7, mm2
push r8
psrld mm2, 0x61
pop r8
not r12w
pop rbx
sbb dl, r15b
pop rdx
rcr r12, 0x15
pop r12
not r15d
pop r15
movabs rax, 0x73006f0053
mov qword [rsp + 0x28], rax
push r9
not r9
movlhps xmm1, xmm5
mulps xmm14, xmm1
push rdx
mov dx, r9w
nop
nop
push r8
nop
subss xmm11, xmm9
push r13
subps xmm2, xmm12
emms
pop r13
psrad mm4, 0x53
test r8d, r9d
pmaddwd mm2, mm3
pop r8
emms
xchg dl, r9b
pop rdx
rcpps xmm14, xmm11
nop
pop r9
lea rbx, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x2e49b734c
mov rax, rbx
lea rdx, [rsp + 0x26]
push r15
pcmpgtb mm7, mm1
dec r15
minps xmm11, xmm9
push rdx
xorps xmm9, xmm8
emms
inc r15
push rcx
nop
mov edx, r15d
emms
pop rcx
punpcklwd mm4, mm6
psrlq mm4, 0x55
nop
pop rdx
rol r15d, 2
por mm5, mm4
shl r15, 5
pop r15
xor word [rax], 0x96
cmp edx, eax
je 0x2e49b71b3
push rax
mov rax, 1
push r10
pop r10
dec rax
jne 0x2e49b70da
pop rax
cmp r8d, r15d
je 0x2e49b71de
push rcx
psrlq mm6, 0x37
pminsw mm5, mm1
nop
push rdx
nop
dec rcx
push r10
mulss xmm12, xmm1
pop r10
nop
inc rcx
pop rdx
nop
sbb cl, 0x14
nop
pop rcx
cmp ebx, 0x5d
je 0x2e49b722c
push r12
emms
dec r12d
psllq mm6, 0x5f
push rax
emms
nop
emms
push r13
emms
mulss xmm13, xmm14
paddusb mm3, mm2
pop r13
adc r12, rax
dec r12
psllq mm1, 0x15
pop rax
rcpss xmm13, xmm8
subss xmm1, xmm14
sbb r12, 0xa
pop r12
cmp r13d, 0x50
je 0x2e49b7239
push r10
nop
nop
inc r10
emms
movlhps xmm2, xmm13
sub r10d, 0x15
rcr r10, 0xf
mov r10, 2
paddusw mm0, mm2
emms
nop
nop
pop r10
cmp bx, 0x37
je 0x2e49b727f
cmp dx, 0xc
jne 0x2e49b7198
push rdx
pxor mm7, mm0
pop rdx
jmp 0x2e49b71a0
push r15
xorps xmm7, xmm11
pop r15
push rbx
emms
pop rbx
cmp r13, r11
je 0x2e49b7297
jne 0x2e49b72d6
push rdx
movlhps xmm0, xmm6
push r11
emms
sub r11w, 0xc
push r13
ror r11d, 0xb
emms
paddusw mm3, mm2
pop r13
mov r11, rdx
psraw mm3, 0x54
pop r11
neg edx
pop rdx
jmp 0x2e49b72d6
push r8
movlhps xmm6, xmm9
movlhps xmm12, xmm9
subss xmm11, xmm12
mulps xmm15, xmm1
push rdx
psrad mm5, 0x3c
movhlps xmm14, xmm8
dec r8d
push r14
test r14b, r8b
rol r8d, 7
push r9
psrlq mm5, 2
pop r9
nop
nop
pop r14
paddsw mm7, mm2
rol dx, 8
emms
pop rdx
emms
paddusb mm5, mm0
neg r8d
nop
pop r8
jmp 0x2e49b72d6
push r14
shl r14d, 0x13
pop r14
jmp 0x2e49b72d6
cmp edx, r8d
jne 0x2e49b7251
push rdx
nop
push r12
ror dl, 0xa
add r12w, dx
pop r12
sub dl, 0xc
pop rdx
jmp 0x2e49b7267
push r14
maxss xmm10, xmm13
push r10
emms
dec r14
pop r10
sbb r14b, 2
pop r14
push r9
psrlw mm4, 0x36
push r15
mov r9w, r15w
shl r9b, 0xf
pop r15
emms
pop r9
jmp 0x2e49b72d6
push rax
pmaxub mm7, mm1
neg al
push r13
sbb r13w, 0xe
pop r13
emms
sub ax, 6
pop rax
jmp 0x2e49b72d6
push rdx
nop
nop
emms
neg edx
push rbx
add dx, bx
neg bx
pcmpeqb mm4, mm7
push r14
test r14w, dx
test r14b, bl
push r13
movups xmm14, xmm2
pop r13
paddsb mm4, mm7
dec ebx
pop r14
psrlq mm5, 0x3e
packuswb mm2, mm5
psrad mm0, 0x65
pop rbx
psadbw mm3, mm0
nop
neg dl
dec rdx
pop rdx
push r13
pmaxsw mm4, mm3
emms
nop
not r13b
emms
push r8
mulss xmm1, xmm10
xchg r8b, r13b
pslld mm5, 0x41
emms
push rcx
nop
neg r13w
mov r13w, 0x10
push r15
psubusw mm1, mm0
subps xmm11, xmm15
push rdx
xor r15b, r13b
pop rdx
pcmpeqw mm3, mm7
neg r15b
pop r15
nop
dec r8
nop
pop rcx
sbb r13b, 0x11
not r13w
psraw mm1, 0x37
emms
pop r8
andnps xmm0, xmm14
neg r13
orps xmm11, xmm3
nop
subss xmm5, xmm15
pop r13
add rax, 2
cmp rax, rdx
jne 0x2e49b7091
jmp 0x2e49b7387
push r12
nop
push r11
and r12w, r11w
push r14
not r11b
push rdx
emms
push rax
movhlps xmm4, xmm5
push r9
cmp r12, rdx
push rcx
adc eax, r9d
pop rcx
add r14b, r9b
pop r9
add r11w, r14w
pop rax
punpckhbw mm5, mm1
pop rdx
add r11d, r14d
pop r14
nop
pop r11
psrad mm7, 0x23
pop r12
push r10
nop
minps xmm3, xmm0
nop
emms
rcpps xmm0, xmm12
push r8
emms
rol r10d, 0xa
and r10, r8
add r8w, r10w
push r14
nop
nop
xorps xmm6, xmm0
push r11
nop
emms
push r9
or r8d, r11d
pop r9
neg r11d
rol r14w, 0xb
pop r11
pcmpeqd mm7, mm5
movss xmm5, xmm8
nop
pop r14
nop
dec r10d
inc r10d
sub r8, r10
pop r8
not r10b
emms
shr r10, 8
nop
emms
pop r10
add rsp, 0x30
pop rbx
ret