Function at 0x1401b62a0
Capabilities:
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, 0x38
lea rdi, [0x1404258c0]
lea rsi, [0x140424cc0]
lea r11, [0x1404254c0]
lea r10, [0x1404250c0]
mov rax, rcx
mov qword [rsp + 0x88], rdx
movzx edx, byte [rcx + 3]
movzx ecx, byte [rcx]
xor edx, dword [r8]
movzx ebp, byte [rax + 7]
xor ebp, dword [r8 + 4]
shl ecx, 0x18
movzx r12d, byte [rax + 0xb]
xor r12d, dword [r8 + 8]
xor edx, ecx
movzx ecx, byte [rax + 1]
movzx r9d, byte [rax + 0xf]
xor r9d, dword [r8 + 0xc]
shl ecx, 0x10
xor edx, ecx
movzx ecx, byte [rax + 2]
shl ecx, 8
xor edx, ecx
movzx ecx, byte [rax + 4]
shl ecx, 0x18
xor ebp, ecx
movzx ecx, byte [rax + 5]
shl ecx, 0x10
xor ebp, ecx
movzx ecx, byte [rax + 6]
shl ecx, 8
xor ebp, ecx
movzx ecx, byte [rax + 8]
shl ecx, 0x18
xor r12d, ecx
movzx ecx, byte [rax + 9]
shl ecx, 0x10
xor r12d, ecx
movzx ecx, byte [rax + 0xa]
shl ecx, 8
xor r12d, ecx
movzx ecx, byte [rax + 0xc]
shl ecx, 0x18
xor r9d, ecx
movzx ecx, byte [rax + 0xd]
movzx eax, byte [rax + 0xe]
shl ecx, 0x10
shl eax, 8
xor r9d, ecx
xor r9d, eax
mov eax, dword [r8 + 0xf0]
sar eax, 1
sub eax, 1
add rax, 1
shl rax, 5
add rax, r8
mov qword [rsp + 0x28], rax
jmp 0x1401b640c
mov edx, dword [rdi + r15*4]
xor edx, dword [rsi + r14*4]
mov ebx, ebx
xor edx, r9d
mov r9d, dword [rsp + 8]
xor edx, dword [r11 + rbp*4]
xor edx, dword [r10 + r9*4]
mov r9d, dword [rsp + 0xc]
mov ebp, dword [rdi + r9*4]
mov r9d, dword [rsp + 0x10]
xor ebp, dword [rsi + r13*4]
xor ebp, dword [r8 + 4]
xor ebp, dword [r11 + r9*4]
mov r9d, dword [rsp + 0x14]
xor ebp, dword [r10 + r9*4]
mov r9d, dword [rsp + 0x18]
mov r9d, dword [rdi + r9*4]
xor r9d, dword [rsi + r12*4]
mov r12d, dword [r8 + 8]
xor r12d, r9d
mov r9d, dword [rsp + 0x1c]
xor r12d, dword [r11 + r9*4]
mov r9d, dword [rsp + 0x20]
xor r12d, dword [r10 + r9*4]
mov r9d, dword [rsp + 0x24]
mov r9d, dword [rdi + r9*4]
xor r9d, dword [rsi + rax*4]
xor r9d, dword [r8 + 0xc]
xor r9d, dword [r11 + rcx*4]
xor r9d, dword [r10 + rbx*4]
mov eax, edx
movzx ecx, bpl
mov ebx, r12d
movzx r13d, r12b
shr eax, 0x18
add r8, 0x20
mov eax, dword [rdi + rax*4]
xor eax, dword [rsi + rcx*4]
mov ecx, r9d
shr ecx, 0x10
xor eax, dword [r8 - 0x10]
movzx ecx, cl
xor eax, dword [r11 + rcx*4]
movzx ecx, bh
mov ecx, ecx
xor eax, dword [r10 + rcx*4]
mov ecx, ebp
shr ecx, 0x18
mov r14d, eax
movzx eax, dh
mov ebx, dword [rdi + rcx*4]
mov ecx, edx
xor ebx, dword [rsi + r13*4]
movzx r13d, r9b
shr ecx, 0x10
xor ebx, dword [r8 - 0xc]
movzx ecx, cl
xor ebx, dword [r11 + rcx*4]
mov ecx, r9d
shr r9d, 0x18
movzx ecx, ch
mov ecx, ecx
xor ebx, dword [r10 + rcx*4]
mov ecx, r12d
shr r12d, 0x10
shr ecx, 0x18
movzx r12d, r12b
mov ecx, dword [rdi + rcx*4]
xor ecx, dword [rsi + r13*4]
mov r13d, ebp
shr r13d, 0x10
xor ecx, dword [r8 - 8]
movzx r13d, r13b
xor ecx, dword [r11 + r13*4]
mov r13d, eax
mov eax, ebp
xor ecx, dword [r10 + r13*4]
movzx r13d, dl
mov edx, dword [rdi + r9*4]
movzx ebp, ah
xor edx, dword [rsi + r13*4]
xor edx, dword [r8 - 4]
mov eax, r14d
mov ebp, ebp
xor edx, dword [r11 + r12*4]
mov r12d, r14d
shr eax, 0x18
xor edx, dword [r10 + rbp*4]
mov dword [rsp + 4], r12d
shr r12d, 0x10
mov r15d, eax
movzx eax, ch
movzx r12d, r12b
mov dword [rsp + 8], eax
movzx eax, dh
mov r13d, ebx
mov dword [rsp + 0x10], r12d
mov r12d, ecx
shr r13d, 0x18
mov ebp, edx
shr r12d, 0x18
mov dword [rsp + 0x14], eax
shr ebp, 0x10
movzx r14d, bl
mov dword [rsp + 0x18], r12d
mov r12d, ebx
mov r9d, dword [r8]
movzx ebp, bpl
shr r12d, 0x10
mov dword [rsp + 0xc], r13d
movzx r13d, cl
movzx ebx, bh
movzx eax, r12b
movzx r12d, dl
shr edx, 0x18
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 4]
shr ecx, 0x10
mov dword [rsp + 0x24], edx
movzx ecx, cl
movzx eax, ah
mov dword [rsp + 0x20], eax
movzx eax, byte [rsp + 4]
cmp qword [rsp + 0x28], r8
jne 0x1401b6390
lea r8, [0x140424bc0]
mov edx, r9d
mov rsi, qword [rsp + 0x28]
mov ebx, ebx
movzx r9d, byte [r8 + r15]
movzx r10d, byte [r8 + r14]
mov rdi, qword [rsp + 0x88]
movzx eax, byte [r8 + rax]
shl r9d, 0x18
xor r10d, edx
movzx edx, byte [r8 + rbp]
xor r10d, r9d
mov r9d, dword [rsp + 8]
shl edx, 0x10
movzx r9d, byte [r8 + r9]
xor edx, r10d
shl r9d, 8
xor edx, r9d
mov r9d, dword [rsp + 0xc]
bswap edx
mov dword [rdi], edx
movzx edx, byte [r8 + r13]
movzx r9d, byte [r8 + r9]
xor edx, dword [rsi + 4]
shl r9d, 0x18
xor r9d, edx
mov edx, dword [rsp + 0x10]
movzx edx, byte [r8 + rdx]
shl edx, 0x10
xor r9d, edx
mov edx, dword [rsp + 0x14]
movzx edx, byte [r8 + rdx]
shl edx, 8
xor edx, r9d
movzx r9d, byte [r8 + r12]
bswap edx
mov dword [rdi + 4], edx
mov edx, dword [rsp + 0x18]
xor r9d, dword [rsi + 8]
movzx edx, byte [r8 + rdx]
shl edx, 0x18
xor r9d, edx
mov edx, dword [rsp + 0x1c]
movzx edx, byte [r8 + rdx]
shl edx, 0x10
xor r9d, edx
mov edx, dword [rsp + 0x20]
movzx edx, byte [r8 + rdx]
shl edx, 8
xor edx, r9d
bswap edx
mov dword [rdi + 8], edx
xor eax, dword [rsi + 0xc]
mov edx, eax
mov eax, dword [rsp + 0x24]
movzx eax, byte [r8 + rax]
shl eax, 0x18
xor eax, edx
movzx edx, byte [r8 + rcx]
shl edx, 0x10
xor eax, edx
movzx edx, byte [r8 + rbx]
shl edx, 8
xor eax, edx
bswap eax
mov dword [rdi + 0xc], eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret