Function at 0x410130
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x38
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
movzx ebx, byte [edx + 0xc]
shl ecx, 0x10
shl eax, 0x18
xor eax, ecx
movzx ecx, byte [edx + 3]
shl ebx, 0x18
xor eax, ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
xor eax, ecx
xor eax, dword [edi]
movzx ecx, byte [edx + 5]
mov dword [esp], eax
movzx eax, byte [edx + 4]
shl ecx, 0x10
shl eax, 0x18
xor eax, ecx
movzx ecx, byte [edx + 7]
xor eax, ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
xor eax, ecx
xor eax, dword [edi + 4]
movzx ecx, byte [edx + 9]
mov dword [esp + 4], eax
movzx eax, byte [edx + 8]
shl ecx, 0x10
shl eax, 0x18
xor eax, ecx
movzx ecx, byte [edx + 0xb]
xor eax, ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
xor eax, ecx
mov ecx, ebx
movzx ebx, byte [edx + 0xd]
xor eax, dword [edi + 8]
mov ebp, eax
shl ebx, 0x10
xor ebx, ecx
movzx ecx, byte [edx + 0xf]
xor ecx, ebx
movzx ebx, byte [edx + 0xe]
shl ebx, 8
xor ecx, ebx
xor ecx, dword [edi + 0xc]
mov edi, dword [edi + 0xf0]
mov dword [esp + 8], edi
sar edi, 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x54]
jmp 0x41029f
mov edx, dword [esp]
mov ecx, dword [ecx*4 + 0x42c400]
xor ecx, dword [eax*4 + 0x42b800]
xor ecx, dword [edi + 0xc]
mov edx, dword [edx*4 + 0x42c400]
xor edx, dword [ebp*4 + 0x42b800]
mov ebp, dword [esp + 4]
xor edx, dword [esp + 0x10]
xor edx, dword [ebp*4 + 0x42c000]
mov ebp, dword [esp + 0xc]
xor edx, dword [ebp*4 + 0x42bc00]
mov ebp, dword [esp + 0x20]
mov dword [esp], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x42c400]
xor edx, dword [ebp*4 + 0x42b800]
mov ebp, dword [esp + 0x18]
xor edx, dword [edi + 4]
xor edx, dword [ebp*4 + 0x42c000]
mov ebp, dword [esp + 0x1c]
xor edx, dword [ebp*4 + 0x42bc00]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
mov ebp, dword [edx*4 + 0x42c400]
mov edx, dword [esp + 0x2c]
xor ebp, dword [edx*4 + 0x42b800]
mov edx, dword [esp + 0x28]
xor ebp, dword [edi + 8]
xor ebp, dword [esi*4 + 0x42c000]
xor ebp, dword [edx*4 + 0x42bc00]
mov edx, dword [esp + 8]
xor ecx, dword [edx*4 + 0x42c000]
xor ecx, dword [ebx*4 + 0x42bc00]
mov edx, dword [esp]
mov esi, dword [esp + 4]
movzx eax, cl
add edi, 0x20
shr edx, 0x18
mov ebx, esi
mov edx, dword [edx*4 + 0x42c400]
xor edx, dword [eax*4 + 0x42b800]
mov eax, esi
shr ebx, 0x18
shr eax, 0x10
xor edx, dword [edi - 0x10]
movzx esi, byte [esp + 4]
movzx eax, al
mov ebx, dword [ebx*4 + 0x42c400]
xor edx, dword [eax*4 + 0x42c000]
mov eax, ebp
movzx eax, ah
xor edx, dword [eax*4 + 0x42bc00]
movzx eax, byte [esp]
mov dword [esp + 8], edx
xor ebx, dword [eax*4 + 0x42b800]
mov eax, ebp
xor ebx, dword [edi - 0xc]
shr eax, 0x10
movzx eax, al
xor ebx, dword [eax*4 + 0x42c000]
movzx eax, ch
xor ebx, dword [eax*4 + 0x42bc00]
mov eax, ebp
shr eax, 0x18
mov eax, dword [eax*4 + 0x42c400]
xor eax, dword [esi*4 + 0x42b800]
mov esi, ecx
shr ecx, 0x18
shr esi, 0x10
xor eax, dword [edi - 8]
mov ecx, dword [ecx*4 + 0x42c400]
mov edx, esi
movzx esi, dl
mov edx, dword [esp]
xor eax, dword [esi*4 + 0x42c000]
movzx esi, dh
mov edx, ebp
xor eax, dword [esi*4 + 0x42bc00]
mov esi, dword [esp]
movzx ebp, dl
xor ecx, dword [ebp*4 + 0x42b800]
xor ecx, dword [edi - 4]
movzx ebp, ah
shr esi, 0x10
mov dword [esp + 0xc], ebp
mov edx, esi
movzx esi, dl
mov edx, dword [esp + 4]
xor ecx, dword [esi*4 + 0x42c000]
movzx esi, dh
mov edx, dword [esp + 8]
xor ecx, dword [esi*4 + 0x42bc00]
mov esi, ebx
shr edx, 0x18
shr esi, 0x10
movzx ebp, cl
mov dword [esp], edx
mov edx, esi
movzx esi, dl
mov dword [esp + 4], esi
mov esi, dword [edi]
mov dword [esp + 0x10], esi
mov esi, ebx
shr esi, 0x18
mov dword [esp + 0x14], esi
mov esi, eax
shr esi, 0x10
mov edx, esi
movzx esi, ch
mov dword [esp + 0x1c], esi
mov esi, eax
movzx edx, dl
movzx eax, al
shr esi, 0x18
mov dword [esp + 0x18], edx
movzx edx, byte [esp + 8]
mov dword [esp + 0x24], esi
mov esi, ecx
shr ecx, 0x18
shr esi, 0x10
mov dword [esp + 0x20], edx
mov edx, esi
movzx esi, dl
mov edx, dword [esp + 8]
movzx edx, dh
mov dword [esp + 0x28], edx
movzx edx, bl
movzx ebx, bh
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 8]
shr edx, 0x10
sub dword [esp + 0x30], 1
movzx edx, dl
mov dword [esp + 8], edx
jne 0x4101f0
mov edx, dword [esp + 0x34]
mov edi, eax
mov eax, ebp
mov ebp, esi
mov esi, ebx
mov ebx, edi
mov edi, dword [esp + 0x54]
movzx eax, byte [eax*4 + 0x42c000]
shl edx, 5
add edi, edx
mov edx, dword [esp + 0xc]
mov edx, dword [edx*4 + 0x42c400]
and edx, 0xff00
or edx, eax
xor edx, dword [esp + 0x10]
mov eax, dword [esp]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 4]
mov eax, dword [eax*4 + 0x42bc00]
mov edx, dword [edx*4 + 0x42b800]
and eax, 0xff000000
and edx, 0xff0000
or eax, edx
mov edx, dword [esp + 0x50]
xor eax, dword [esp + 0xc]
bswap eax
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [eax*4 + 0x42c400]
movzx edx, byte [edx*4 + 0x42c000]
and eax, 0xff00
or eax, edx
xor eax, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x42b800]
mov eax, dword [eax*4 + 0x42bc00]
and edx, 0xff0000
and eax, 0xff000000
or eax, edx
mov edx, dword [esp + 0x50]
xor eax, dword [esp]
bswap eax
mov dword [edx + 4], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x42c400]
movzx edx, byte [edx*4 + 0x42c000]
and eax, 0xff00
or eax, edx
xor eax, dword [edi + 8]
mov edx, dword [esp + 0x24]
mov ebp, dword [ebp*4 + 0x42b800]
mov edx, dword [edx*4 + 0x42bc00]
and ebp, 0xff0000
and edx, 0xff000000
or edx, ebp
xor edx, eax
mov eax, dword [esp + 0x50]
bswap edx
mov dword [eax + 8], edx
mov eax, dword [esi*4 + 0x42c400]
movzx edx, byte [ebx*4 + 0x42c000]
and eax, 0xff00
or eax, edx
xor eax, dword [edi + 0xc]
mov edi, dword [esp + 8]
mov edx, dword [ecx*4 + 0x42bc00]
mov ecx, dword [edi*4 + 0x42b800]
mov edi, dword [esp + 0x50]
and edx, 0xff000000
and ecx, 0xff0000
or edx, ecx
xor eax, edx
bswap eax
mov dword [edi + 0xc], eax
add esp, 0x38
pop ebx
pop esi
pop edi
pop ebp
ret