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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 0x14]
xor edx, dword [eax + 4]
push ebx
mov ebx, dword [ecx + 0x18]
xor ebx, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x1c]
xor edx, dword [eax + 0xc]
push esi
mov esi, dword [ecx + 0x10]
xor esi, dword [eax]
push edi
mov dword [ebp - 8], edx
shr edx, 8
mov edi, esi
shr edi, 0x10
mov eax, 0xff
and edi, eax
and edx, eax
mov edx, dword [edx*4 + 0x43ac98]
xor edx, dword [edi*4 + 0x43b098]
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor edx, dword [edi*4 + 0x43b498]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x43a898]
mov edi, dword [ebp - 0x10]
xor edx, dword [ecx + 0x28]
add ecx, 0x20
shr edi, 8
mov dword [ebp - 0x1c], edx
and edi, eax
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x43b098]
xor edx, dword [edi*4 + 0x43ac98]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x43b498]
mov edi, esi
and edi, eax
xor edx, dword [edi*4 + 0x43a898]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
shr esi, 8
and esi, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x43b098]
xor edi, dword [esi*4 + 0x43ac98]
mov esi, ebx
shr esi, 0x18
xor edi, dword [esi*4 + 0x43b498]
mov esi, dword [ebp - 8]
xor edx, dword [ecx]
and esi, eax
xor edi, dword [esi*4 + 0x43a898]
mov esi, dword [ebp - 8]
xor edi, dword [ecx + 0xc]
shr esi, 0x10
shr ebx, 8
and esi, eax
mov esi, dword [esi*4 + 0x43b098]
and ebx, eax
xor esi, dword [ebx*4 + 0x43ac98]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x43b498]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor esi, dword [ebx*4 + 0x43a898]
mov dword [ebp - 0x18], edi
xor esi, dword [ecx + 4]
dec dword [ebp - 4]
je 0x41681e
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x43ac98]
mov ebx, edx
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x43b098]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x43b498]
mov ebx, dword [ebp - 0x1c]
and ebx, eax
xor edi, dword [ebx*4 + 0x43a898]
mov ebx, dword [ebp - 0x1c]
xor edi, dword [ecx + 0x18]
shr ebx, 0x10
mov dword [ebp - 0xc], edi
mov edi, esi
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x43ac98]
and ebx, eax
xor edi, dword [ebx*4 + 0x43b098]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x43b498]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x43a898]
mov ebx, edx
xor edi, dword [ecx + 0x10]
shr ebx, 8
mov dword [ebp - 0x14], edi
mov edi, esi
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x43b098]
and ebx, eax
xor edi, dword [ebx*4 + 0x43ac98]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x43b498]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edi, dword [ebx*4 + 0x43a898]
mov ebx, dword [ebp - 0x1c]
xor edi, dword [ecx + 0x1c]
shr edx, 0x18
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x18]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x43b098]
shr ebx, 8
and esi, eax
and ebx, eax
xor edi, dword [ebx*4 + 0x43ac98]
add ecx, 0x20
xor edi, dword [edx*4 + 0x43b498]
mov edx, dword [ebp - 8]
xor edi, dword [esi*4 + 0x43a898]
mov esi, dword [ebp - 0x14]
xor edi, dword [ecx - 0xc]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x43ac98]
shr esi, 0x10
and esi, eax
xor edx, dword [esi*4 + 0x43b098]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x43b498]
mov esi, dword [ebp - 0xc]
and esi, eax
xor edx, dword [esi*4 + 0x43a898]
mov esi, edi
xor edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0xc]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x43b098]
shr esi, 8
and esi, eax
xor edx, dword [esi*4 + 0x43ac98]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
shr esi, 0x18
xor edx, dword [esi*4 + 0x43b498]
mov esi, dword [ebp - 0x14]
and esi, eax
xor edx, dword [esi*4 + 0x43a898]
shr ebx, 8
and ebx, eax
mov esi, edi
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + 0x43b098]
xor esi, dword [ebx*4 + 0x43ac98]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x43b498]
mov ebx, dword [ebp - 8]
and ebx, eax
xor esi, dword [ebx*4 + 0x43a898]
mov ebx, dword [ebp - 8]
xor esi, dword [ecx + 0xc]
xor edx, dword [ecx]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0xc]
shr ebx, 0x10
and ebx, eax
mov ebx, dword [ebx*4 + 0x43b098]
shr esi, 8
and esi, eax
xor ebx, dword [esi*4 + 0x43ac98]
mov esi, dword [ebp - 0x14]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x43b498]
and edi, eax
xor ebx, dword [edi*4 + 0x43a898]
mov edi, dword [ebp - 0x18]
xor ebx, dword [ecx + 4]
mov esi, ebx
jmp 0x41663f
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x10
shl edi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
or ebx, edi
shl ebx, 8
mov edi, esi
shr edi, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or ebx, edi
shl ebx, 8
mov edi, edx
and edi, eax
movzx edi, byte [edi + str.cw]
or ebx, edi
xor ebx, dword [ecx + 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], ebx
mov edi, dword [ebp - 0x18]
shr edi, 0x10
and edi, eax
movzx edi, byte [edi + str.cw]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, dword [ebp - 0x1c]
shr ebx, 8
shl edi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
or edi, ebx
shl edi, 8
mov ebx, esi
and ebx, eax
movzx ebx, byte [ebx + str.cw]
or edi, ebx
xor edi, dword [ecx + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], edi
mov edi, edx
shr edi, 0x10
and edi, eax
movzx ebx, byte [edi + str.cw]
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi + str.cw]
shl edi, 8
or ebx, edi
mov edi, dword [ebp - 0x18]
shr edi, 8
and edi, eax
movzx edi, byte [edi + str.cw]
shl ebx, 8
or ebx, edi
mov edi, dword [ebp - 0x1c]
and edi, eax
movzx edi, byte [edi + str.cw]
shl ebx, 8
or ebx, edi
xor ebx, dword [ecx + 0x18]
mov edi, dword [ebp + 8]
shr esi, 0x10
and esi, eax
mov dword [edi + 8], ebx
movzx ebx, byte [esi + str.cw]
mov esi, dword [ebp - 0x1c]
shr esi, 0x18
movzx esi, byte [esi + str.cw]
shr edx, 8
shl esi, 8
and edx, eax
movzx edx, byte [edx + str.cw]
or ebx, esi
shl ebx, 8
or ebx, edx
mov edx, dword [ebp - 0x18]
and edx, eax
movzx eax, byte [edx + str.cw]
shl ebx, 8
or ebx, eax
xor ebx, dword [ecx + 0x1c]
mov dword [edi + 0xc], ebx
pop edi
pop esi
pop ebx
leave
ret 4