Function at 0x1400295a0
Capabilities:
Encrypt data using aes

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
cmp qword [rsp + 0x20], 0
je 0x1400295c9
cmp qword [rsp + 0x30], 0
jne 0x1400295d3
mov eax, 0xffffffff
jmp 0x140029c46
cmp dword [rsp + 0x28], 0x80
je 0x1400295fb
cmp dword [rsp + 0x28], 0xc0
je 0x1400295fb
cmp dword [rsp + 0x28], 0x100
je 0x1400295fb
mov eax, 0xfffffffe
jmp 0x140029c46
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
cmp dword [rsp + 0x28], 0x80
jne 0x140029620
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xf0], 0xa
jmp 0x14002964a
cmp dword [rsp + 0x28], 0xc0
jne 0x14002963b
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xf0], 0xc
jmp 0x14002964a
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xf0], 0xe
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 8]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 8]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0xc]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0xc], ecx
cmp dword [rsp + 0x28], 0x80
jne 0x140029823
xor eax, eax
cmp eax, 1
je 0x140029823
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004af40]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 8]
mov edx, dword [rax]
xor edx, ecx
mov eax, dword [rsp + 4]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004b340]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004a740]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
movsxd rdx, dword [rsp]
lea rax, [0x14004c840]
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 8]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x10]
mov ecx, dword [rcx + 4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x14], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x14]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x1c], ecx
mov eax, dword [rsp]
add eax, 1
mov dword [rsp], eax
cmp dword [rsp], 0xa
jne 0x140029810
xor eax, eax
jmp 0x140029c46
mov rax, qword [rsp + 8]
add rax, 0x10
mov qword [rsp + 8], rax
jmp 0x140029701
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x10]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x14]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x14], ecx
cmp dword [rsp + 0x28], 0xc0
jne 0x1400299dd
xor eax, eax
cmp eax, 1
je 0x1400299dd
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x14]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004af40]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 8]
mov edx, dword [rax]
xor edx, ecx
mov eax, dword [rsp + 4]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004b340]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004a740]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
movsxd rdx, dword [rsp]
lea rax, [0x14004c840]
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 8]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov ecx, dword [rcx + 4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x1c], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x20], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x24], ecx
mov eax, dword [rsp]
add eax, 1
mov dword [rsp], eax
cmp dword [rsp], 8
jne 0x140029996
xor eax, eax
jmp 0x140029c46
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov ecx, dword [rcx + 0x10]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x28], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x28]
mov ecx, dword [rcx + 0x14]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 8], rax
jmp 0x140029887
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x18]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x18]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x1c]
rol ecx, 8
and ecx, 0xff00ff
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x1c]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x1c], ecx
cmp dword [rsp + 0x28], 0x100
jne 0x140029c44
xor eax, eax
cmp eax, 1
je 0x140029c44
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004af40]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 8]
mov edx, dword [rax]
xor edx, ecx
mov eax, dword [rsp + 4]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004b340]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004a740]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
movsxd rdx, dword [rsp]
lea rax, [0x14004c840]
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 8]
mov dword [rax + 0x20], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov ecx, dword [rcx + 4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x24], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x28], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x28]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x2c], ecx
mov eax, dword [rsp]
add eax, 1
mov dword [rsp], eax
cmp dword [rsp], 7
jne 0x140029b50
xor eax, eax
jmp 0x140029c46
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004af40]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 8]
mov edx, dword [rax + 0x10]
xor edx, ecx
mov eax, dword [rsp + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004b340]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 4]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004a740]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x30]
mov ecx, dword [rcx + 0x14]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x34], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x34]
mov ecx, dword [rcx + 0x18]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x38], ecx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x38]
mov ecx, dword [rcx + 0x1c]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 0x3c], ecx
mov rax, qword [rsp + 8]
add rax, 0x20
mov qword [rsp + 8], rax
jmp 0x140029a41
xor eax, eax
add rsp, 0x18
ret