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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
mov esi, ecx
ror esi, 8
mov edx, 0xff00ff00
and esi, edx
rol ecx, 8
mov eax, 0xff00ff
and ecx, eax
or esi, ecx
mov ecx, dword [ebp + 8]
xor esi, dword [ecx]
mov dword [ebp + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
mov ebx, esi
ror ebx, 8
and ebx, edx
rol esi, 8
and esi, eax
or ebx, esi
xor ebx, dword [ecx + 4]
mov esi, edi
ror esi, 8
and esi, edx
rol edi, 8
and edi, eax
or esi, edi
xor esi, dword [ecx + 8]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
mov dword [ebp + 0x10], edi
ror edi, 8
and edi, edx
mov edx, dword [ebp + 0x10]
rol edx, 8
and edx, eax
or edi, edx
xor edi, dword [ecx + 0xc]
mov eax, 0xff
mov dword [ebp - 4], edi
shr edi, 0x10
and edi, eax
mov edx, esi
shr edx, 8
and edx, eax
mov dword [ebp + 0x10], edx
mov edx, dword [edi*4 + 0x416ca0]
mov edi, dword [ebp + 0x10]
xor edx, dword [edi*4 + 0x4170a0]
mov edi, dword [ebp + 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x4168a0]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x4174a0]
mov edi, dword [ebp + 8]
xor edx, dword [ecx + 0x10]
shr edi, 0x10
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 4]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x4170a0]
and edi, eax
xor edx, dword [edi*4 + 0x416ca0]
mov edi, ebx
shr edi, 0x18
xor edx, dword [edi*4 + 0x4168a0]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], esi
and esi, eax
xor edx, dword [esi*4 + 0x4174a0]
mov esi, ebx
xor edx, dword [ecx + 0x14]
shr esi, 0x10
and esi, eax
shr edi, 8
mov esi, dword [esi*4 + 0x416ca0]
and edi, eax
xor esi, dword [edi*4 + 0x4170a0]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor esi, dword [edi*4 + 0x4168a0]
mov edi, dword [ebp - 4]
and edi, eax
xor esi, dword [edi*4 + 0x4174a0]
mov edi, dword [ebp - 8]
xor esi, dword [ecx + 0x18]
shr edi, 0x10
shr ebx, 8
and edi, eax
mov edi, dword [edi*4 + 0x416ca0]
and ebx, eax
xor edi, dword [ebx*4 + 0x4170a0]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4168a0]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x4174a0]
mov ebx, dword [ebp + 0xc]
xor edi, dword [ecx + 0x1c]
sar ebx, 1
add ecx, 0x20
dec ebx
mov dword [ebp - 8], ebx
jmp 0x404502
shr ebx, 8
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x416ca0]
xor edi, dword [ebx*4 + 0x4170a0]
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4168a0]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4174a0]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4170a0]
xor edi, dword [ebx*4 + 0x416ca0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4168a0]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4174a0]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ecx + 4]
shr ebx, 8
mov dword [ebp + 0xc], edi
and ebx, eax
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x416ca0]
xor edi, dword [ebx*4 + 0x4170a0]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4168a0]
mov ebx, dword [ebp - 4]
shr esi, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x4174a0]
and esi, eax
xor edi, dword [ecx + 8]
mov ebx, edx
mov edx, dword [esi*4 + 0x416ca0]
mov esi, dword [ebp - 4]
shr ebx, 8
shr esi, 0x18
and ebx, eax
xor edx, dword [ebx*4 + 0x4170a0]
mov ebx, edi
xor edx, dword [esi*4 + 0x4168a0]
mov esi, dword [ebp + 0x10]
and esi, eax
xor edx, dword [esi*4 + 0x4174a0]
shr ebx, 8
xor edx, dword [ecx + 0xc]
and ebx, eax
mov esi, edx
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + 0x416ca0]
xor esi, dword [ebx*4 + 0x4170a0]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4168a0]
mov ebx, dword [ebp + 0xc]
and ebx, eax
xor esi, dword [ebx*4 + 0x4174a0]
mov dword [ebp - 4], edx
xor esi, dword [ecx + 0x10]
shr edx, 8
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 8]
shr esi, 0x10
and edx, eax
and esi, eax
mov edx, dword [edx*4 + 0x4170a0]
xor edx, dword [esi*4 + 0x416ca0]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4168a0]
mov esi, edi
and esi, eax
xor edx, dword [esi*4 + 0x4174a0]
mov esi, dword [ebp + 0xc]
shr ebx, 8
and ebx, eax
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + 0x416ca0]
xor esi, dword [ebx*4 + 0x4170a0]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4168a0]
mov ebx, dword [ebp - 4]
and ebx, eax
xor esi, dword [ebx*4 + 0x4174a0]
mov ebx, dword [ebp + 0xc]
xor edx, dword [ecx + 0x14]
xor esi, dword [ecx + 0x18]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x416ca0]
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x4170a0]
add ecx, 0x20
mov ebx, edi
mov edi, dword [ebp - 4]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4168a0]
mov edi, dword [ebp + 8]
and edi, eax
xor ebx, dword [edi*4 + 0x4174a0]
xor ebx, dword [ecx - 4]
dec dword [ebp - 8]
mov edi, ebx
mov dword [ebp - 4], edi
mov ebx, esi
jne 0x404336
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
xor edi, ebx
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
mov ebx, edx
and ebx, eax
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebx
xor edi, dword [ecx]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0x14]
mov dword [edi], ebx
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
xor edi, ebx
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
mov ebx, esi
and ebx, eax
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebx
xor edi, dword [ecx + 4]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0x14]
mov dword [edi + 4], ebx
mov ebx, dword [ebp + 0x10]
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
xor edi, ebx
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebx
xor edi, dword [ecx + 8]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
shr esi, 0x10
and esi, eax
shr edx, 8
and edx, eax
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0x14]
mov dword [edi + 8], ebx
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff00
and esi, 0xff0000
xor esi, edx
mov edx, dword [ebp - 4]
shr edx, 0x18
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff000000
xor esi, edx
mov edx, dword [ebp + 0x10]
and edx, eax
movzx eax, byte [edx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, eax
xor esi, dword [ecx + 0xc]
mov eax, esi
ror eax, 8
and eax, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or eax, esi
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
leave
ret