Function at 0x140018754
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov eax, dword [rcx + 4]
lea r12, [0x14017f5d0]
xor eax, dword [rdx]
lea rsi, [0x14017f4d0]
mov r9d, dword [rdx + 4]
lea r14, str.cw
xor r9d, dword [rcx + 8]
mov rdi, r8
mov r10d, dword [rdx + 8]
lea r8, [rbp - 0xc]
mov r11d, dword [rdx + 0xc]
mov rbx, rcx
xor r10d, dword [rcx + 0xc]
lea rdx, [rbp - 0x10]
xor r11d, dword [rcx + 0x10]
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x38], r12
mov dword [rbp + 0x58], eax
lea rax, [0x14017f6d0]
mov qword [rsp + 0x30], rax
mov dword [rbp - 0x10], r9d
lea r9, [rbp - 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov dword [rbp - 0xc], r10d
mov dword [rbp - 8], r11d
call fcn.14001810c
lea r9, [rbp - 8]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.140017fe4
mov eax, dword [rbx + 0x14]
lea r9, [rbp - 8]
xor dword [rbp + 0x58], eax
lea r8, [rbp - 0xc]
mov eax, dword [rbx + 0x18]
lea rdx, [rbp - 0x10]
xor dword [rbp - 0x10], eax
lea rcx, [rbp + 0x58]
mov eax, dword [rbx + 0x1c]
mov r15d, 2
xor dword [rbp - 0xc], eax
mov eax, dword [rbx + 0x20]
xor dword [rbp - 8], eax
lea rax, [0x14017f6d0]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14001810c
movzx r12d, byte [rbx]
cmp r12, r15
jbe 0x14001894f
lea rsi, [rbx + 0x28]
mov r14d, r15d
lea rbx, str.cw
lea rdi, [0x14017f4d0]
lea r9, [rbp - 8]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.140017fe4
mov eax, dword [rsi - 4]
lea r9, [rbp - 8]
xor dword [rbp + 0x58], eax
lea r8, [rbp - 0xc]
mov eax, dword [rsi]
lea rdx, [rbp - 0x10]
xor dword [rbp - 0x10], eax
lea rcx, [rbp + 0x58]
mov eax, dword [rsi + 4]
xor dword [rbp - 0xc], eax
mov eax, dword [rsi + 8]
xor dword [rbp - 8], eax
lea rax, [0x14017f5d0]
mov qword [rsp + 0x38], rax
lea rax, [0x14017f6d0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.14001810c
lea r9, [rbp - 8]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.140017fe4
mov eax, dword [rsi + 0xc]
lea r9, [rbp - 8]
xor dword [rbp + 0x58], eax
lea r8, [rbp - 0xc]
mov eax, dword [rsi + 0x10]
lea rdx, [rbp - 0x10]
xor dword [rbp - 0x10], eax
lea rcx, [rbp + 0x58]
mov eax, dword [rsi + 0x14]
add r15d, 2
xor dword [rbp - 0xc], eax
add r14, 2
mov eax, dword [rsi + 0x18]
xor dword [rbp - 8], eax
lea rax, [0x14017f5d0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [0x14017f6d0]
mov qword [rsp + 0x20], rax
call fcn.14001810c
lea rsi, [rsi + 0x20]
cmp r14, r12
jl 0x14001886b
mov rbx, qword [rbp + 0x40]
mov rdi, qword [rbp + 0x50]
mov eax, dword [rbp - 8]
mov r8d, dword [rbp + 0x58]
mov edx, dword [rbp - 0x10]
mov ecx, dword [rbp - 0xc]
movsxd r9, r15d
add r9, r9
xor eax, dword [rbx + r9*8 + 0x10]
xor r8d, dword [rbx + r9*8 + 4]
xor edx, dword [rbx + r9*8 + 8]
xor ecx, dword [rbx + r9*8 + 0xc]
mov dword [rdi + 0xc], eax
xor eax, eax
mov dword [rdi], r8d
mov dword [rdi + 4], edx
mov dword [rdi + 8], ecx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret