Function at 0x180046d10
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xe8
mov rax, qword [rcx + 0x28]
cmp qword [rcx + 0x20], rax
je 0x180047003
mov rax, qword [rcx + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movaps xmmword [r11 - 0x38], xmm8
movaps xmmword [r11 - 0x48], xmm9
movaps xmmword [r11 - 0x58], xmm10
movaps xmmword [r11 - 0x68], xmm11
movaps xmmword [r11 - 0x78], xmm12
movaps xmmword [rsp + 0x60], xmm13
movaps xmmword [rsp + 0x50], xmm14
movaps xmmword [rsp + 0x40], xmm15
movdqu xmm0, xmmword [rax + 0xc0]
movdqu xmm15, xmmword [rax + 0xb0]
movdqa xmmword [rsp + 0x30], xmm0
movdqu xmm4, xmmword [rax]
movdqu xmm5, xmmword [rax + 0x10]
movdqu xmm6, xmmword [rax + 0x20]
movdqu xmm7, xmmword [rax + 0x30]
movdqu xmm8, xmmword [rax + 0x40]
movdqu xmm9, xmmword [rax + 0x50]
movdqu xmm10, xmmword [rax + 0x60]
movdqu xmm11, xmmword [rax + 0x70]
movdqu xmm12, xmmword [rax + 0x80]
movdqu xmm13, xmmword [rax + 0x90]
movdqu xmm14, xmmword [rax + 0xa0]
cmp r9, 4
jb 0x180046f44
mov r10, r9
mov rcx, r8
shr r10, 2
sub rcx, rdx
imul rax, r10, 0xfffffffffffffffc
add r9, rax
jmp 0x180046de6
movdqa xmm0, xmmword [rsp + 0x30]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
pxor xmm3, xmm4
pxor xmm2, xmm4
pxor xmm1, xmm4
aesdec xmm3, xmm5
aesdec xmm2, xmm5
aesdec xmm1, xmm5
aesdec xmm3, xmm6
aesdec xmm2, xmm6
aesdec xmm1, xmm6
aesdec xmm3, xmm7
aesdec xmm2, xmm7
aesdec xmm1, xmm7
aesdec xmm3, xmm8
aesdec xmm2, xmm8
aesdec xmm1, xmm8
aesdec xmm3, xmm9
aesdec xmm2, xmm9
aesdec xmm1, xmm9
aesdec xmm3, xmm10
aesdec xmm2, xmm10
aesdec xmm1, xmm10
aesdec xmm3, xmm11
aesdec xmm2, xmm11
aesdec xmm1, xmm11
aesdec xmm3, xmm12
aesdec xmm2, xmm12
aesdec xmm1, xmm12
aesdec xmm3, xmm13
aesdec xmm2, xmm13
aesdec xmm1, xmm13
aesdec xmm3, xmm14
aesdec xmm2, xmm14
aesdec xmm1, xmm14
aesdec xmm3, xmm15
aesdeclast xmm3, xmm0
aesdec xmm2, xmm15
aesdeclast xmm2, xmm0
aesdec xmm1, xmm15
aesdeclast xmm1, xmm0
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm4
aesdec xmm0, xmm5
aesdec xmm0, xmm6
aesdec xmm0, xmm7
aesdec xmm0, xmm8
aesdec xmm0, xmm9
aesdec xmm0, xmm10
aesdec xmm0, xmm11
aesdec xmm0, xmm12
aesdec xmm0, xmm13
aesdec xmm0, xmm14
aesdec xmm0, xmm15
aesdeclast xmm0, xmmword [rsp + 0x30]
movdqu xmmword [r8], xmm0
add r8, 0x40
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 0x20], xmm2
movdqu xmmword [rcx + rdx + 0x30], xmm1
add rdx, 0x40
sub r10, 1
jne 0x180046de0
test r9, r9
je 0x180046faf
movdqa xmm1, xmmword [rsp + 0x30]
sub r8, rdx
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
pxor xmm0, xmm4
aesdec xmm0, xmm5
aesdec xmm0, xmm6
aesdec xmm0, xmm7
aesdec xmm0, xmm8
aesdec xmm0, xmm9
aesdec xmm0, xmm10
aesdec xmm0, xmm11
aesdec xmm0, xmm12
aesdec xmm0, xmm13
aesdec xmm0, xmm14
aesdec xmm0, xmm15
aesdeclast xmm0, xmm1
movdqu xmmword [r8 + rdx - 0x10], xmm0
sub r9, 1
jne 0x180046f52
movaps xmm14, xmmword [rsp + 0x50]
movaps xmm13, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm11, xmmword [rsp + 0x80]
movaps xmm10, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
movaps xmm15, xmmword [rsp + 0x40]
add rsp, 0xe8
ret
lea r9, str.gold
mov dword [rsp + 0x20], 0x198
lea r8, str.aesni_decrypt_n
lea rdx, str.Key_was_set
lea rcx, str.m_DK.empty____false
call fcn.180043540
int3