Function at 0x1400041cb
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
movaps xmmword [rsp + 0x320], xmm15
movaps xmmword [rsp + 0x310], xmm14
movaps xmmword [rsp + 0x300], xmm13
movaps xmmword [rsp + 0x2f0], xmm12
movaps xmmword [rsp + 0x2e0], xmm11
movaps xmmword [rsp + 0x2d0], xmm10
movaps xmmword [rsp + 0x2c0], xmm9
movaps xmmword [rsp + 0x2b0], xmm8
movaps xmmword [rsp + 0x2a0], xmm7
movaps xmmword [rsp + 0x290], xmm6
mov r13, qword [rdx]
mov r8, qword [rdx + 8]
mov r9, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
mov rdx, rax
shr rdx, 3
mov qword [rsp + 0xe8], rdx
movabs rdx, 0xffffffffffffff8
and rdx, rax
and eax, 7
mov qword [rsp + 0xc8], rax
shl rdx, 4
mov qword [rsp + 0xd8], r8
lea rax, [r8 + rdx]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], r9
add rdx, r9
mov qword [rsp + 0xc0], rdx
mov eax, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea rbx, [rdx + rax]
movdqa xmm0, xmmword [rcx + 0x150]
movdqa xmmword [rsp + 0x170], xmm0
movdqa xmm7, xmmword [rcx + 0x140]
movdqa xmm8, xmmword [rcx + 0x130]
movdqa xmm9, xmmword [rcx + 0x120]
movdqa xmm10, xmmword [rcx + 0x110]
movdqa xmm11, xmmword [rcx + 0x100]
movdqa xmm12, xmmword [rcx + 0xf0]
movdqa xmm13, xmmword [rcx + 0xb0]
movdqa xmm14, xmmword [rcx + 0xc0]
movdqa xmm15, xmmword [rcx + 0xd0]
movdqa xmm6, xmmword [rcx + 0xe0]
xor eax, eax
mov r14d, 8
lea r15, [rsp + 0x188]
lea r12, [rsp + 0xf0]
lea rbp, [rsp + 0x1f8]
cmp qword [rsp + 0xe8], rax
je 0x1400047dc
mov qword [rsp + 0xb8], rax
mov rcx, rax
shl rcx, 7
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rcx
lea rsi, [rax + rcx]
and qword [rsp + 0xb0], 0
mov eax, pe_nt_image_headers64
lea rdi, [rsi + rax]
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rbx
and qword [rsp + 0x110], 0
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x120], r14
mov rcx, r15
mov rdx, r12
call fcn.1400014d2
mov rax, qword [rsp + 0x198]
test rax, rax
je 0x1400043db
movdqu xmm0, xmmword [rsp + 0x188]
movdqu xmmword [rax], xmm0
inc qword [rsp + 0xb0]
jmp 0x1400043ac
mov rcx, qword [rsp + 0xb0]
cmp rcx, 7
jbe 0x140004921
mov r14, rbx
mov rax, qword [rsp + 0x28]
add rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
inc qword [rsp + 0xb8]
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x210]
lea rbx, [rsp + 0x30]
mov rdx, rbx
call sub.msvcrt.dll_memcpy
and qword [rsp + 0xb0], 0
mov qword [rsp + 0x188], rsi
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x198], rbx
mov rbx, r14
mov qword [rsp + 0x1a0], r14
and qword [rsp + 0x1a8], 0
mov r14d, 8
mov qword [rsp + 0x1b0], r14
mov qword [rsp + 0x1b8], r14
mov rcx, rbp
mov rdx, r15
call fcn.1400014d2
mov rax, qword [rsp + 0x208]
test rax, rax
je 0x14000449f
movdqu xmm0, xmmword [rsp + 0x1f8]
movdqu xmmword [rax], xmm0
inc qword [rsp + 0xb0]
jmp 0x140004470
mov rcx, qword [rsp + 0xb0]
cmp rcx, 7
jbe 0x140004921
mov ecx, 0x10
mov rdi, r12
lea rsi, [rsp + 0x30]
rep movsq qword [rdi], qword [rsi]
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x170]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [rsp + 0x100]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x110]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x120]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [rsp + 0x130]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x140]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x150]
xorps xmm0, xmm1
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x160]
xorps xmm0, xmm1
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
cmp rax, 0x80
je 0x140004573
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm7
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x140004554
xor eax, eax
cmp rax, 0x80
je 0x140004595
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm8
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x140004575
xor eax, eax
cmp rax, 0x80
je 0x1400045b7
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm9
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x140004597
xor eax, eax
cmp rax, 0x80
je 0x1400045d9
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm10
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x1400045b9
xor eax, eax
cmp rax, 0x80
je 0x1400045fb
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm11
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x1400045db
xor eax, eax
cmp rax, 0x80
je 0x14000461d
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm12
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x1400045fd
xor eax, eax
cmp rax, 0x80
je 0x14000463e
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm6
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x14000461f
xor eax, eax
cmp rax, 0x80
je 0x140004660
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm15
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x140004640
xor eax, eax
cmp rax, 0x80
je 0x140004682
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdec xmm0, xmm14
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x140004662
xor eax, eax
cmp rax, 0x80
je 0x1400046a4
movdqa xmm0, xmmword [rsp + rax + 0x30]
aesdeclast xmm0, xmm13
movdqa xmmword [rsp + rax + 0x30], xmm0
add rax, 0x10
jmp 0x140004684
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmm3, xmmword [rsp + 0x60]
movaps xmm4, xmmword [rsp + 0x70]
movaps xmm5, xmmword [rsp + 0x80]
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x1e0], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x1c0], xmm0
movaps xmm0, xmmword [rsp + 0x1d0]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0x110], xmm2
movaps xmmword [rsp + 0x120], xmm3
movaps xmmword [rsp + 0x130], xmm4
movaps xmmword [rsp + 0x140], xmm5
movaps xmm0, xmmword [rsp + 0x1e0]
movaps xmmword [rsp + 0x150], xmm0
movdqa xmm0, xmmword [rsp + 0x1c0]
movdqa xmmword [rsp + 0x160], xmm0
xor eax, eax
cmp rax, 0x10
je 0x140004760
mov cl, byte [r13 + rax]
xor byte [rsp + rax + 0xf0], cl
inc rax
jmp 0x140004749
mov eax, 1
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x100]
cmp rax, 8
je 0x14000479e
xor r8d, r8d
cmp r8, 0x10
je 0x140004791
mov r9b, byte [rcx + r8]
xor byte [rdx + r8], r9b
inc r8
jmp 0x14000477e
inc rax
add rdx, 0x10
add rcx, 0x10
jmp 0x140004775
mov r8d, pe_nt_image_headers64
mov rcx, qword [rsp + 0x28]
mov rdx, r12
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x280]
call fcn.140001719
movdqu xmm0, xmmword [rsp + 0x30]
movdqu xmmword [r13], xmm0
mov rax, qword [rsp + 0xb8]
jmp 0x14000432e
xor r14d, r14d
lea rsi, [rsp + 0xf0]
lea rdi, [rsp + 0x30]
mov r12, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
cmp r12, r14
je 0x1400048b5
mov r15, r14
shl r15, 4
mov rax, qword [rsp + 0xe0]
lea rbx, [rax + r15]
mov rcx, rsi
mov rdx, rbx
call fcn.140001719
mov rcx, rdi
mov rdx, rbx
call fcn.140001719
movdqa xmm0, xmmword [rsp + 0x30]
pxor xmm0, xmmword [rsp + 0x170]
aesdec xmm0, xmm7
aesdec xmm0, xmm8
aesdec xmm0, xmm9
aesdec xmm0, xmm10
aesdec xmm0, xmm11
aesdec xmm0, xmm12
aesdec xmm0, xmm6
aesdec xmm0, xmm15
aesdec xmm0, xmm14
aesdeclast xmm0, xmm13
movdqa xmmword [rsp + 0x30], xmm0
xor eax, eax
cmp rax, 0x10
je 0x140004893
mov cl, byte [r13 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
jmp 0x14000487f
inc r14
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp + r15], xmm0
movdqu xmm0, xmmword [rsp + 0xf0]
movdqu xmmword [r13], xmm0
jmp 0x1400047fc
movaps xmm6, xmmword [rsp + 0x290]
movaps xmm7, xmmword [rsp + 0x2a0]
movaps xmm8, xmmword [rsp + 0x2b0]
movaps xmm9, xmmword [rsp + 0x2c0]
movaps xmm10, xmmword [rsp + 0x2d0]
movaps xmm11, xmmword [rsp + 0x2e0]
movaps xmm12, xmmword [rsp + 0x2f0]
movaps xmm13, xmmword [rsp + 0x300]
movaps xmm14, xmmword [rsp + 0x310]
movaps xmm15, xmmword [rsp + 0x320]
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 8
call fcn.140020f4a
ud2