Function at 0x531870
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x18
mov edx, dword [esp + 0x2c]
xor eax, eax
mov al, byte [edx]
shl eax, 0x18
xor ecx, ecx
mov cl, byte [edx + 3]
xor eax, ecx
mov ecx, dword [esp + 0x34]
xor eax, dword [ecx]
xor ecx, ecx
mov cl, byte [edx + 1]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
mov cl, byte [edx + 2]
shl ecx, 8
xor eax, ecx
mov bl, byte [edx + 7]
and ebx, 0xff
mov edi, ebx
mov ebp, dword [esp + 0x34]
xor edi, dword [ebp + 4]
xor ecx, ecx
mov cl, byte [edx + 4]
shl ecx, 0x18
xor edi, ecx
xor ecx, ecx
mov cl, byte [edx + 5]
shl ecx, 0x10
xor edi, ecx
xor ecx, ecx
mov cl, byte [edx + 6]
shl ecx, 8
xor edi, ecx
xor ecx, ecx
mov cl, byte [edx + 0xb]
mov ebx, dword [ebp + 8]
xor ecx, ebx
mov dword [esp + 8], ecx
xor ecx, ecx
mov cl, byte [edx + 8]
shl ecx, 0x18
xor dword [esp + 8], ecx
xor ecx, ecx
mov cl, byte [edx + 9]
shl ecx, 0x10
xor dword [esp + 8], ecx
xor ecx, ecx
mov cl, byte [edx + 0xa]
shl ecx, 8
xor dword [esp + 8], ecx
mov cl, byte [edx + 0xf]
and ecx, 0xff
mov esi, dword [ebp + 0xc]
xor esi, ecx
xor ecx, ecx
mov cl, byte [edx + 0xc]
shl ecx, 0x18
xor esi, ecx
xor ecx, ecx
mov cl, byte [edx + 0xd]
shl ecx, 0x10
xor esi, ecx
mov dl, byte [edx + 0xe]
and edx, 0xff
shl edx, 8
xor esi, edx
mov ebx, dword [ebp + 0xf0]
sar ebx, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
mov esi, eax
jmp 0x531a6a
mov esi, dword [esp]
shr esi, 0x18
movzx edi, dl
mov esi, dword [esi*4 + 0x8b5380]
xor esi, dword [edi*4 + 0x8b5f80]
mov edi, dword [esp + 0xc]
xor esi, dword [edi]
mov edi, eax
shr edi, 0x10
and edi, 0xff
xor esi, dword [edi*4 + 0x8b5780]
movzx edi, bh
xor esi, dword [edi*4 + 0x8b5b80]
mov edi, eax
shr edi, 0x18
movzx ebp, byte [esp]
mov edi, dword [edi*4 + 0x8b5380]
xor edi, dword [ebp*4 + 0x8b5f80]
mov ebp, dword [esp + 0xc]
xor edi, dword [ebp + 4]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x8b5780]
movzx ebp, dh
xor edi, dword [ebp*4 + 0x8b5b80]
mov ecx, ebx
shr ecx, 0x18
movzx ebp, al
mov ecx, dword [ecx*4 + 0x8b5380]
mov dword [esp + 8], ecx
mov ecx, dword [ebp*4 + 0x8b5f80]
xor dword [esp + 8], ecx
mov ebp, dword [esp + 0xc]
mov ebp, dword [ebp + 8]
xor dword [esp + 8], ebp
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
mov ecx, dword [ebp*4 + 0x8b5780]
xor dword [esp + 8], ecx
mov ecx, dword [esp]
movzx ebp, ch
mov ecx, dword [ebp*4 + 0x8b5b80]
xor dword [esp + 8], ecx
shr edx, 0x18
and ebx, 0xff
mov edx, dword [edx*4 + 0x8b5380]
mov ebp, dword [ebx*4 + 0x8b5f80]
xor edx, ebp
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
xor edx, ecx
mov ecx, dword [esp]
shr ecx, 0x10
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x8b5780]
xor edx, ebx
movzx eax, ah
mov ebp, dword [eax*4 + 0x8b5b80]
xor edx, ebp
mov dword [esp + 4], edx
mov ecx, esi
shr ecx, 0x18
movzx eax, byte [esp + 4]
mov ecx, dword [ecx*4 + 0x8b5380]
mov ebp, dword [eax*4 + 0x8b5f80]
xor ecx, ebp
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, eax
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x8b5780]
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 8]
movzx eax, ch
mov ebx, dword [eax*4 + 0x8b5b80]
xor dword [esp], ebx
mov eax, edi
shr eax, 0x18
mov ebx, esi
and ebx, 0xff
mov eax, dword [eax*4 + 0x8b5380]
xor eax, dword [ebx*4 + 0x8b5f80]
mov ebp, dword [esp + 0xc]
xor eax, dword [ebp + 0x14]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
xor eax, dword [ebx*4 + 0x8b5780]
mov edx, dword [esp + 4]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x8b5b80]
mov ebx, ecx
shr ebx, 0x18
mov ebp, edi
and ebp, 0xff
mov ebx, dword [ebx*4 + 0x8b5380]
xor ebx, dword [ebp*4 + 0x8b5f80]
mov ecx, dword [esp + 0xc]
xor ebx, dword [ecx + 0x18]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x8b5780]
mov edx, esi
movzx ebp, dh
xor ebx, dword [ebp*4 + 0x8b5b80]
mov edx, dword [esp + 4]
shr edx, 0x18
movzx ebp, byte [esp + 8]
mov edx, dword [edx*4 + 0x8b5380]
xor edx, dword [ebp*4 + 0x8b5f80]
xor edx, dword [ecx + 0x1c]
shr esi, 0x10
and esi, 0xff
xor edx, dword [esi*4 + 0x8b5780]
mov ecx, edi
movzx edi, ch
xor edx, dword [edi*4 + 0x8b5b80]
add dword [esp + 0xc], 0x20
dec dword [esp + 0x10]
jne 0x531960
mov esi, edx
mov dword [esp + 8], eax
mov ecx, dword [esp]
mov ebp, dword [esp + 0x14]
shl ebp, 5
add ebp, dword [esp + 0x34]
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x8b5b80]
and eax, 0xff000000
mov edi, edx
and edi, 0xff
mov dl, byte [edi*4 + 0x8b5780]
and edx, 0xff
xor eax, edx
xor eax, dword [ebp]
mov edi, dword [esp + 8]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x8b5f80]
and edi, 0xff0000
xor eax, edi
movzx edi, bh
mov edi, dword [edi*4 + 0x8b5380]
and edi, 0xff00
xor eax, edi
mov edi, eax
shr edi, 0x18
mov dword [esp + 0xc], edi
mov dl, byte [esp + 0xc]
mov edi, dword [esp + 0x30]
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
mov edi, eax
shr edi, 8
mov dword [esp + 0xc], edi
mov dl, byte [esp + 0xc]
mov edi, dword [esp + 0x30]
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov eax, dword [esp + 8]
shr eax, 0x18
mov eax, dword [eax*4 + 0x8b5b80]
and eax, 0xff000000
movzx edi, cl
mov dl, byte [edi*4 + 0x8b5780]
and edx, 0xff
xor eax, edx
xor eax, dword [ebp + 4]
mov edi, ebx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x8b5f80]
and edi, 0xff0000
xor eax, edi
mov edx, esi
movzx edi, dh
mov edi, dword [edi*4 + 0x8b5380]
and edi, 0xff00
xor eax, edi
mov edi, eax
shr edi, 0x18
mov dword [esp + 0xc], edi
mov dl, byte [esp + 0xc]
mov edi, dword [esp + 0x30]
mov byte [edi + 4], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 5], dl
mov edi, eax
shr edi, 8
mov dword [esp + 0xc], edi
mov dl, byte [esp + 0xc]
mov edi, dword [esp + 0x30]
mov byte [edi + 6], dl
mov byte [edi + 7], al
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x8b5b80]
and eax, 0xff000000
movzx edi, byte [esp + 8]
mov dl, byte [edi*4 + 0x8b5780]
and edx, 0xff
xor eax, edx
xor eax, dword [ebp + 8]
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x8b5f80]
and edi, 0xff0000
xor eax, edi
movzx edi, ch
mov edi, dword [edi*4 + 0x8b5380]
and edi, 0xff00
xor eax, edi
mov edi, eax
shr edi, 0x18
mov dword [esp + 0xc], edi
mov dl, byte [esp + 0xc]
mov edi, dword [esp + 0x30]
mov byte [edi + 8], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 9], dl
mov edi, eax
shr edi, 8
mov dword [esp + 0xc], edi
mov dl, byte [esp + 0xc]
mov edi, dword [esp + 0x30]
mov byte [edi + 0xa], dl
mov byte [edi + 0xb], al
shr esi, 0x18
mov eax, dword [esi*4 + 0x8b5b80]
and eax, 0xff000000
and ebx, 0xff
mov bl, byte [ebx*4 + 0x8b5780]
and ebx, 0xff
xor eax, ebx
xor eax, dword [ebp + 0xc]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x8b5f80]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [esp + 8]
movzx edx, ch
mov edx, dword [edx*4 + 0x8b5380]
and edx, 0xff00
xor eax, edx
mov edx, eax
shr edx, 0x18
mov byte [edi + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [edi + 0xe], dl
mov byte [edi + 0xf], al
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret