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

Disassembly:
sub rsp, 0x50
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x38]
mov qword [rsp], rax
mov al, byte [rax + 8]
and al, 1
movzx ecx, al
xor eax, eax
cmp eax, ecx
jne 0x140001893
jmp 0x140001fdb
mov rax, qword [rsp]
add rax, 0x1ec
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
add rdx, 1
mov qword [rsp + 0x40], rdx
movzx ecx, byte [rcx]
shl ecx, 0x10
or eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 8
or eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
add rdx, 1
mov qword [rsp + 0x40], rdx
movzx ecx, byte [rcx]
or ecx, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], ecx
xor eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x10
or eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 8
or eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
add rdx, 1
mov qword [rsp + 0x40], rdx
movzx ecx, byte [rcx]
or ecx, dword [rsp + 0x28]
mov dword [rsp + 0x28], ecx
xor eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x10
or eax, dword [rsp + 0x24]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 8
or eax, dword [rsp + 0x24]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
add rdx, 1
mov qword [rsp + 0x40], rdx
movzx ecx, byte [rcx]
or ecx, dword [rsp + 0x24]
mov dword [rsp + 0x24], ecx
xor eax, dword [rsp + 0x24]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 0x10
or eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x40], rcx
movzx eax, byte [rax]
shl eax, 8
or eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
add rdx, 1
mov qword [rsp + 0x40], rdx
movzx ecx, byte [rcx]
or ecx, dword [rsp + 0x20]
mov dword [rsp + 0x20], ecx
xor eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0xc], 1
mov rcx, qword [rsp]
mov eax, dword [rsp + 0xc]
cmp eax, dword [rcx + 0x3d4]
jge 0x140001cdd
mov rax, qword [rsp]
add rax, 0x1ec
movsxd rcx, dword [rsp + 0xc]
shl rcx, 5
add rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140007100]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x10
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007500]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x24]
sar ecx, 8
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007900]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007d00]
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x30]
xor eax, dword [rcx]
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x28]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140007100]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0x2c]
sar ecx, 0x10
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007500]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x20]
sar ecx, 8
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007900]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x24]
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007d00]
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x30]
xor eax, dword [rcx + 4]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x24]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140007100]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0x28]
sar ecx, 0x10
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007500]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x2c]
sar ecx, 8
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007900]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007d00]
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x30]
xor eax, dword [rcx + 8]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x20]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140007100]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0x24]
sar ecx, 0x10
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007500]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x28]
sar ecx, 8
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007900]
xor eax, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x2c]
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140007d00]
xor eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + 0x30]
xor eax, dword [rcx + 0xc]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x1c]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x18]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x14]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xc]
add eax, 1
mov dword [rsp + 0xc], eax
jmp 0x140001abf
mov rcx, qword [rsp]
mov rax, rcx
add rax, 0x1ec
movsxd rcx, dword [rcx + 0x3d4]
shl rcx, 5
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x18
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov eax, dword [rsp + 0x20]
sar eax, 0x10
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x10
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 1], cl
mov eax, dword [rsp + 0x24]
sar eax, 8
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 8
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 2], cl
mov eax, dword [rsp + 0x28]
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
xor eax, dword [rsp + 8]
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 3], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x28]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x18
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 4], cl
mov eax, dword [rsp + 0x2c]
sar eax, 0x10
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x10
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 5], cl
mov eax, dword [rsp + 0x20]
sar eax, 8
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 8
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 6], cl
mov eax, dword [rsp + 0x24]
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
xor eax, dword [rsp + 8]
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 7], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x24]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x18
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 8], cl
mov eax, dword [rsp + 0x28]
sar eax, 0x10
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x10
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 9], cl
mov eax, dword [rsp + 0x2c]
sar eax, 8
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 8
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xa], cl
mov eax, dword [rsp + 0x20]
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
xor eax, dword [rsp + 8]
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xb], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x20]
sar eax, 0x18
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x18
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xc], cl
mov eax, dword [rsp + 0x24]
sar eax, 0x10
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 0x10
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xd], cl
mov eax, dword [rsp + 0x28]
sar eax, 8
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
mov ecx, dword [rsp + 8]
sar ecx, 8
xor eax, ecx
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xe], cl
mov eax, dword [rsp + 0x2c]
and eax, 0xff
movsxd rcx, eax
lea rax, [0x140008100]
movsx eax, byte [rax + rcx]
xor eax, dword [rsp + 8]
mov cl, al
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xf], cl
add rsp, 0x50
ret