Function at 0x140005c85
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, 0x78
mov r13d, 1
mov dword [rsp + 0xc0], ecx
mov rcx, r8
mov r10, rdx
call fcn.140005c80
lea rcx, [r8 + 4]
mov r11d, eax
call fcn.140005c80
lea rcx, [r8 + 8]
mov ebx, eax
call fcn.140005c80
lea rcx, [r8 + 0xc]
mov r9d, eax
call fcn.140005c80
mov ecx, dword [r10 + 8]
xor ebx, dword [r10 + 4]
mov edx, eax
mov eax, dword [r10]
xor edx, dword [r10 + 0xc]
xor ecx, r9d
lea r9, [0x140011960]
xor eax, r11d
mov esi, eax
movzx edi, ch
mov r14d, ecx
mov r11d, ebx
shr esi, 0x18
mov r15d, edi
shr r14d, 0x18
mov r12d, ebx
mov dword [rsp + 0x28], esi
mov esi, edx
mov ebp, ecx
shr r11d, 0x10
shr esi, 0x10
shr ebp, 0x10
movzx edi, dh
movzx r11d, r11b
mov dword [rsp + 0x40], esi
movzx esi, ah
shr r12d, 0x18
movzx ebp, bpl
mov dword [rsp + 0x48], esi
mov esi, edx
mov edi, edi
movzx edx, dl
shr esi, 0x18
mov dword [rsp + 0x58], esi
mov esi, eax
shr esi, 0x10
cmp r13d, dword [rsp + 0xc0]
mov dword [rsp + 0x60], esi
movzx esi, bh
mov dword [rsp + 0x68], esi
mov esi, dword [rsp + 0x28]
mov qword [rsp + 0x28], r15
movzx r15d, al
movzx eax, bl
mov qword [rsp + 0x30], rax
mov eax, r14d
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x48], rax
movzx eax, cl
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x58], rax
movzx eax, byte [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x68], rax
jae 0x140005e86
mov eax, dword [r9 + rdx*4]
mov edx, dword [r9 + r11*4]
lea r14d, [r13*4]
inc r13d
mov ebx, dword [r9 + r15*4]
rol eax, 8
ror edx, 8
xor eax, dword [r9 + rsi*4]
mov rsi, qword [rsp + 0x30]
xor edx, eax
mov rax, qword [rsp + 0x28]
rol ebx, 8
xor ebx, dword [r9 + r12*4]
mov ecx, dword [r9 + rsi*4]
mov rsi, qword [rsp + 0x38]
mov eax, dword [r9 + rax*4]
rol ecx, 8
xor ecx, dword [r9 + rsi*4]
mov rsi, qword [rsp + 0x40]
rol eax, 0x10
xor eax, edx
mov edx, r14d
xor eax, dword [r10 + rdx*4]
mov edx, dword [r9 + rbp*4]
ror edx, 8
xor edx, ebx
mov ebx, dword [r9 + rdi*4]
mov rdi, qword [rsp + 0x60]
rol ebx, 0x10
mov r11d, dword [r9 + rdi*4]
xor ebx, edx
lea edx, [r14 + 1]
xor ebx, dword [r10 + rdx*4]
mov edx, dword [r9 + rsi*4]
ror r11d, 8
mov rsi, qword [rsp + 0x48]
ror edx, 8
xor ecx, edx
mov edx, dword [r9 + rsi*4]
mov rsi, qword [rsp + 0x50]
rol edx, 0x10
xor ecx, edx
lea edx, [r14 + 2]
xor ecx, dword [r10 + rdx*4]
mov edx, dword [r9 + rsi*4]
mov rsi, qword [rsp + 0x58]
rol edx, 8
xor edx, dword [r9 + rsi*4]
mov rsi, qword [rsp + 0x68]
xor edx, r11d
mov r11d, dword [r9 + rsi*4]
rol r11d, 0x10
xor edx, r11d
lea r11d, [r14 + 3]
xor edx, dword [r10 + r11*4]
jmp 0x140005cee
mov eax, dword [rsp + 0xc0]
mov r14, qword [rsp + 0x68]
lea ecx, [rax*4]
mov rax, qword [0x140012780]
movzx r9d, byte [rax + r12]
movzx ebx, byte [rax + r15]
mov r15, qword [rsp + 0x50]
movzx esi, byte [rax + rsi]
shl r9d, 0x18
movzx edx, byte [rax + rdx]
movzx r11d, byte [rax + r11]
or ebx, r9d
movzx r9d, byte [rax + rbp]
movzx ebp, byte [rax + r15]
shl esi, 0x18
mov r15, qword [rsp + 0x60]
or edx, esi
mov rsi, qword [rsp + 0x28]
shl r11d, 0x10
shl r9d, 0x10
or edx, r11d
or ebx, r9d
movzx r9d, byte [rax + rdi]
mov rdi, qword [rsp + 0x38]
shl r9d, 8
or r9d, ebx
lea ebx, [rcx + 1]
xor r9d, dword [r10 + rbx*4]
movzx ebx, byte [rax + rdi]
mov rdi, qword [rsp + 0x30]
bswap r9d
shl ebx, 0x18
movzx edi, byte [rax + rdi]
or edi, ebx
mov rbx, qword [rsp + 0x40]
movzx ebx, byte [rax + rbx]
shl ebx, 0x10
or ebx, edi
mov rdi, qword [rsp + 0x48]
movzx edi, byte [rax + rdi]
shl edi, 8
or ebx, edi
lea edi, [rcx + 2]
xor ebx, dword [r10 + rdi*4]
mov rdi, qword [rsp + 0x58]
bswap ebx
movzx edi, byte [rax + rdi]
shl edi, 0x18
or edi, ebp
movzx ebp, byte [rax + r15]
shl ebp, 0x10
or edi, ebp
movzx ebp, byte [rax + r14]
movzx eax, byte [rax + rsi]
shl ebp, 8
shl eax, 8
or edi, ebp
lea ebp, [rcx + 3]
or eax, edx
xor eax, dword [r10 + rcx*4]
xor edi, dword [r10 + rbp*4]
bswap eax
mov dword [r8], eax
bswap edi
mov dword [r8 + 4], r9d
mov dword [r8 + 8], ebx
mov dword [r8 + 0xc], edi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret