Function at 0x1400183d4
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, [0x14017f4e0]
xor eax, dword [rdx]
lea rsi, [0x14017f5e0]
mov r9d, dword [rdx + 4]
lea r15, 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, [0x14017f6e0]
mov qword [rsp + 0x30], rax
mov dword [rbp - 0x10], r9d
lea r9, [rbp - 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov dword [rbp - 0xc], r10d
mov dword [rbp - 8], r11d
call fcn.140017d8c
lea r9, [rbp - 8]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.140017c64
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 r14d, 2
xor dword [rbp - 0xc], eax
mov eax, dword [rbx + 0x20]
xor dword [rbp - 8], eax
lea rax, [0x14017f6e0]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.140017d8c
movzx r12d, byte [rbx]
cmp r12, r14
jbe 0x1400185cf
lea rsi, [rbx + 0x28]
mov r15d, r14d
lea rbx, str.cw
lea rdi, [0x14017f5e0]
lea r9, [rbp - 8]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.140017c64
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, [0x14017f4e0]
mov qword [rsp + 0x38], rax
lea rax, [0x14017f6e0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.140017d8c
lea r9, [rbp - 8]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.140017c64
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 r14d, 2
xor dword [rbp - 0xc], eax
add r15, 2
mov eax, dword [rsi + 0x18]
xor dword [rbp - 8], eax
lea rax, [0x14017f4e0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [0x14017f6e0]
mov qword [rsp + 0x20], rax
call fcn.140017d8c
lea rsi, [rsi + 0x20]
cmp r15, r12
jl 0x1400184eb
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, r14d
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