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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x18
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 1]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 2]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 3]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 4]
shl edx, 0x18
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 5]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 6]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 7]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 8]
shl edx, 0x18
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 9]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xa]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xc]
shl edx, 0x18
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xd]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xe]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xf]
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xf0]
sar edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x10074910]
xor edx, dword [ecx*4 + 0x10074d10]
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x10075110]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x10075510]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0x10]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x10074910]
xor eax, dword [edx*4 + 0x10074d10]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10075110]
mov edx, dword [ebp - 0x14]
and edx, 0xff
xor eax, dword [edx*4 + 0x10075510]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x10074910]
xor ecx, dword [eax*4 + 0x10074d10]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x10075110]
mov eax, dword [ebp - 4]
and eax, 0xff
xor ecx, dword [eax*4 + 0x10075510]
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx + 0x18]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x10074910]
xor edx, dword [ecx*4 + 0x10074d10]
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x10075110]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x10075510]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0x1c]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
jne 0x10016fdd
jmp 0x1001710d
mov eax, dword [ebp - 0x28]
shr eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x10074910]
xor edx, dword [ecx*4 + 0x10074d10]
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x10075110]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x10075510]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
mov edx, dword [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x10074910]
xor eax, dword [edx*4 + 0x10074d10]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10075110]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x10075510]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
shr edx, 0x18
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x10074910]
xor ecx, dword [eax*4 + 0x10074d10]
mov edx, dword [ebp - 0x28]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x10075110]
mov eax, dword [ebp - 0x10]
and eax, 0xff
xor ecx, dword [eax*4 + 0x10075510]
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x10074910]
xor edx, dword [ecx*4 + 0x10074d10]
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x10075110]
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x10075510]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
jmp 0x10016e98
mov ecx, dword [ebp - 0x28]
shr ecx, 0x18
mov edx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff000000
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 8]
shr eax, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 1], al
mov edx, dword [ebp - 8]
shr edx, 8
mov eax, dword [ebp + 0xc]
mov byte [eax + 2], dl
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 8]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
mov edx, dword [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff
xor ecx, eax
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 4], al
mov edx, dword [ebp - 0x18]
shr edx, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax + 5], dl
mov ecx, dword [ebp - 0x18]
shr ecx, 8
mov edx, dword [ebp + 0xc]
mov byte [edx + 6], cl
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x18]
mov byte [eax + 7], cl
mov edx, dword [ebp - 0xc]
shr edx, 0x18
mov eax, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff000000
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 0x28]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff
xor eax, edx
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov eax, dword [ebp + 0xc]
mov byte [eax + 8], dl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 9], cl
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa], al
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x14]
mov byte [edx + 0xb], al
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
mov edx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff000000
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x28]
and eax, 0xff
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff
xor edx, ecx
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xc], cl
mov eax, dword [ebp - 4]
shr eax, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xd], al
mov edx, dword [ebp - 4]
shr edx, 8
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xe], dl
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 4]
mov byte [ecx + 0xf], dl
mov esp, ebp
pop ebp
ret