Function at 0x1400c9760
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x58
mov esi, r8d
lea r15, [rcx + 0x28]
mov rbp, rdx
mov r13, rcx
shr esi, 2
mov r12d, r8d
lea eax, [rsi + 6]
mov dword [rcx + 0x20], eax
mov rcx, r15
lea edx, [rax*4 + 4]
call fcn.1400caf20
cmp byte [0x140182983], 0
mov rbx, qword [r13 + 0x130]
jne 0x1400c97b4
call fcn.1400d4c30
cmp byte [0x1401833d4], 0
mov qword [rsp + 0xa8], rdi
mov rcx, rbx
mov qword [rsp + 0x50], r14
je 0x1400c99d0
mov r8, r12
mov rdx, rbp
movaps xmmword [rsp + 0x40], xmm6
movdqu xmm6, xmmword [r12 + rbp - 0x10]
mov rdi, r12
call fcn.1400dc430
shr rdi, 2
lea r10, [0x140149124]
aeskeygenassist xmm0, xmm6, 0
pextrd eax, xmm0, 3
xor eax, dword [rbx]
lea r11, [rdi*4]
lea rdi, [rdi*4 + 0x10]
xor eax, 1
lea r9, [r11 + rbx]
mov dword [r9], eax
mov edx, dword [rbx + 4]
xor edx, eax
lea eax, [rsi + 1]
lea r14, [rax*4]
lea eax, [rsi + 2]
mov dword [r14 + rbx], edx
mov r8d, dword [rbx + 8]
lea rbp, [rax*4]
xor r8d, edx
lea eax, [rsi + 3]
lea rsi, [rax*4]
mov dword [rbx + rbp], r8d
mov eax, dword [rbx + 0xc]
xor eax, r8d
mov dword [rsi + rbx], eax
mov rax, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x100]
lea rdx, [rax + rcx*4]
lea rax, [rdi + rbx]
cmp rax, rdx
je 0x1400c993c
nop dword [rax + rax]
cmp r12d, 0x18
jne 0x1400c989f
mov eax, dword [rbx + 0x24]
mov ecx, dword [rbx + 0x14]
xor eax, dword [rbx + 0x10]
xor ecx, eax
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], ecx
pinsrd xmm6, ecx, 3
jmp 0x1400c98e5
cmp r12d, 0x20
jne 0x1400c98de
pinsrd xmm6, dword [rbx + 0x2c], 3
mov ecx, dword [rbx + 0x14]
aeskeygenassist xmm0, xmm6, 0
pextrd eax, xmm0, 2
xor eax, dword [rbx + 0x10]
xor ecx, eax
mov dword [rbx + 0x30], eax
mov eax, dword [rbx + 0x18]
xor eax, ecx
mov dword [rbx + 0x34], ecx
mov ecx, dword [rbx + 0x1c]
xor ecx, eax
mov dword [rbx + 0x38], eax
mov dword [rbx + 0x3c], ecx
pinsrd xmm6, ecx, 3
jmp 0x1400c98e5
pinsrd xmm6, dword [rbx + 0x1c], 3
mov rbx, r9
add r9, r11
aeskeygenassist xmm0, xmm6, 0
pextrd ecx, xmm0, 3
add r10, 4
xor ecx, dword [r10 - 4]
xor ecx, dword [rbx]
mov dword [r9], ecx
mov eax, dword [rbx + 4]
xor eax, ecx
mov dword [r14 + rbx], eax
mov ecx, dword [rbx + 8]
xor ecx, eax
mov dword [rbx + rbp], ecx
mov eax, dword [rbx + 0xc]
xor eax, ecx
mov dword [rsi + rbx], eax
mov rax, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x100]
lea rdx, [rax + rcx*4]
lea rax, [rdi + rbx]
cmp rax, rdx
jne 0x1400c9880
mov rax, qword [r13 + 8]
lea rcx, [r13 + 8]
call qword [rax + 0x38]
movaps xmm6, xmmword [rsp + 0x40]
test al, al
jne 0x1400ca35b
mov eax, dword [r13 + 0x20]
mov r8, qword [r13 + 0x130]
mov r14d, 4
shl eax, 2
movdqa xmm1, xmmword [r8]
movdqa xmm0, xmmword [r8 + rax*4]
movdqa xmmword [r8], xmm0
movdqa xmmword [r8 + rax*4], xmm1
mov eax, dword [r13 + 0x20]
lea edx, [rax*4 - 4]
cmp edx, r14d
jbe 0x1400c99bb
nop
aesimc xmm0, xmmword [r8 + rdx*4]
mov eax, r14d
add r14d, 4
aesimc xmm1, xmmword [r8 + rax*4]
lea rcx, [r8 + rax*4]
movdqa xmmword [rcx], xmm0
movdqa xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r14d, edx
jb 0x1400c9990
mov eax, r14d
aesimc xmm0, xmmword [r8 + rax*4]
movdqa xmmword [r8 + rax*4], xmm0
jmp 0x1400ca35b
mov r8, qword [rsp + 0x98]
mov rbp, r12
mov r14d, 4
shr rbp, 2
mov r9, r12
mov qword [rsp + 0x28], r12
lea rdi, [rbp*4]
mov qword [rsp + 0x20], r14
mov rdx, rdi
call fcn.1400dded0
sub rdi, r12
lea rcx, [r12 + rbx]
mov r8, rdi
xor edx, edx
call fcn.1400ddc70
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400cb2c0
mov rdx, rbx
mov rcx, rbx
mov r8, rax
call fcn.1400c9310
lea r9, [0x140000000]
lea eax, [rsi - 1]
lea rdi, [rax*4]
mov r11d, esi
lea rsi, [rbp*4]
mov edx, dword [rdi + rbx]
lea r10, [0x14013c984]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
movzx r8d, byte [rcx + r9 + 0x13cab0]
shr eax, 8
movzx ecx, al
xor r8d, 1
movzx eax, byte [rcx + r9 + 0x13cab0]
shl r8d, 8
xor r8d, eax
movzx eax, dl
shr edx, 0x18
movzx eax, byte [rax + r9 + 0x13cab0]
shl r8d, 8
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r9 + 0x13cab0]
shl r8d, 8
lea r9, [rsi + rbx]
xor r8d, eax
lea eax, [r11 + 1]
xor r8d, dword [rbx]
lea rax, [rax*4]
mov dword [r9], r8d
mov edx, dword [rbx + 4]
mov qword [rsp + 0x28], rax
xor edx, r8d
mov dword [rax + rbx], edx
mov r8d, dword [rbx + 8]
lea eax, [r11 + 2]
lea rax, [rax*4]
xor r8d, edx
mov dword [rax + rbx], r8d
mov qword [rsp + 0x20], rax
lea eax, [r11 + 3]
lea rcx, [rax*4]
mov eax, dword [rbx + 0xc]
xor eax, r8d
mov qword [rsp + 0x30], rcx
lea r8, [rbp*4 + 0x10]
mov dword [rcx + rbx], eax
mov rax, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x100]
lea rdx, [rax + rcx*4]
lea rax, [r8 + rbx]
cmp rax, rdx
je 0x1400c9cbc
mov r11, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
mov r13, qword [rsp + 0x30]
mov r14, r8
cmp r12d, 0x18
jne 0x1400c9b5c
mov ecx, dword [rbx + 0x24]
mov eax, dword [rbx + 0x14]
xor ecx, dword [rbx + 0x10]
xor eax, ecx
mov dword [rbx + 0x28], ecx
mov dword [rbx + 0x2c], eax
jmp 0x1400c9bf7
cmp r12d, 0x20
jne 0x1400c9bf7
mov edx, dword [rbx + 0x2c]
mov eax, edx
shr eax, 0x18
movzx ecx, al
lea rax, [0x140000000]
movzx r8d, byte [rcx + rax + 0x13cab0]
mov eax, edx
shr eax, 0x10
shl r8d, 8
movzx ecx, al
lea rax, [0x140000000]
movzx eax, byte [rcx + rax + 0x13cab0]
xor r8d, eax
mov eax, edx
shr eax, 8
shl r8d, 8
movzx ecx, al
lea rax, [0x140000000]
movzx eax, byte [rcx + rax + 0x13cab0]
lea rcx, [0x140000000]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + rcx + 0x13cab0]
mov ecx, dword [rbx + 0x18]
shl r8d, 8
xor r8d, eax
mov eax, dword [rbx + 0x14]
xor r8d, dword [rbx + 0x10]
xor eax, r8d
mov dword [rbx + 0x30], r8d
xor ecx, eax
mov dword [rbx + 0x34], eax
mov eax, dword [rbx + 0x1c]
xor eax, ecx
mov dword [rbx + 0x38], ecx
mov dword [rbx + 0x3c], eax
mov edx, dword [rdi + r9]
mov rbx, r9
add r9, rsi
mov eax, edx
add r10, 4
shr eax, 0x10
movzx ecx, al
lea rax, [0x140000000]
movzx r8d, byte [rcx + rax + 0x13cab0]
mov eax, edx
shr eax, 8
shl r8d, 8
movzx ecx, al
lea rax, [0x140000000]
movzx eax, byte [rcx + rax + 0x13cab0]
lea rcx, [0x140000000]
xor r8d, eax
movzx eax, dl
shr edx, 0x18
movzx eax, byte [rax + rcx + 0x13cab0]
shl r8d, 8
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + rcx + 0x13cab0]
shl r8d, 8
xor r8d, eax
xor r8d, dword [rbx]
xor r8d, dword [r10 - 4]
mov dword [r9], r8d
mov eax, dword [rbx + 4]
xor eax, r8d
mov dword [r11 + rbx], eax
mov ecx, dword [rbx + 8]
xor ecx, eax
mov dword [rbx + rbp], ecx
mov eax, dword [rbx + 0xc]
xor eax, ecx
mov dword [r13 + rbx], eax
mov rax, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x100]
lea rdx, [rax + rcx*4]
lea rax, [r14 + rbx]
cmp rax, rdx
jne 0x1400c9b40
mov r13, qword [rsp + 0x90]
mov r14d, 4
mov rax, qword [r13 + 8]
mov rdi, qword [r13 + 0x130]
lea rcx, [r13 + 8]
call qword [rax + 0x38]
test al, al
je 0x1400c9d11
movzx eax, byte [0x140182981]
test al, al
jne 0x1400c9ce2
call fcn.1400c9530
mov r8d, 0x10
mov rdx, rdi
mov rcx, rdi
call fcn.1400c9310
mov eax, dword [r13 + 0x20]
mov r8d, 0x10
shl eax, 2
lea rcx, [rdi + rax*4]
mov rdx, rcx
call fcn.1400c9310
jmp 0x1400ca32d
movzx eax, byte [0x140182982]
test al, al
jne 0x1400c9d21
call fcn.1400c95d0
mov eax, dword [r13 + 0x20]
lea r12, [0x140000000]
lea esi, [rax*4 - 4]
cmp esi, 4
jbe 0x1400ca0dd
lea ebp, [rsi + 2]
mov r15d, 6
nop word [rax + rax]
mov r9d, dword [rdi + rsi*4]
mov eax, r14d
lea r10, [rdi + rsi*4]
mov r8d, dword [rdi + rax*4]
lea rbx, [rdi + rax*4]
mov eax, r8d
shr eax, 0x18
movzx ecx, al
mov eax, r8d
shr r8d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r11d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r11d, dword [r12 + rax*8 + 0x183881]
movzx eax, r8b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [rbx]
xor r11d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
mov eax, r9d
xor r11d, dword [r12 + rcx*8 + 0x183883]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [r15 - 1]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov dword [rbx], r8d
lea rbx, [rdi + rax*4]
mov dword [r10], r11d
mov r8d, dword [rbx]
mov eax, r8d
shr eax, 0x18
movzx ecx, al
mov eax, r8d
shr r8d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r11d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r11d, dword [r12 + rax*8 + 0x183881]
movzx eax, r8b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [rbx]
xor r11d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [rbp - 1]
xor r11d, dword [r12 + rcx*8 + 0x183883]
mov r9d, dword [rdi + rax*4]
lea r10, [rdi + rax*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov dword [rbx], r8d
mov r9d, dword [rdi + rbp*4]
mov dword [r10], r11d
mov eax, r15d
lea r10, [rdi + rbp*4]
mov r8d, dword [rdi + rax*4]
lea rbx, [rdi + rax*4]
mov eax, r8d
shr eax, 0x18
movzx ecx, al
mov eax, r8d
shr r8d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r11d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r11d, dword [r12 + rax*8 + 0x183881]
movzx eax, r8b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [rbx]
xor r11d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
mov eax, r9d
xor r11d, dword [r12 + rcx*8 + 0x183883]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [r15 + 1]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov dword [rbx], r8d
lea rbx, [rdi + rax*4]
mov dword [r10], r11d
mov r8d, dword [rbx]
mov eax, r8d
shr eax, 0x18
movzx ecx, al
mov eax, r8d
shr r8d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r11d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r11d, dword [r12 + rax*8 + 0x183881]
movzx eax, r8b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [rbx]
xor r11d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [rbp + 1]
xor r11d, dword [r12 + rcx*8 + 0x183883]
mov r9d, dword [rdi + rax*4]
lea r10, [rdi + rax*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
add r14d, 4
add esi, 0xfffffffc
xor r8d, dword [r12 + rcx*8 + 0x183883]
add r15d, 4
lea ebp, [rbp - 4]
mov dword [rbx], r8d
mov dword [r10], r11d
cmp r14d, esi
jb 0x1400c9d50
mov eax, r14d
lea r10, [rdi + rax*4]
mov r9d, dword [r10]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [r14 + 1]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov r9d, dword [rdi + rax*4]
mov dword [r10], r8d
lea r10, [rdi + rax*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [r14 + 2]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov r9d, dword [rdi + rax*4]
mov dword [r10], r8d
lea r10, [rdi + rax*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
lea eax, [r14 + 3]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov r9d, dword [rdi + rax*4]
mov dword [r10], r8d
lea r10, [rdi + rax*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [rcx + r12 + 0x13cab0]
shr eax, 0x10
mov r8d, dword [r12 + rdx*8 + 0x183884]
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x13cab0]
xor r8d, dword [r12 + rax*8 + 0x183881]
movzx eax, r9b
movzx ecx, byte [rax + r12 + 0x13cab0]
movzx eax, byte [r10]
xor r8d, dword [r12 + rcx*8 + 0x183882]
movzx ecx, byte [rax + r12 + 0x13cab0]
xor r8d, dword [r12 + rcx*8 + 0x183883]
mov dword [r10], r8d
mov eax, dword [r13 + 0x20]
mov edx, dword [rdi]
bswap edx
shl eax, 2
mov ecx, dword [rdi + rax*4]
bswap ecx
mov dword [rdi], ecx
mov eax, dword [r13 + 0x20]
shl eax, 2
mov dword [rdi + rax*4], edx
mov eax, dword [r13 + 0x20]
mov edx, dword [rdi + 4]
bswap edx
lea eax, [rax*4 + 1]
mov eax, dword [rdi + rax*4]
bswap eax
mov dword [rdi + 4], eax
mov eax, dword [r13 + 0x20]
lea eax, [rax*4 + 1]
mov dword [rdi + rax*4], edx
mov eax, dword [r13 + 0x20]
mov edx, dword [rdi + 8]
bswap edx
lea eax, [rax*4 + 2]
mov eax, dword [rdi + rax*4]
bswap eax
mov dword [rdi + 8], eax
mov eax, dword [r13 + 0x20]
lea eax, [rax*4 + 2]
mov dword [rdi + rax*4], edx
mov eax, dword [r13 + 0x20]
mov edx, dword [rdi + 0xc]
bswap edx
lea eax, [rax*4 + 3]
mov eax, dword [rdi + rax*4]
bswap eax
mov dword [rdi + 0xc], eax
mov eax, dword [r13 + 0x20]
lea eax, [rax*4 + 3]
mov dword [rdi + rax*4], edx
cmp byte [0x140182983], 0
jne 0x1400ca33b
call fcn.1400d4c30
cmp byte [0x1401833d4], 0
je 0x1400ca35b
mov r8d, dword [r13 + 0x20]
lea rcx, [rdi + 0x10]
dec r8d
mov rdx, rcx
shl r8d, 4
call fcn.1400c9310
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0xa8]
add rsp, 0x58
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret