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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push r12
push r13
lea rbp, [rsp - 0x3f8]
sub rsp, 0x4f8
xor r12d, r12d
xor eax, eax
mov rsi, rcx
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x10], r12
mov qword [rsp + 0x60], r12
mov qword [rbp + 0x438], r12
mov qword [rbp - 0x18], r12
mov dword [rbp + 0x428], r12d
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], rax
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], rax
call fcn.14000e03b
lea r9, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov r13, rax
mov qword [rbp + 0x50], rax
mov qword [rbp - 0x40], 0x10
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
test eax, eax
jns 0x140005bf7
xor eax, eax
add rsp, 0x4f8
pop r13
pop r12
pop rsi
pop rbp
ret
mov rcx, qword [rbp - 0x40]
mov qword [rsp + 0x4f0], rbx
mov qword [rsp + 0x4e8], rdi
xor eax, eax
mov qword [rsp + 0x4e0], r14
mov r14, qword [rbp - 0x20]
mov rdi, r14
mov qword [rbp + 0x40], r14
lea ebx, [rax + 0x10]
rep stosb byte [rdi], al
mov rdi, r14
nop dword [rax + rax]
mov edx, 0xfe
mov ecx, 1
call fcn.140003040
lea rdi, [rdi + 1]
mov byte [rdi - 1], al
dec rbx
jne 0x140005c30
lea r9, [rbp - 0x70]
lea rdx, [rbp - 0x78]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov qword [rbp - 0x70], 0x10
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
test eax, eax
jns 0x140005c82
xor eax, eax
jmp 0x140005fb9
mov rcx, qword [rbp - 0x70]
xor eax, eax
mov qword [rsp + 0x4d8], r15
mov r15, qword [rbp - 0x78]
lea ebx, [rax + 0x10]
mov rdi, r15
rep stosb byte [rdi], al
mov rdi, r15
nop
mov edx, 0xfe
mov ecx, 1
call fcn.140003040
lea rdi, [rdi + 1]
mov byte [rdi - 1], al
dec rbx
jne 0x140005ca0
lea r9, [rbp - 0x48]
lea rdx, [rbp - 0x38]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov qword [rbp - 0x48], 0x20
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
test eax, eax
js 0x140005faf
mov r8, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x48]
xor eax, eax
mov rdi, r8
mov qword [rbp + 0x48], r8
mov rdx, r8
rep stosb byte [rdi], al
mov rdi, r14
mov ecx, 0x10
sub rdi, r8
movzx eax, byte [rdi + rdx]
lea rdx, [rdx + 1]
mov byte [rdx - 1], al
dec rcx
jne 0x140005d10
mov rcx, r15
lea rdx, [r8 + 0x10]
mov edi, 0x10
nop dword [rax]
movzx eax, byte [rcx]
lea rdx, [rdx + 1]
lea rcx, [rcx + 1]
mov byte [rdx - 1], al
dec rdi
jne 0x140005d30
mov rcx, rsi
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140005d50
sub rcx, rsi
lea r9, [rbp - 0x50]
lea rdx, [rbp - 0x10]
sar rcx, 1
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea rbx, [rcx*2 + 8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x1000
mov qword [rbp - 0x50], rbx
call fcn.140008676
test eax, eax
js 0x140005faf
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x50]
xor eax, eax
mov rdi, r8
mov rdx, r13
rep stosb byte [rdi], al
mov rcx, r13
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140005db0
sub rcx, r13
sar rcx, 1
dec rcx
je 0x140005de1
mov rcx, r8
sub rcx, r13
nop dword [rax]
movzx eax, word [rdx]
lea rdx, [rdx + 2]
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x140005dd0
mov rdi, rsi
mov rdx, r8
mov rcx, rsi
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140005df0
sub rcx, rsi
sar rcx, 1
dec rcx
je 0x140005e51
mov rcx, r8
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140005e10
sub rcx, r8
sar rcx, 1
dec rcx
je 0x140005e51
cmp word [r8], r12w
je 0x140005e3a
nop dword [rax]
add rdx, 2
cmp word [rdx], r12w
jne 0x140005e30
sub rdx, rsi
nop dword [rax]
movzx eax, word [rdi]
lea rdi, [rdi + 2]
mov word [rdx + rdi - 2], ax
test ax, ax
jne 0x140005e40
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x100000
lea eax, [rbx - 2]
mov dword [rsp + 0x38], 1
mov qword [rbp + 8], r8
mov word [rbp], ax
xor eax, eax
mov dword [rsp + 0x30], 7
lea rdi, [rbp + 0x20]
mov ecx, 0x10
lea r9, [rbp + 0x20]
rep stosb byte [rdi], al
lea rax, [rbp]
lea r8, [rbp + 0x58]
lea rcx, [rbp - 0x18]
mov edx, 0x80
mov dword [rsp + 0x28], r12d
mov qword [rbp + 0x68], rax
mov word [rbp + 2], bx
mov dword [rbp + 0x58], 0x30
mov qword [rbp + 0x60], r12
mov dword [rbp + 0x70], 0x40
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], r12
mov qword [rsp + 0x20], r12
call fcn.1400086b8
cmp qword [rbp - 0x18], 0xffffffffffffffff
je 0x140005faf
test eax, eax
js 0x140005faf
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x120
xor eax, eax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
lea rdi, [rbp + 0x30]
mov ecx, 0x10
lea r9, [rbp + 0x30]
rep stosb byte [rdi], al
lea rax, [rbp]
lea r8, [rbp + 0x88]
lea rcx, [rsp + 0x60]
mov edx, 0x120089
mov dword [rsp + 0x28], 0x80
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x88], 0x30
mov qword [rbp + 0x90], r12
mov dword [rbp + 0xa0], 0x40
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], r12
mov qword [rsp + 0x20], r12
call fcn.1400086b8
mov rcx, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x140005faf
test eax, eax
js 0x140005faf
lea r8, [rbp + 0xe8]
lea rdx, [rbp + 0x100]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
call fcn.140008726
test eax, eax
jns 0x140005fdf
mov rcx, qword [rsp + 0x60]
call fcn.1400086ad
xor eax, eax
mov r15, qword [rsp + 0x4d8]
mov rdi, qword [rsp + 0x4e8]
mov rbx, qword [rsp + 0x4f0]
mov r14, qword [rsp + 0x4e0]
add rsp, 0x4f8
pop r13
pop r12
pop rsi
pop rbp
ret
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x120
xor eax, eax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
lea rdi, [rbp + 0x10]
mov ecx, 0x10
lea r9, [rbp + 0x10]
rep stosb byte [rdi], al
lea rax, [rbp]
lea r8, [rbp + 0xb8]
lea rcx, [rbp + 0x438]
mov edx, 0x120116
mov dword [rsp + 0x28], 0x80
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xb8], 0x30
mov qword [rbp + 0xc0], r12
mov dword [rbp + 0xd0], 0x40
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], r12
mov qword [rsp + 0x20], r12
call fcn.1400086b8
cmp qword [rbp + 0x438], 0xffffffffffffffff
je 0x140005faf
test eax, eax
js 0x140005faf
lea r9, [rbp - 8]
lea rdx, [rbp - 0x58]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov qword [rbp - 8], 0x100100
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
test eax, eax
js 0x140005faf
mov r12, qword [rbp - 0x58]
mov rcx, qword [rbp - 8]
xor eax, eax
mov rdi, r12
lea r9, [rbp - 0x68]
lea rdx, [rbp - 0x30]
rep stosb byte [rdi], al
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov qword [rbp - 0x68], 0x100100
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
test eax, eax
js 0x140005faf
mov r14, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x68]
mov rbx, qword [rbp + 0xf0]
xor eax, eax
mov rdi, r14
xor edx, edx
rep stosb byte [rdi], al
mov r13d, edx
jmp 0x140006122
xor edx, edx
xor eax, eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
lea rdi, [rsp + 0x68]
mov ecx, 0x10
rep stosb byte [rdi], al
mov ecx, 0x100000
mov rax, rbx
sub rax, r13
cmp rax, rcx
cmovb rcx, rax
lea rax, [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.1400086d9
mov esi, dword [rsp + 0x70]
test eax, eax
js 0x140005faf
add r13, rsi
mov edx, esi
cmp esi, 0x100000
jae 0x1400061aa
mov r9d, 0x10
mov r8d, 0x100000
mov rcx, r12
mov dword [rbp + 0x428], 1
call fcn.140001bf0
add esi, eax
mov rcx, qword [rbp + 0x40]
lea rdx, [rbp + 0x110]
call fcn.1400058d0
mov eax, esi
shr eax, 4
test eax, eax
jle 0x140006226
movdqa xmm1, xmmword [rbp + 0x1b0]
movdqa xmm2, xmmword [rbp + 0x110]
mov r8, r12
mov rdx, r14
mov edi, eax
sub r8, r14
nop
movdqu xmm0, xmmword [r8 + rdx]
lea rax, [rbp + 0x120]
mov ecx, 9
pxor xmm0, xmmword [r15]
pxor xmm0, xmm2
nop dword [rax + rax]
aesenc xmm0, xmmword [rax]
lea rax, [rax + 0x10]
dec rcx
jne 0x140006200
aesenclast xmm0, xmm1
add rdx, 0x10
movdqu xmmword [rdx - 0x10], xmm0
movdqa xmmword [r15], xmm0
dec rdi
jne 0x1400061e0
xor eax, eax
lea rdi, [rsp + 0x68]
mov ecx, 0x10
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x438]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.1400086c3
test eax, eax
js 0x140005faf
xor eax, eax
mov rdi, r12
mov ecx, 0x100100
rep stosb byte [rdi], al
mov rdi, r14
mov ecx, 0x100100
rep stosb byte [rdi], al
cmp dword [rbp + 0x428], eax
je 0x140006120
lea r9, [rbp - 0x28]
lea rdx, [rbp - 0x60]
mov ebx, 0x100
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov qword [rbp - 0x28], rbx
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
test eax, eax
js 0x140005faf
mov rsi, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x28]
mov r14, qword [rbp + 0x50]
xor eax, eax
lea rdx, [rbp + 0x1c4]
mov rdi, rsi
rep stosb byte [rdi], al
lea rdi, [rbp + 0x1c0]
mov ecx, 0x204
rep stosb byte [rdi], al
mov rax, r14
mov dword [rbp + 0x1c0], 0x800
sub rax, rdx
lea rcx, [rbp + 0x1c4]
lea rdx, [rax + 0x99]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
lea rcx, [rcx + 1]
mov byte [rcx - 1], al
dec rbx
jne 0x140006310
mov r8, qword [rbp + 0x48]
lea rax, [rbp + 0x1c0]
lea r9d, [rbx + 0x20]
lea rdx, [rbp + 0x430]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov word [rbp + 0x3c1], 1
mov byte [rbp + 0x3c3], 1
call fcn.140002e70
mov edx, dword [rbp + 0x430]
mov rcx, rsi
call fcn.140002fb0
xor eax, eax
lea rdi, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov ecx, 0x10
rep stosb byte [rdi], al
mov eax, dword [rbp + 0x430]
mov rcx, qword [rbp + 0x438]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.1400086c3
test eax, eax
js 0x140005faf
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x60]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
mov rcx, qword [rbp + 0x438]
call fcn.1400086ad
mov rcx, qword [rsp + 0x60]
call fcn.1400086ad
mov rcx, qword [rbp - 0x18]
call fcn.1400086ad
lea r8, [rbp - 8]
lea rdx, [rbp - 0x58]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x30]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x10]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x78]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x38]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
mov rbx, qword [rbp + 0x420]
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140006480
sub rcx, rbx
lea r9, [rsp + 0x78]
lea rdx, [rbp - 0x80]
sar rcx, 1
xor r8d, r8d
mov dword [rsp + 0x28], 4
dec ecx
mov dword [rsp + 0x20], 0x1000
lea rax, [rcx*2 + 0x2a]
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x78], rax
call fcn.140008676
test eax, eax
js 0x140005faf
mov r11, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
xor eax, eax
mov rdi, r11
mov rdx, rbx
rep stosb byte [rdi], al
mov rcx, r11
call fcn.140001ac0
lea rdx, [r14 + 0x343]
mov rcx, r11
call fcn.140001b10
lea rdx, [r14 + 0x5b]
mov rcx, r11
call fcn.140001b10
mov rdx, r11
mov rcx, rbx
call fcn.1400054c0
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x80]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
mov rax, r13
jmp 0x140005fb1