Function at 0x476ca0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0xc8
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm10
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rsp + 0x80], xmm12
movaps xmmword [rsp + 0x90], xmm13
movaps xmmword [rsp + 0xa0], xmm14
movaps xmmword [rsp + 0xb0], xmm15
cmp byte [0x00994bc0], 0
jne 0x464e1b
movdqa xmm15, xmmword [rcx + 0x20]
movdqa xmm2, xmmword [rcx + 0x30]
xor edx, edx
mov rax, qword [rcx + 0xe0]
movdqa xmm8, xmmword [rcx + 0x40]
movdqa xmm3, xmm15
aeskeygenassist xmm1, xmm2, 1
movdqa xmm7, xmmword [rcx + 0x50]
movdqa xmm6, xmmword [rcx + 0x60]
pslldq xmm3, 4
pshufd xmm1, xmm1, 0xff
movdqa xmm5, xmmword [rcx + 0x70]
movdqa xmm0, xmm3
pslldq xmm0, 4
movdqa xmm9, xmm0
pxor xmm0, xmm3
movdqa xmm3, xmm2
pslldq xmm9, 4
pslldq xmm3, 4
pxor xmm9, xmm1
pxor xmm9, xmm0
movdqa xmm0, xmm3
pxor xmm9, xmm15
pslldq xmm0, 4
movdqa xmm10, xmm0
aeskeygenassist xmm1, xmm9, 0
pxor xmm0, xmm3
pshufd xmm1, xmm1, 0xaa
pslldq xmm10, 4
movdqa xmm3, xmm9
pslldq xmm3, 4
pxor xmm10, xmm1
pxor xmm10, xmm0
movdqa xmm0, xmm3
pxor xmm10, xmm2
pslldq xmm0, 4
movdqa xmm11, xmm0
aeskeygenassist xmm1, xmm10, 2
pxor xmm0, xmm3
pshufd xmm1, xmm1, 0xff
pslldq xmm11, 4
movdqa xmm3, xmm10
pslldq xmm3, 4
pxor xmm11, xmm1
pxor xmm11, xmm0
movdqa xmm0, xmm3
pxor xmm11, xmm9
pslldq xmm0, 4
movdqa xmm12, xmm0
aeskeygenassist xmm1, xmm11, 0
pxor xmm0, xmm3
pshufd xmm1, xmm1, 0xaa
pslldq xmm12, 4
movdqa xmm3, xmm11
pslldq xmm3, 4
pxor xmm12, xmm1
pxor xmm12, xmm0
movdqa xmm0, xmm3
pxor xmm12, xmm10
pslldq xmm0, 4
movdqa xmm13, xmm0
aeskeygenassist xmm1, xmm12, 4
pxor xmm0, xmm3
pshufd xmm1, xmm1, 0xff
pslldq xmm13, 4
movdqa xmm3, xmm12
pslldq xmm3, 4
pxor xmm13, xmm1
pxor xmm13, xmm0
movdqa xmm0, xmm3
pxor xmm13, xmm11
pslldq xmm0, 4
movdqa xmm14, xmm0
aeskeygenassist xmm1, xmm13, 0
pxor xmm0, xmm3
pshufd xmm1, xmm1, 0xaa
pslldq xmm14, 4
movdqa xmm4, xmm13
pxor xmm14, xmm1
pslldq xmm4, 4
pxor xmm14, xmm0
movdqa xmm1, xmm4
pxor xmm14, xmm12
pslldq xmm1, 4
aeskeygenassist xmm0, xmm14, 8
pshufd xmm3, xmm0, 0xff
movdqa xmm0, xmm1
pxor xmm1, xmm4
pslldq xmm0, 4
movdqa xmm4, xmm14
pxor xmm0, xmm3
pslldq xmm4, 4
pxor xmm0, xmm1
movdqa xmm1, xmm4
pxor xmm0, xmm13
pslldq xmm1, 4
movaps xmmword [rsp], xmm0
aeskeygenassist xmm0, xmm0, 0
pshufd xmm3, xmm0, 0xaa
movdqa xmm0, xmm1
pxor xmm1, xmm4
movdqa xmm4, xmmword [rcx + 0x80]
pslldq xmm0, 4
pxor xmm0, xmm3
movdqa xmm3, xmmword [rcx + 0x90]
pxor xmm0, xmm1
movdqa xmm1, xmmword [rcx + 0xa0]
pxor xmm0, xmm14
movaps xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rcx + 0xb0]
nop dword [rax]
add rdx, 8
pxor xmm8, xmmword [rax]
pxor xmm7, xmmword [rax + 0x10]
sub rax, 0xffffffffffffff80
pxor xmm6, xmmword [rax - 0x60]
pxor xmm5, xmmword [rax - 0x50]
pxor xmm4, xmmword [rax - 0x40]
pxor xmm3, xmmword [rax - 0x30]
pxor xmm1, xmmword [rax - 0x20]
pxor xmm0, xmmword [rax - 0x10]
cmp rdx, 0x20000
je 0x464bb0
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
aesenc xmm8, xmm15
aesenc xmm7, xmm15
aesenc xmm6, xmm15
aesenc xmm5, xmm15
aesenc xmm4, xmm15
aesenc xmm3, xmm15
aesenc xmm1, xmm15
aesenc xmm0, xmm15
aesenc xmm8, xmm2
aesenc xmm7, xmm2
aesenc xmm6, xmm2
aesenc xmm5, xmm2
aesenc xmm4, xmm2
aesenc xmm3, xmm2
aesenc xmm1, xmm2
aesenc xmm0, xmm2
aesenc xmm8, xmm9
aesenc xmm7, xmm9
aesenc xmm6, xmm9
aesenc xmm5, xmm9
aesenc xmm4, xmm9
aesenc xmm3, xmm9
aesenc xmm1, xmm9
aesenc xmm0, xmm9
aesenc xmm8, xmm10
aesenc xmm7, xmm10
aesenc xmm6, xmm10
aesenc xmm5, xmm10
aesenc xmm4, xmm10
aesenc xmm3, xmm10
aesenc xmm1, xmm10
aesenc xmm0, xmm10
aesenc xmm8, xmm11
aesenc xmm7, xmm11
aesenc xmm6, xmm11
aesenc xmm5, xmm11
aesenc xmm4, xmm11
aesenc xmm3, xmm11
aesenc xmm1, xmm11
aesenc xmm0, xmm11
aesenc xmm8, xmm12
aesenc xmm7, xmm12
aesenc xmm6, xmm12
aesenc xmm5, xmm12
aesenc xmm4, xmm12
aesenc xmm3, xmm12
aesenc xmm1, xmm12
aesenc xmm0, xmm12
aesenc xmm8, xmm13
aesenc xmm7, xmm13
aesenc xmm6, xmm13
aesenc xmm5, xmm13
aesenc xmm4, xmm13
aesenc xmm3, xmm13
aesenc xmm1, xmm13
aesenc xmm0, xmm13
aesenc xmm8, xmm14
aesenc xmm7, xmm14
aesenc xmm6, xmm14
aesenc xmm5, xmm14
aesenc xmm4, xmm14
aesenc xmm3, xmm14
aesenc xmm1, xmm14
aesenc xmm0, xmm14
aesenc xmm8, xmmword [rsp]
aesenc xmm7, xmmword [rsp]
aesenc xmm6, xmmword [rsp]
aesenc xmm5, xmmword [rsp]
aesenc xmm4, xmmword [rsp]
aesenc xmm3, xmmword [rsp]
aesenc xmm1, xmmword [rsp]
aesenc xmm0, xmmword [rsp]
aesenc xmm8, xmmword [rsp + 0x10]
aesenc xmm7, xmmword [rsp + 0x10]
aesenc xmm6, xmmword [rsp + 0x10]
aesenc xmm5, xmmword [rsp + 0x10]
aesenc xmm4, xmmword [rsp + 0x10]
aesenc xmm3, xmmword [rsp + 0x10]
aesenc xmm1, xmmword [rsp + 0x10]
aesenc xmm0, xmmword [rsp + 0x10]
cmp rdx, 0x20000
jne 0x464b70
movaps xmmword [rcx + 0x50], xmm7
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmmword [rcx + 0x60], xmm6
movaps xmm10, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
movaps xmmword [rcx + 0x40], xmm8
movaps xmm11, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm12, xmmword [rsp + 0x80]
movaps xmmword [rcx + 0x70], xmm5
movaps xmm13, xmmword [rsp + 0x90]
movaps xmm14, xmmword [rsp + 0xa0]
movaps xmmword [rcx + 0x80], xmm4
movaps xmm15, xmmword [rsp + 0xb0]
movaps xmmword [rcx + 0x90], xmm3
movaps xmmword [rcx + 0xa0], xmm1
movaps xmmword [rcx + 0xb0], xmm0
add rsp, 0xc8
ret
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
xor r8d, r8d
mov edx, 0x200000
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm10, xmmword [rsp + 0x60]
movaps xmm11, xmmword [rsp + 0x70]
movaps xmm12, xmmword [rsp + 0x80]
movaps xmm13, xmmword [rsp + 0x90]
movaps xmm14, xmmword [rsp + 0xa0]
movaps xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
jmp 0x476ca0
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c8
vmovaps xmmword [rsp + 0x240], xmm6
vmovaps xmmword [rsp + 0x250], xmm7
vmovaps xmmword [rsp + 0x260], xmm8
vmovaps xmmword [rsp + 0x270], xmm9
vmovaps xmmword [rsp + 0x280], xmm10
vmovaps xmmword [rsp + 0x290], xmm11
vmovaps xmmword [rsp + 0x2a0], xmm12
vmovaps xmmword [rsp + 0x2b0], xmm13
mov rbp, rdx
mov byte [rsp + 0x6f], r8b
mov rdi, rcx
mov r15, rdx
lea rsi, [rsp + 0x10f]
shr rbp, 5
and rsi, 0xffffffffffffffe0
test r8b, r8b
je 0x477050
mov rbx, rdx
mov r13d, 2
shr rbx, 6
lea rax, [rsi + 0x20]
mov qword [rsp + 0x50], rsi
lea rcx, [rdi + 0x20]
xor r14d, r14d
mov qword [rsp + 0x48], rax
lea rax, [rsi + 0x40]
mov r12, qword [rdi + 0xe0]
lea rdx, [rsi + 0x120]
mov qword [rsp + 0x40], rax
lea rax, [rsi + 0x60]
lea r9, [rsi + 0xe0]
mov qword [rsp + 0x38], rax
lea rax, [rsi + 0x80]
lea r8, [rsi + 0x100]
mov qword [rsp + 0x30], rax
lea rax, [rsi + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsi + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.00475b60
vmovdqu xmm4, xmmword [rdi + 0x40]
mov rax, r12
vmovdqu xmm5, xmmword [rdi + 0x60]
vmovdqu xmm6, xmmword [rdi + 0x80]
vmovdqu xmm7, xmmword [rdi + 0xa0]
vinserti128 ymm3, ymm4, xmmword [rdi + 0x50], 1
vinserti128 ymm2, ymm5, xmmword [rdi + 0x70], 1
vinserti128 ymm0, ymm6, xmmword [rdi + 0x90], 1
vinserti128 ymm1, ymm7, xmmword [rdi + 0xb0], 1
cmp rbp, r13
jb 0x476f28
vmovdqa ymm13, ymmword [rsi + 0x120]
vmovdqa ymm12, ymmword [rsi + 0x100]
xor edx, edx
vmovdqa ymm11, ymmword [rsi + 0xe0]
vmovdqa ymm10, ymmword [rsi + 0xc0]
vmovdqa ymm9, ymmword [rsi + 0xa0]
vmovdqa ymm8, ymmword [rsi + 0x80]
vmovdqa ymm7, ymmword [rsi + 0x60]
vmovdqa ymm6, ymmword [rsi + 0x40]
vmovdqa ymm5, ymmword [rsi + 0x20]
vmovdqa ymm4, ymmword [rsi]
nop dword [rax + rax]
add rdx, 4
vpxor ymm3, ymm3, ymmword [rax]
vpxor ymm2, ymm2, ymmword [rax + 0x20]
sub rax, 0xffffffffffffff80
vpxor ymm0, ymm0, ymmword [rax - 0x40]
vpxor ymm1, ymm1, ymmword [rax - 0x20]
cmp rdx, rbx
jae 0x476e57
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
vaesenc ymm3, ymm3, ymm13
vaesenc ymm2, ymm2, ymm13
vaesenc ymm0, ymm0, ymm13
vaesenc ymm1, ymm1, ymm13
vaesenc ymm3, ymm3, ymm12
vaesenc ymm2, ymm2, ymm12
vaesenc ymm0, ymm0, ymm12
vaesenc ymm1, ymm1, ymm12
vaesenc ymm3, ymm3, ymm11
vaesenc ymm2, ymm2, ymm11
vaesenc ymm0, ymm0, ymm11
vaesenc ymm1, ymm1, ymm11
vaesenc ymm3, ymm3, ymm10
vaesenc ymm2, ymm2, ymm10
vaesenc ymm0, ymm0, ymm10
vaesenc ymm1, ymm1, ymm10
vaesenc ymm3, ymm3, ymm9
vaesenc ymm2, ymm2, ymm9
vaesenc ymm0, ymm0, ymm9
vaesenc ymm1, ymm1, ymm9
vaesenc ymm3, ymm3, ymm8
vaesenc ymm2, ymm2, ymm8
vaesenc ymm0, ymm0, ymm8
vaesenc ymm1, ymm1, ymm8
vaesenc ymm3, ymm3, ymm7
vaesenc ymm2, ymm2, ymm7
vaesenc ymm0, ymm0, ymm7
vaesenc ymm1, ymm1, ymm7
vaesenc ymm3, ymm3, ymm6
vaesenc ymm2, ymm2, ymm6
vaesenc ymm0, ymm0, ymm6
vaesenc ymm1, ymm1, ymm6
vaesenc ymm3, ymm3, ymm5
vaesenc ymm2, ymm2, ymm5
vaesenc ymm0, ymm0, ymm5
vaesenc ymm1, ymm1, ymm5
vaesenc ymm3, ymm3, ymm4
vaesenc ymm2, ymm2, ymm4
vaesenc ymm0, ymm0, ymm4
vaesenc ymm1, ymm1, ymm4
cmp rdx, rbx
jb 0x476e30
add r14, 1
cmp r13, r14
jne 0x476fd0
vmovups xmmword [rdi + 0x40], xmm3
vextracti128 xmmword [rdi + 0x50], ymm3, 1
vextracti128 xmmword [rdi + 0x70], ymm2, 1
vextracti128 xmmword [rdi + 0x90], ymm0, 1
vextracti128 xmmword [rdi + 0xb0], ymm1, 1
vmovups xmmword [rdi + 0x60], xmm2
vmovups xmmword [rdi + 0x80], xmm0
vmovups xmmword [rdi + 0xa0], xmm1
vzeroupper
vmovaps xmm6, xmmword [rsp + 0x240]
vmovaps xmm7, xmmword [rsp + 0x250]
vmovaps xmm8, xmmword [rsp + 0x260]
vmovaps xmm9, xmmword [rsp + 0x270]
vmovaps xmm10, xmmword [rsp + 0x280]
vmovaps xmm11, xmmword [rsp + 0x290]
vmovaps xmm12, xmmword [rsp + 0x2a0]
vmovaps xmm13, xmmword [rsp + 0x2b0]
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r14b, 1
je 0x476dda
cmp byte [rsp + 0x6f], 0
je 0x476dda
mov r8d, 1
mov rdx, r15
mov rcx, rdi
mov byte [rdi + 0x1b0], 0
vmovdqu ymmword [rsp + 0xd0], ymm1
vmovdqu ymmword [rsp + 0xb0], ymm0
vmovdqu ymmword [rsp + 0x90], ymm3
vmovdqu ymmword [rsp + 0x70], ymm2
vzeroupper
call fcn.004761b0
vmovdqu ymm2, ymmword [rsp + 0x70]
mov rax, r12
vmovdqu ymm1, ymmword [rsp + 0xd0]
vmovdqu ymm0, ymmword [rsp + 0xb0]
vmovdqu ymm3, ymmword [rsp + 0x90]
jmp 0x476dda
mov rbx, rbp
mov r13d, 1
jmp 0x476d2f