Function at 0x140028780
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, 0x38
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
rol edx, 8
and edx, 0xff00ff
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
ror ecx, 8
and ecx, 0xff00ff00
mov eax, edx
or eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 4]
rol edx, 8
and edx, 0xff00ff
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
ror ecx, 8
and ecx, 0xff00ff00
mov eax, edx
or eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 4]
mov dword [rsp + 0x14], eax
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 8]
rol edx, 8
and edx, 0xff00ff
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 8]
ror ecx, 8
and ecx, 0xff00ff00
mov eax, edx
or eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 8]
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0xc]
rol edx, 8
and edx, 0xff00ff
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
ror ecx, 8
and ecx, 0xff00ff00
mov eax, edx
or eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0xc]
mov dword [rsp], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xf0]
sar eax, 1
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 0x10]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 0x14]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x14]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 0x10]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0x14]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x10]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 0x14]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 4]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0x18]
mov dword [rsp + 8], eax
mov eax, dword [rsp]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 0x14]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 4]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0x1c]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x20]
add rax, 0x20
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x1c]
sub eax, 1
mov dword [rsp + 0x1c], eax
cmp dword [rsp + 0x1c], 0
jne 0x140028a47
jmp 0x140028bfe
mov eax, dword [rsp + 0x28]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 0x18]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x18]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 0x28]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 0xc]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 4]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 8]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 0x28]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 0xc]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 8]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
mov r8d, eax
lea rdx, [0x14004b740]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov eax, dword [rsp + 0x18]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov eax, dword [rsp + 0x28]
and eax, 0xff
mov edx, eax
lea rcx, [0x14004c340]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0xc]
mov dword [rsp], eax
jmp 0x140028872
mov eax, dword [rsp + 0x28]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004c740]
movzx edx, byte [rax + rcx]
shl edx, 0x18
mov eax, dword [rsp + 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 0x10
xor edx, eax
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 8
xor edx, eax
mov eax, dword [rsp + 0x18]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx ecx, byte [rax + rcx]
mov eax, edx
xor eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx]
mov dword [rsp + 4], eax
mov ecx, dword [rsp + 4]
rol ecx, 8
and ecx, 0xff00ff
mov eax, dword [rsp + 4]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 0x48]
mov dword [rax], ecx
mov eax, dword [rsp + 0x18]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004c740]
movzx edx, byte [rax + rcx]
shl edx, 0x18
mov eax, dword [rsp + 0x28]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 0x10
xor edx, eax
mov eax, dword [rsp + 0xc]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 8
xor edx, eax
mov eax, dword [rsp + 8]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx ecx, byte [rax + rcx]
mov eax, edx
xor eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 4]
mov dword [rsp + 0x14], eax
mov ecx, dword [rsp + 0x14]
rol ecx, 8
and ecx, 0xff00ff
mov eax, dword [rsp + 0x14]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], ecx
mov eax, dword [rsp + 8]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004c740]
movzx edx, byte [rax + rcx]
shl edx, 0x18
mov eax, dword [rsp + 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 0x10
xor edx, eax
mov eax, dword [rsp + 0x28]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 8
xor edx, eax
mov eax, dword [rsp + 0xc]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx ecx, byte [rax + rcx]
mov eax, edx
xor eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 8]
mov dword [rsp + 0x10], eax
mov ecx, dword [rsp + 0x10]
rol ecx, 8
and ecx, 0xff00ff
mov eax, dword [rsp + 0x10]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 0x48]
mov dword [rax + 8], ecx
mov eax, dword [rsp + 0xc]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004c740]
movzx edx, byte [rax + rcx]
shl edx, 0x18
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 0x10
xor edx, eax
mov eax, dword [rsp + 0x18]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx eax, byte [rax + rcx]
shl eax, 8
xor edx, eax
mov eax, dword [rsp + 0x28]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004c740]
movzx ecx, byte [rax + rcx]
mov eax, edx
xor eax, ecx
mov rcx, qword [rsp + 0x20]
xor eax, dword [rcx + 0xc]
mov dword [rsp], eax
mov ecx, dword [rsp]
rol ecx, 8
and ecx, 0xff00ff
mov eax, dword [rsp]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 0x48]
mov dword [rax + 0xc], ecx
add rsp, 0x38
ret