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

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 esi, dword [esp + 0x34]
xor edi, dword [esi + 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 [esi + 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, ecx
mov ebx, dword [esp + 0x34]
xor esi, dword [ebx + 0xc]
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 ebp, dword [ebx + 0xf0]
sar ebp, 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov esi, eax
mov ebp, ebx
jmp 0x531fa9
mov esi, dword [esp]
shr esi, 0x18
movzx edi, dl
mov esi, dword [esi*4 + 0x8b4280]
xor esi, dword [edi*4 + 0x8b4e80]
mov edi, dword [esp + 0xc]
xor esi, dword [edi]
mov edi, eax
shr edi, 0x10
and edi, 0xff
xor esi, dword [edi*4 + 0x8b4680]
movzx edi, ch
xor esi, dword [edi*4 + 0x8b4a80]
mov edi, edx
shr edi, 0x18
movzx ebp, cl
mov edi, dword [edi*4 + 0x8b4280]
xor edi, dword [ebp*4 + 0x8b4e80]
mov ebp, dword [esp + 0xc]
xor edi, dword [ebp + 4]
mov ebp, dword [esp]
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x8b4680]
movzx ebp, ah
xor edi, dword [ebp*4 + 0x8b4a80]
mov ebx, ecx
shr ebx, 0x18
movzx ebp, al
mov ebx, dword [ebx*4 + 0x8b4280]
mov dword [esp + 8], ebx
mov ebx, dword [ebp*4 + 0x8b4e80]
xor dword [esp + 8], ebx
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 ebx, dword [ebp*4 + 0x8b4680]
xor dword [esp + 8], ebx
mov ebx, dword [esp]
movzx ebp, bh
mov ebx, dword [ebp*4 + 0x8b4a80]
xor dword [esp + 8], ebx
shr eax, 0x18
movzx ebx, byte [esp]
mov eax, dword [eax*4 + 0x8b4280]
mov ebp, dword [ebx*4 + 0x8b4e80]
xor eax, ebp
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx + 0xc]
xor eax, ebx
shr ecx, 0x10
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x8b4680]
xor eax, ebp
movzx edx, dh
mov ecx, dword [edx*4 + 0x8b4a80]
xor eax, ecx
mov dword [esp + 4], eax
mov ebp, dword [esp + 0xc]
mov ecx, esi
shr ecx, 0x18
mov edx, edi
and edx, 0xff
mov ecx, dword [ecx*4 + 0x8b4280]
mov eax, dword [edx*4 + 0x8b4e80]
xor ecx, eax
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x10]
xor ecx, edx
mov edx, dword [esp + 4]
shr edx, 0x10
and edx, 0xff
mov ebx, dword [edx*4 + 0x8b4680]
xor ecx, ebx
mov eax, dword [esp + 8]
movzx edx, ah
mov ebx, dword [edx*4 + 0x8b4a80]
xor ecx, ebx
mov dword [esp], ecx
mov edx, edi
shr edx, 0x18
movzx ecx, al
mov edx, dword [edx*4 + 0x8b4280]
xor edx, dword [ecx*4 + 0x8b4e80]
xor edx, dword [ebp + 0x14]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x8b4680]
mov eax, dword [esp + 4]
movzx ecx, ah
xor edx, dword [ecx*4 + 0x8b4a80]
mov ecx, dword [esp + 8]
shr ecx, 0x18
movzx ebp, al
mov ecx, dword [ecx*4 + 0x8b4280]
xor ecx, dword [ebp*4 + 0x8b4e80]
mov ebx, dword [esp + 0xc]
xor ecx, dword [ebx + 0x18]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x8b4680]
mov eax, esi
movzx ebp, ah
xor ecx, dword [ebp*4 + 0x8b4a80]
mov eax, dword [esp + 4]
shr eax, 0x18
and esi, 0xff
mov eax, dword [eax*4 + 0x8b4280]
xor eax, dword [esi*4 + 0x8b4e80]
xor eax, dword [ebx + 0x1c]
mov esi, dword [esp + 8]
shr esi, 0x10
and esi, 0xff
xor eax, dword [esi*4 + 0x8b4680]
mov ebx, edi
movzx edi, bh
xor eax, dword [edi*4 + 0x8b4a80]
add dword [esp + 0xc], 0x20
dec dword [esp + 0x10]
jne 0x531ea0
mov esi, eax
mov dword [esp + 8], edx
mov ebx, dword [esp]
mov ebp, dword [esp + 0x14]
shl ebp, 5
add ebp, dword [esp + 0x34]
mov eax, ebx
shr eax, 0x18
mov al, byte [eax + 0x8b5280]
and eax, 0xff
shl eax, 0x18
movzx edi, dl
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
xor eax, edx
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
mov edi, edx
shl edi, 0x10
xor eax, edi
movzx edi, ch
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
mov edi, edx
shl edi, 8
xor eax, edi
xor eax, dword [ebp]
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 al, byte [eax + 0x8b5280]
and eax, 0xff
shl eax, 0x18
movzx edi, cl
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
xor eax, edx
mov edi, ebx
shr edi, 0x10
and edi, 0xff
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
mov edi, edx
shl edi, 0x10
xor eax, edi
mov edx, esi
movzx edi, dh
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
mov edi, edx
shl edi, 8
xor eax, edi
xor eax, dword [ebp + 4]
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, ecx
shr eax, 0x18
mov al, byte [eax + 0x8b5280]
and eax, 0xff
shl eax, 0x18
mov edi, esi
and edi, 0xff
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
xor eax, edx
mov edi, dword [esp + 8]
shr edi, 0x10
and edi, 0xff
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
mov edi, edx
shl edi, 0x10
xor eax, edi
movzx edi, bh
mov dl, byte [edi + 0x8b5280]
and edx, 0xff
mov edi, edx
shl edi, 8
xor eax, edi
xor eax, dword [ebp + 8]
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
xor eax, eax
mov al, byte [esi + 0x8b5280]
shl eax, 0x18
and ebx, 0xff
mov bl, byte [ebx + 0x8b5280]
and ebx, 0xff
xor eax, ebx
shr ecx, 0x10
and ecx, 0xff
mov cl, byte [ecx + 0x8b5280]
and ecx, 0xff
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [esp + 8]
movzx edx, ch
mov dl, byte [edx + 0x8b5280]
and edx, 0xff
shl edx, 8
xor eax, edx
xor eax, dword [ebp + 0xc]
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