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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
je 0x180004524
cmp qword [rsp + 0x88], 0
je 0x180004524
cmp qword [rsp + 0x90], 0
jne 0x18000452e
mov eax, 0xffffffff
jmp 0x180004d63
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov edx, 8
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x68], eax
mov edx, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x68]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x44], eax
mov edx, 8
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 4]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x5c], eax
mov edx, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 4]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x5c]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x38], eax
mov edx, 8
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 8]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x54], eax
mov edx, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 8]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x54]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x30], eax
mov edx, 8
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0xc]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x64], eax
mov edx, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0xc]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x64]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xf0]
sar eax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x3c]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x30]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x38]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x44]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x3c]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x30]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x30]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x38]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x44]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x3c]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x3c]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x30]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x38]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x44]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x20]
add rax, 0x20
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x180004891
jmp 0x180004a62
mov eax, dword [rsp + 0x34]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x40]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x2c]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x2c]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x34]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x40]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x2c]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x34]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x40]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x40]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c6df0]
mov edx, dword [rsp + 0x28]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x1800c71f0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x2c]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c75f0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x34]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c79f0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x3c], eax
jmp 0x1800046a1
mov eax, dword [rsp + 0x34]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c7df0]
movzx eax, byte [rcx + rax]
shl eax, 0x18
mov ecx, dword [rsp + 0x40]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0x2c]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x44], eax
mov edx, 8
mov ecx, dword [rsp + 0x44]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x4c], eax
mov edx, 8
mov ecx, dword [rsp + 0x44]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x4c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx], eax
mov eax, dword [rsp + 0x2c]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c7df0]
movzx eax, byte [rcx + rax]
shl eax, 0x18
mov ecx, dword [rsp + 0x34]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 0x40]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x38], eax
mov edx, 8
mov ecx, dword [rsp + 0x38]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x50], eax
mov edx, 8
mov ecx, dword [rsp + 0x38]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x50]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x28]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c7df0]
movzx eax, byte [rcx + rax]
shl eax, 0x18
mov ecx, dword [rsp + 0x2c]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 0x34]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0x40]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x30], eax
mov edx, 8
mov ecx, dword [rsp + 0x30]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x58], eax
mov edx, 8
mov ecx, dword [rsp + 0x30]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x58]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x40]
shr eax, 0x18
mov eax, eax
lea rcx, [0x1800c7df0]
movzx eax, byte [rcx + rax]
shl eax, 0x18
mov ecx, dword [rsp + 0x28]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 0x2c]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0x34]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c7df0]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x3c], eax
mov edx, 8
mov ecx, dword [rsp + 0x3c]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x60], eax
mov edx, 8
mov ecx, dword [rsp + 0x3c]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x60]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xc], eax
xor eax, eax
add rsp, 0x78
ret