Function at 0x476140
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x28]
movzx edi, byte [ebx]
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 4]
movzx edx, byte [ebx + 8]
shl edi, 0x18
movzx esi, byte [ebx + 0xd]
shl eax, 0x10
xor edi, eax
movzx eax, byte [ebx + 3]
shl ecx, 0x18
shl edx, 0x18
shl esi, 0x10
xor edi, eax
movzx eax, byte [ebx + 2]
shl eax, 8
xor edi, eax
mov eax, dword [esp + 0x30]
xor edi, dword [eax]
movzx eax, byte [ebx + 5]
shl eax, 0x10
xor ecx, eax
movzx eax, byte [ebx + 7]
xor ecx, eax
movzx eax, byte [ebx + 6]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x30]
xor ecx, dword [eax + 4]
movzx eax, byte [ebx + 9]
shl eax, 0x10
xor edx, eax
movzx eax, byte [ebx + 0xb]
xor edx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 8
xor edx, eax
mov eax, dword [esp + 0x30]
xor edx, dword [eax + 8]
movzx eax, byte [ebx + 0xc]
shl eax, 0x18
xor eax, esi
movzx esi, byte [ebx + 0xf]
movzx ebx, byte [ebx + 0xe]
xor eax, esi
mov esi, dword [esp + 0x30]
shl ebx, 8
xor eax, ebx
xor eax, dword [esi + 0xc]
mov esi, dword [esi + 0xf0]
mov dword [esp + 0x10], esi
shr dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 0x30]
mov esi, edx
mov dword [esp + 8], edi
mov dword [esp], ebx
jmp 0x476305
mov esi, edi
mov ebp, dword [esp]
movzx ecx, al
shr esi, 0x18
mov ebx, dword [esp + 4]
mov esi, dword [esi*4 + 0x53fe00]
mov ecx, dword [ecx*4 + 0x53f200]
mov dword [esp + 8], esi
xor dword [esp + 8], ecx
mov ecx, dword [ebp]
xor dword [esp + 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x53fa00]
xor dword [esp + 8], ecx
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x53f600]
xor dword [esp + 8], ecx
mov ecx, ebx
shr ecx, 0x18
mov ebx, edi
movzx esi, bl
mov ecx, dword [ecx*4 + 0x53fe00]
xor ecx, dword [esi*4 + 0x53f200]
mov esi, edx
shr esi, 0x10
mov ebx, esi
movzx esi, bl
mov ebx, dword [esp]
xor ecx, dword [ebp + 4]
movzx ebp, byte [esp + 4]
xor ecx, dword [esi*4 + 0x53fa00]
movzx esi, ah
xor ecx, dword [esi*4 + 0x53f600]
mov esi, edx
shr esi, 0x18
movzx edx, dl
mov esi, dword [esi*4 + 0x53fe00]
xor esi, dword [ebp*4 + 0x53f200]
mov ebp, eax
shr ebp, 0x10
xor esi, dword [ebx + 8]
mov ebx, ebp
movzx ebp, bl
mov ebx, edi
xor esi, dword [ebp*4 + 0x53fa00]
movzx ebp, bh
mov ebx, dword [esp]
shr eax, 0x18
mov eax, dword [eax*4 + 0x53fe00]
shr edi, 0x10
xor eax, dword [edx*4 + 0x53f200]
mov edx, edi
movzx edx, dl
xor eax, dword [ebx + 0xc]
mov ebx, dword [esp + 4]
xor eax, dword [edx*4 + 0x53fa00]
xor esi, dword [ebp*4 + 0x53f600]
movzx ebx, bh
xor eax, dword [ebx*4 + 0x53f600]
mov ebp, dword [esp + 8]
movzx edx, al
mov ebx, ebp
shr ebx, 0x18
mov edi, dword [ebx*4 + 0x53fe00]
mov ebx, dword [esp]
xor edi, dword [edx*4 + 0x53f200]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor edi, dword [ebx + 0x10]
xor edi, dword [edx*4 + 0x53fa00]
mov edx, esi
movzx edx, dh
xor edi, dword [edx*4 + 0x53f600]
mov edx, ecx
shr edx, 0x18
mov ebx, edx
movzx edx, byte [esp + 8]
mov ebx, dword [ebx*4 + 0x53fe00]
mov dword [esp + 4], ebx
mov ebx, dword [edx*4 + 0x53f200]
mov edx, esi
xor dword [esp + 4], ebx
mov ebx, dword [esp]
shr edx, 0x10
movzx edx, dl
mov ebp, dword [ebx + 0x14]
xor dword [esp + 4], ebp
mov ebp, dword [edx*4 + 0x53fa00]
movzx edx, ah
xor dword [esp + 4], ebp
mov ebp, dword [edx*4 + 0x53f600]
mov edx, esi
shr edx, 0x18
xor dword [esp + 4], ebp
movzx ebp, cl
mov edx, dword [edx*4 + 0x53fe00]
movzx ecx, ch
xor edx, dword [ebp*4 + 0x53f200]
mov ebp, eax
shr ebp, 0x10
xor edx, dword [ebx + 0x18]
mov ebx, ebp
movzx ebp, bl
mov ebx, dword [esp + 8]
xor edx, dword [ebp*4 + 0x53fa00]
shr eax, 0x18
movzx ebp, bh
xor edx, dword [ebp*4 + 0x53f600]
mov ebp, eax
mov eax, esi
movzx esi, al
mov eax, dword [ebp*4 + 0x53fe00]
mov ebp, dword [esp]
shr ebx, 0x10
xor eax, dword [esi*4 + 0x53f200]
movzx esi, bl
xor eax, dword [ebp + 0x1c]
xor eax, dword [esi*4 + 0x53fa00]
xor eax, dword [ecx*4 + 0x53f600]
add dword [esp], 0x20
sub dword [esp + 0xc], 1
jne 0x476210
mov esi, edx
mov ebp, edi
mov ebx, dword [esp + 4]
mov dword [esp], eax
mov edx, edi
movzx edi, byte [esp]
shr edx, 0x18
mov ecx, dword [esp + 0x10]
mov edx, dword [edx*4 + 0x53f600]
movzx edi, byte [edi*4 + 0x53fa00]
shl ecx, 5
and edx, 0xff000000
add ecx, dword [esp + 0x30]
xor edx, edi
mov edi, ebx
shr edi, 0x10
mov eax, edi
movzx edi, al
mov eax, esi
mov edi, dword [edi*4 + 0x53f200]
xor edx, dword [ecx]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
and edi, 0xff0000
xor edx, edi
movzx edi, ah
mov edi, dword [edi*4 + 0x53fe00]
and edi, 0xff00
xor edx, edi
mov edi, edx
shr edi, 0x18
mov eax, edi
mov edi, edx
shr edi, 0x10
mov byte [ecx], al
mov eax, edi
mov edi, edx
shr edi, 8
mov byte [ecx + 1], al
mov eax, edi
mov byte [ecx + 3], dl
mov edx, ebx
mov byte [ecx + 2], al
shr edx, 0x18
mov ecx, ebp
mov edx, dword [edx*4 + 0x53f600]
movzx edi, cl
movzx edi, byte [edi*4 + 0x53fa00]
mov ecx, dword [esp + 0x2c]
and edx, 0xff000000
xor edx, edi
mov edi, dword [esp + 4]
xor edx, dword [edi + 4]
mov edi, esi
shr edi, 0x10
mov eax, edi
movzx edi, al
mov eax, dword [esp]
mov edi, dword [edi*4 + 0x53f200]
and edi, 0xff0000
xor edx, edi
movzx edi, ah
mov edi, dword [edi*4 + 0x53fe00]
and edi, 0xff00
xor edx, edi
mov edi, edx
shr edi, 0x18
mov eax, edi
mov edi, edx
shr edi, 0x10
mov byte [ecx + 4], al
mov eax, edi
mov edi, edx
mov byte [ecx + 7], dl
mov edx, esi
shr edi, 8
shr edx, 0x18
mov byte [ecx + 5], al
mov edx, dword [edx*4 + 0x53f600]
mov eax, edi
movzx edi, bl
movzx ebx, bh
movzx edi, byte [edi*4 + 0x53fa00]
mov byte [ecx + 6], al
and edx, 0xff000000
xor edx, edi
mov edi, dword [esp + 4]
xor edx, dword [edi + 8]
mov edi, dword [esp]
shr edi, 0x10
mov eax, edi
movzx edi, al
mov eax, ebp
mov edi, dword [edi*4 + 0x53f200]
and edi, 0xff0000
xor edx, edi
movzx edi, ah
mov edi, dword [edi*4 + 0x53fe00]
and edi, 0xff00
xor edx, edi
mov edi, edx
shr edi, 0x18
mov eax, edi
mov edi, edx
shr edi, 0x10
mov byte [ecx + 8], al
mov eax, edi
mov edi, edx
shr edi, 8
mov byte [ecx + 9], al
mov eax, edi
mov edi, dword [esp + 4]
mov byte [ecx + 0xa], al
mov eax, dword [esp]
mov byte [ecx + 0xb], dl
mov edx, esi
movzx esi, dl
movzx edx, byte [esi*4 + 0x53fa00]
shr eax, 0x18
mov eax, dword [eax*4 + 0x53f600]
and eax, 0xff000000
xor eax, edx
mov edx, ebp
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x53f200]
xor eax, dword [edi + 0xc]
and edx, 0xff0000
xor eax, edx
mov edx, dword [ebx*4 + 0x53fe00]
and edx, 0xff00
xor eax, edx
mov edx, eax
shr edx, 0x18
mov byte [ecx + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [ecx + 0xe], dl
mov byte [ecx + 0xf], al
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret