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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x1805d82f5]
call fcn.18025a230
cmp qword [rsp + 0x68], 0
jne 0x18037e721
mov r8d, 0x1d7
lea rdx, [0x180566ec0]
lea rcx, [0x180566f10]
call fcn.180385550
xor eax, eax
test eax, eax
jne 0x18037e700
cmp qword [rsp + 0x60], 0
jne 0x18037e748
mov r8d, 0x1d8
lea rdx, [0x180566f20]
lea rcx, [0x180566f70]
call fcn.180385550
xor eax, eax
test eax, eax
jne 0x18037e727
cmp qword [rsp + 0x70], 0
jne 0x18037e76f
mov r8d, 0x1d9
lea rdx, [0x180566f80]
lea rcx, [0x180566fd0]
call fcn.180385550
xor eax, eax
test eax, eax
jne 0x18037e74e
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x1e0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 2
jl 0x18037e792
cmp dword [rsp + 0x48], 0x10
jle 0x18037e79c
mov eax, 4
jmp 0x18037f171
mov rax, qword [rsp + 0x70]
add rax, 0xf0
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 0x20], eax
xor eax, eax
test eax, eax
jne 0x18037e7ac
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax + 4]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 4]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 4]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 4]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 0x24], eax
xor eax, eax
test eax, eax
jne 0x18037e841
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x24]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax + 8]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 8]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 8]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 8]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 0x28], eax
xor eax, eax
test eax, eax
jne 0x18037e8da
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax + 0xc]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 0xc]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 0xc]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rdx + rcx + 0xc]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 0x2c], eax
xor eax, eax
test eax, eax
jne 0x18037e973
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x2c]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x48]
sar eax, 1
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x2c]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x24]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x20]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x2c]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x28]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x24]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x20]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x2c]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x2c]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x28]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x24]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x20]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x40]
add rax, 0x20
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x18037ebda
jmp 0x18037ed7f
mov eax, dword [rsp + 0x30]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x3c]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x38]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x34]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x30]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x3c]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x38]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x38]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x34]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x30]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x3c]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x3c]
shr eax, 0x18
movzx eax, al
lea rcx, [0x1804e17d0]
mov edx, dword [rsp + 0x38]
shr edx, 0x10
movzx edx, dl
lea r8, [0x1804e3bd0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x34]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x1804e3fd0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x30]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x1804e43d0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x2c], eax
jmp 0x18037ea16
mov eax, dword [rsp + 0x30]
shr eax, 0x18
movzx eax, al
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x3c]
shr ecx, 0x10
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x38]
shr ecx, 8
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x34]
shr ecx, 0
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x20]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x20]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x20]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
xor eax, eax
test eax, eax
jne 0x18037ee01
mov eax, dword [rsp + 0x34]
shr eax, 0x18
movzx eax, al
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x30]
shr ecx, 0x10
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
shr ecx, 8
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x38]
shr ecx, 0
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 0x24]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 0x24]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 4], al
xor eax, eax
test eax, eax
jne 0x18037eefa
mov eax, dword [rsp + 0x38]
shr eax, 0x18
movzx eax, al
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x34]
shr ecx, 0x10
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x30]
shr ecx, 8
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
shr ecx, 0
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 0x28]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 0x28]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 0x28]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 8], al
xor eax, eax
test eax, eax
jne 0x18037eff7
mov eax, dword [rsp + 0x3c]
shr eax, 0x18
movzx eax, al
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x38]
shr ecx, 0x10
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x34]
shr ecx, 8
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x30]
shr ecx, 0
movzx ecx, cl
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0x2c]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0x2c]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0x2c]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0xc], al
xor eax, eax
test eax, eax
jne 0x18037f0f4
xor eax, eax
add rsp, 0x50
pop rdi
ret