Function at 0x1400941e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
vmovups xmmword [rsp + 0x140], xmm6
vmovups xmmword [rsp + 0x150], xmm7
vmovups xmmword [rsp + 0x160], xmm8
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x1d0], r8
mov rbx, r9
xor r8d, r8d
mov qword [rsp + 0x1c0], rcx
mov rcx, qword [rsp + 0x1d0]
and ecx, 0xf
je 0x14009424b
mov r8d, 0x10
sub r8, rcx
mov rcx, r8
mov r8d, 1
cmp qword [rsp + 0x1c0], 0
je 0x140094e6a
test rdx, rdx
je 0x140094e8a
test rax, rax
je 0x140094eaa
add rcx, qword [rsp + 0x1d0]
mov r9, qword [rax]
mov qword [rsp + 0x110], rcx
add rcx, 0x20
mov qword [rax], rcx
test rbx, rbx
je 0x140094470
mov dword [rsp + 0x10c], 9
cmp r9, rcx
jb 0x14009447b
mov rax, qword [rsp + 0x1c0]
cmp qword [rax], 0
je 0x140094e9a
vmovdqu xmm5, xmmword [str.OAES]
lea rcx, [rbx + 0x20]
vmovdqu xmmword [rbx], xmm5
movzx eax, word [rax + 8]
mov byte [rbx + 8], r8b
mov r8, qword [rsp + 0x1d0]
mov word [rbx + 6], ax
mov rax, qword [rsp + 0x1c0]
vmovdqu xmm5, xmmword [rax + 0xa]
vmovdqu xmmword [rbx + 0x10], xmm5
vmovdqu xmmword [rsp + 0x20], xmm5
call sym.memcpy
cmp qword [rsp + 0x110], 0
je 0x140094470
mov rsi, rax
lea rax, [rsp + 0x130]
mov dword [rsp + 0x10c], 0
vmovdqu xmm5, xmmword [0x1402bf110]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x1c0]
movzx r8d, word [rax + 8]
mov rax, 0xffffffffffffffe0
sub rax, rbx
mov qword [rsp + 0x118], rax
jmp 0x140094414
xor ecx, ecx
test al, 4
je 0x140094360
mov ecx, dword [rdx]
mov dword [r9], ecx
mov ecx, 4
test al, 2
je 0x140094372
movzx r10d, word [rdx + rcx]
mov word [r9 + rcx], r10w
add rcx, 2
test al, 1
je 0x14009437e
movzx edx, byte [rdx + rcx]
mov byte [r9 + rcx], dl
mov edx, 0x10
sub rdx, rax
cmp qword [rsp + 0x1d0], 0xf
ja 0x1400943a4
cmp rdx, 0x10
jne 0x1400944b1
vmovdqu xmmword [rsp + 0x130], xmm5
and r8d, 2
jne 0x1400945bf
mov eax, dword [rsp + 0x10c]
test eax, eax
je 0x1400945f3
mov rax, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x1c0]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
movzx r8d, word [rbx + 8]
test r8b, 2
je 0x1400943ef
mov qword [rbx + 0xa], rax
mov qword [rbx + 0x12], rdx
mov rax, qword [rsp + 0x118]
add rsi, 0x10
mov rbx, qword [rsp + 0x110]
sub qword [rsp + 0x1d0], 0x10
add rax, rsi
cmp rax, rbx
jae 0x14009447b
mov eax, 0x10
mov r11, qword [rsp + 0xe0]
cmp qword [rsp + 0x1d0], rax
mov rdx, rsi
cmovbe rax, qword [rsp + 0x1d0]
mov r9, r11
cmp eax, 8
jb 0x140094350
mov r10d, eax
xor edx, edx
and r10d, 0xfffffff8
mov ecx, edx
add edx, 8
mov r9, qword [rsi + rcx]
mov qword [r11 + rcx], r9
cmp edx, r10d
jb 0x14009444a
mov rbx, qword [rsp + 0xe0]
lea r9, [rbx + rdx]
add rdx, rsi
jmp 0x140094350
mov dword [rsp + 0x10c], 0
vmovups xmm6, xmmword [rsp + 0x140]
mov eax, dword [rsp + 0x10c]
vmovups xmm7, xmmword [rsp + 0x150]
vmovups xmm8, xmmword [rsp + 0x160]
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsp + rax + 0x130], 1
cmp rdx, 1
jbe 0x1400943a4
mov byte [rsp + rax + 0x131], 2
cmp rdx, 2
je 0x1400943a4
mov byte [rsp + rax + 0x132], 3
cmp rdx, 3
je 0x1400943a4
mov byte [rsp + rax + 0x133], 4
cmp rdx, 4
je 0x1400943a4
mov byte [rsp + rax + 0x134], 5
cmp rdx, 5
je 0x1400943a4
mov byte [rsp + rax + 0x135], 6
cmp rdx, 6
je 0x1400943a4
mov byte [rsp + rax + 0x136], 7
cmp rdx, 7
je 0x1400943a4
mov byte [rsp + rax + 0x137], 8
cmp rdx, 8
je 0x1400943a4
mov byte [rsp + rax + 0x138], 9
cmp rdx, 9
je 0x1400943a4
mov byte [rsp + rax + 0x139], 0xa
cmp rdx, 0xa
je 0x1400943a4
mov byte [rsp + rax + 0x13a], 0xb
cmp rdx, 0xb
je 0x1400943a4
mov byte [rsp + rax + 0x13b], 0xc
cmp rdx, 0xc
je 0x1400943a4
mov byte [rsp + rax + 0x13c], 0xd
cmp rdx, 0xd
je 0x1400943a4
mov byte [rsp + rax + 0x13d], 0xe
cmp rdx, 0xf
jne 0x1400943a4
and r8d, 2
mov byte [rsp + 0x13f], 0xf
je 0x1400943ae
mov rax, qword [rsp + 0x1c0]
vmovdqu xmm6, xmmword [rax + 0xa]
mov eax, dword [rsp + 0x10c]
vpxor xmm0, xmm6, xmmword [rsp + 0x130]
vmovdqu xmmword [rsp + 0x20], xmm6
vmovdqu xmmword [rsp + 0x130], xmm0
test eax, eax
jne 0x1400943bd
mov rax, qword [rsp + 0x1c0]
mov rbx, qword [rax]
test rbx, rbx
je 0x140094e7a
mov rax, qword [rbx + 0x18]
mov rbx, qword [rbx + 0x20]
vmovdqu xmm6, xmmword [rax]
lea r12, [rbx - 1]
mov qword [rsp + 0x120], rax
vpxor xmm0, xmm6, xmmword [rsp + 0x130]
mov rbx, r12
mov qword [rsp + 0xe8], r12
lea r12, [0x1402befe0]
vmovdqu xmmword [rsp + 0x20], xmm6
vpextrb ecx, xmm0, 0xf
vpextrb r11d, xmm0, 0xe
vpextrb r14d, xmm0, 0xc
vmovdqu xmmword [rsp + 0x130], xmm0
vpextrb ebp, xmm0, 0xb
vpextrb r8d, xmm0, 0xa
vpextrb edi, xmm0, 6
vpextrb byte [rsp + 0x60], xmm0, 0xd
vpextrb r9d, xmm0, 5
vpextrb edx, xmm0, 4
vpextrb r15d, xmm0, 3
vpextrb byte [rsp + 0x58], xmm0, 9
vpextrb r13d, xmm0, 1
vpextrb r10d, xmm0, 0
vpextrb byte [rsp + 0x50], xmm0, 8
vpextrb byte [rsp + 0x38], xmm0, 7
vpextrb byte [rsp + 0x30], xmm0, 2
cmp rbx, 1
jbe 0x140094b65
mov rbx, rax
lea rax, [rsp + 0x134]
mov qword [rsp + 0x20], 1
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x138]
add rbx, 0x10
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x13c]
mov qword [rsp + 0x100], rax
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x40], r13b
mov r13d, ecx
movzx ecx, byte [rsp + 0x50]
mov qword [rsp + 0x128], rsi
mov esi, edx
movzx edx, byte [rsp + 0x60]
mov byte [rsp + 0x48], dil
mov edi, ebp
nop dword [rax]
mov rbp, r10
and r10d, 0xf0
add r10, r12
and ebp, 0xf
mov qword [rsp + 0x58], r10
mov r10, r9
and r9d, 0xf0
add r9, r12
mov qword [rsp + 0x50], rbp
movzx ebp, byte [rsp + 0x30]
and r10d, 0xf
mov qword [rsp + 0x68], r9
mov r9, r8
and r8d, 0xf0
add r8, r12
and r9d, 0xf
mov qword [rsp + 0x60], r10
mov r10, rcx
mov qword [rsp + 0x78], r8
mov r8, r13
and ecx, 0xf0
and r10d, 0xf
and r8d, 0xf
mov qword [rsp + 0x70], r9
mov r9, rbp
and r13d, 0xf0
mov qword [rsp + 0x80], r8
mov r8, rsi
and esi, 0xf0
and r9d, 0xf
add rsi, r12
and r8d, 0xf
mov qword [rsp + 0x30], r9
add r13, r12
mov qword [rsp + 0x90], rsi
mov rsi, rax
and eax, 0xf0
add rcx, r12
and esi, 0xf
mov qword [rsp + 0x88], r8
mov r8, r14
add rax, r12
mov qword [rsp + 0x98], rsi
mov rsi, r11
and r11d, 0xf0
add r11, r12
and esi, 0xf
mov qword [rsp + 0xb8], r10
movzx r10d, byte [rsp + 0x40]
mov qword [rsp + 0xa8], r11
mov r11, r15
and r15d, 0xf0
and r11d, 0xf
mov qword [rsp + 0xa0], rsi
add r15, r12
mov qword [rsp + 0xb0], r11
mov r11, rdx
and edx, 0xf0
and r11d, 0xf
lea rsi, [rdx + r12]
movzx edx, byte [rsp + 0x48]
mov qword [rsp + 0xc0], r11
movzx r11d, byte [rsp + 0x38]
mov qword [rsp + 0xc8], rsi
mov rsi, rbp
mov r9, rdx
and esi, 0xf0
mov rbp, r11
add rsi, r12
and ebp, 0xf
and r8d, 0xf
and r9d, 0xf
mov qword [rsp + 0x38], rbp
mov rbp, rdi
and r14d, 0xf0
and r11d, 0xf0
mov qword [rsp + 0x40], r9
mov r9, rdx
mov rdx, qword [rsp + 0x58]
add r14, r12
mov qword [rsp + 0xd0], r8
mov r8, rdi
add r11, r12
and ebp, 0xf
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0xd8], r14
and r9d, 0xf0
mov r14, r10
add r9, r12
and r10d, 0xf0
and r8d, 0xf0
and r14d, 0xf
movzx edi, byte [rdx + rdi]
mov rdx, qword [rsp + 0x68]
add r10, r12
add r8, r12
vmovd xmm0, edi
mov rdi, qword [rsp + 0x60]
vpinsrb xmm0, xmm0, byte [rdx + rdi], 1
mov rdx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
movzx edi, byte [rdx + rdi]
mov rdx, qword [rsp + 0x90]
vmovd xmm8, edi
mov rdi, qword [rsp + 0x80]
vpinsrb xmm8, xmm8, byte [r13 + rdi], 1
mov rdi, qword [rsp + 0x88]
movzx edi, byte [rdx + rdi]
vpunpcklwd xmm0, xmm0, xmm8
vmovd xmm3, edi
mov rdi, qword [rsp + 0x98]
vpinsrb xmm3, xmm3, byte [rax + rdi], 1
mov rax, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
movzx edi, byte [rdi + rax]
mov rax, qword [rsp + 0xb0]
vmovd xmm7, edi
vpinsrb xmm7, xmm7, byte [r15 + rax], 1
mov rax, qword [rsp + 0xb8]
movzx ecx, byte [rcx + rax]
mov rax, qword [rsp + 0xc0]
vpunpcklwd xmm3, xmm3, xmm7
vpunpckldq xmm0, xmm0, xmm3
vmovd xmm1, ecx
mov rcx, qword [rsp + 0xc8]
vpinsrb xmm1, xmm1, byte [rcx + rax], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd8]
movzx edx, byte [rsi + rax]
mov rax, qword [rsp + 0x38]
vmovd xmm6, edx
vpinsrb xmm6, xmm6, byte [r11 + rax], 1
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rcx + rax]
vpunpcklwd xmm1, xmm1, xmm6
mov rcx, qword [rsp + 0xe0]
vmovd xmm2, eax
mov rax, qword [rsp + 0x40]
vpinsrb xmm2, xmm2, byte [r10 + r14], 1
movzx eax, byte [r9 + rax]
vmovd xmm4, eax
vpinsrb xmm4, xmm4, byte [r8 + rbp], 1
vpunpcklwd xmm2, xmm2, xmm4
vpunpckldq xmm1, xmm1, xmm2
vpunpcklqdq xmm0, xmm0, xmm1
vmovdqu xmmword [rsp + 0x130], xmm0
call sym.oaes_mix_cols.isra.0
mov rcx, qword [rsp + 0xf0]
call sym.oaes_mix_cols.isra.0
mov rcx, qword [rsp + 0xf8]
call sym.oaes_mix_cols.isra.0
mov rcx, qword [rsp + 0x100]
call sym.oaes_mix_cols.isra.0
movzx eax, byte [rsp + 0x131]
xor al, byte [rbx + 1]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x132]
xor al, byte [rbx + 2]
movzx edx, byte [rsp + 0x13a]
xor dl, byte [rbx + 0xa]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x136]
xor al, byte [rbx + 6]
mov r8d, edx
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x137]
xor al, byte [rbx + 7]
movzx esi, byte [rsp + 0x134]
mov byte [rsp + 0x38], al
xor sil, byte [rbx + 4]
movzx ecx, byte [rsp + 0x138]
movzx eax, byte [rsp + 0x139]
xor cl, byte [rbx + 8]
xor al, byte [rbx + 9]
movzx edi, byte [rsp + 0x13b]
movzx edx, byte [rsp + 0x13d]
movzx r10d, byte [rsp + 0x130]
xor dil, byte [rbx + 0xb]
movzx r15d, byte [rsp + 0x133]
xor r10b, byte [rbx]
movzx r9d, byte [rsp + 0x135]
xor r15b, byte [rbx + 3]
movzx r14d, byte [rsp + 0x13c]
xor r9b, byte [rbx + 5]
xor r14b, byte [rbx + 0xc]
xor dl, byte [rbx + 0xd]
add rbx, 0x10
movzx r11d, byte [rsp + 0x13e]
vmovdqu xmm4, xmmword [rbx - 0x10]
vpxor xmm0, xmm4, xmmword [rsp + 0x130]
xor r11b, byte [rbx - 2]
movzx r13d, byte [rsp + 0x13f]
add qword [rsp + 0x20], 1
xor r13b, byte [rbx - 1]
mov rbp, qword [rsp + 0xe8]
vmovdqu xmmword [rsp + 0x130], xmm0
cmp qword [rsp + 0x20], rbp
jne 0x140094728
mov byte [rsp + 0x58], al
mov ebp, edi
movzx edi, byte [rsp + 0x48]
mov byte [rsp + 0x50], cl
mov ecx, r13d
movzx r13d, byte [rsp + 0x40]
mov byte [rsp + 0x60], dl
mov edx, esi
mov rsi, qword [rsp + 0x128]
mov rbx, r10
and r10d, 0xf0
movzx eax, byte [rsp + 0x58]
add r10, r12
and ebx, 0xf
mov qword [rsp + 0x20], rbx
mov rbx, rcx
and ecx, 0xf0
mov qword [rsp + 0x40], r10
mov r10, r9
and ebx, 0xf
add rcx, r12
and r10d, 0xf
mov qword [rsp + 0x78], rbx
mov rbx, r11
and r11d, 0xf0
mov qword [rsp + 0x48], r10
mov r10, rdx
add r11, r12
and r9d, 0xf0
and r10d, 0xf
add r9, r12
and ebx, 0xf
and edx, 0xf0
mov qword [rsp + 0x80], r10
movzx r10d, byte [rsp + 0x50]
add rdx, r12
mov qword [rsp + 0x90], r11
mov r11, r15
and r15d, 0xf0
add r15, r12
mov qword [rsp + 0x68], r9
mov r9, r8
and r11d, 0xf
mov qword [rsp + 0xa0], r15
mov r15, r10
and r9d, 0xf
and r8d, 0xf0
and r15d, 0xf
mov qword [rsp + 0x70], r9
mov r9, rax
and eax, 0xf0
mov qword [rsp + 0x50], r15
mov r15, r10
and r9d, 0xf
add rax, r12
movzx r10d, byte [rsp + 0x60]
mov qword [rsp + 0x58], r9
and r15d, 0xf0
add r8, r12
mov qword [rsp + 0x98], r11
mov r9, r15
movzx r11d, byte [rsp + 0x30]
mov r15, r10
mov qword [rsp + 0x88], rbx
and r10d, 0xf0
add r9, r12
and r15d, 0xf
add r10, r12
mov qword [rsp + 0x60], r15
mov r15, r11
and r11d, 0xf0
lea rbx, [r12 + r11]
movzx r11d, byte [rsp + 0x38]
and r15d, 0xf
mov qword [rsp + 0xa8], rbx
mov rbx, r11
mov qword [rsp + 0x30], r15
mov r15, r14
and ebx, 0xf
and r11d, 0xf0
and r14d, 0xf0
and r15d, 0xf
add r11, r12
lea r14, [r12 + r14]
mov qword [rsp + 0x38], r11
mov r11, r13
and r13d, 0xf0
and r11d, 0xf
lea r13, [r12 + r13]
mov qword [rsp + 0xb0], r11
mov r11, rdi
and r11d, 0xf0
mov qword [rsp + 0xb8], r13
mov r13, rdi
lea rdi, [r12 + r11]
and r13d, 0xf
mov qword [rsp + 0xc0], rdi
mov rdi, rbp
and ebp, 0xf0
and edi, 0xf
add r12, rbp
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0xc8], rdi
mov rdi, qword [rsp + 0x20]
movzx r11d, byte [rbp + rdi]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x48]
vmovd xmm0, r11d
vpinsrb xmm0, xmm0, byte [rbp + rdi], 1
mov rdi, qword [rsp + 0x70]
movzx r11d, byte [r8 + rdi]
mov rdi, qword [rsp + 0x78]
vmovd xmm8, r11d
vpinsrb xmm8, xmm8, byte [rcx + rdi], 1
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0xc8]
movzx r11d, byte [rdx + rcx]
mov rcx, qword [rsp + 0x58]
vpunpcklwd xmm0, xmm0, xmm8
vmovd xmm3, r11d
vpinsrb xmm3, xmm3, byte [rax + rcx], 1
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x88]
mov r11, qword [rsp + 0x98]
movzx edx, byte [rcx + rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
movzx eax, byte [r9 + rax]
vmovd xmm7, edx
vpinsrb xmm7, xmm7, byte [rcx + r11], 1
mov rcx, qword [rsp + 0xa8]
vmovd xmm1, eax
mov rax, qword [rsp + 0x60]
mov r11, qword [rsp + 0xb0]
vpunpcklwd xmm3, xmm3, xmm7
vpinsrb xmm1, xmm1, byte [r10 + rax], 1
mov rax, qword [rsp + 0x30]
vpunpckldq xmm0, xmm0, xmm3
movzx eax, byte [rcx + rax]
vmovd xmm6, eax
mov rax, qword [rsp + 0x38]
vpinsrb xmm6, xmm6, byte [rax + rbx], 1
movzx eax, byte [r14 + r15]
vmovd xmm2, eax
mov rax, qword [rsp + 0xb8]
vpunpcklwd xmm1, xmm1, xmm6
vpinsrb xmm2, xmm2, byte [rax + r11], 1
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + r13]
vmovd xmm4, eax
vpinsrb xmm4, xmm4, byte [r12 + rdi], 1
mov rax, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0x120]
vpunpcklwd xmm2, xmm2, xmm4
shl rax, 4
vpunpckldq xmm1, xmm1, xmm2
vpunpcklqdq xmm0, xmm0, xmm1
vpxor xmm0, xmm0, xmmword [rbx + rax]
vmovdqu xmmword [rsp + 0x130], xmm0
jmp 0x1400943bd
mov dword [rsp + 0x10c], 2
jmp 0x14009447b
mov dword [rsp + 0x10c], 1
jmp 0x1400943bd
mov dword [rsp + 0x10c], 3
jmp 0x14009447b
mov dword [rsp + 0x10c], 7
jmp 0x14009447b
mov dword [rsp + 0x10c], 6
jmp 0x14009447b