Function at 0x40ccb9
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]
add ecx, 0x10
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0xc]
xor edx, dword [eax + 0xc]
push ebx
mov ebx, dword [ecx + 8]
xor ebx, dword [eax + 8]
push esi
mov esi, dword [ecx]
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 + 0x42e7b0]
xor edx, dword [edi*4 + 0x42ebb0]
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor edx, dword [edi*4 + 0x42efb0]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x42e3b0]
mov edi, dword [ebp - 0x10]
xor edx, dword [ecx + 0x18]
add ecx, 0x10
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 + 0x42ebb0]
xor edx, dword [edi*4 + 0x42e7b0]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x42efb0]
mov edi, esi
and edi, eax
xor edx, dword [edi*4 + 0x42e3b0]
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 + 0x42ebb0]
xor edi, dword [esi*4 + 0x42e7b0]
mov esi, ebx
shr esi, 0x18
xor edi, dword [esi*4 + 0x42efb0]
mov esi, dword [ebp - 8]
xor edx, dword [ecx]
and esi, eax
xor edi, dword [esi*4 + 0x42e3b0]
mov esi, dword [ebp - 8]
xor edi, dword [ecx + 0xc]
shr esi, 0x10
shr ebx, 8
and esi, eax
mov esi, dword [esi*4 + 0x42ebb0]
and ebx, eax
xor esi, dword [ebx*4 + 0x42e7b0]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x42efb0]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor esi, dword [ebx*4 + 0x42e3b0]
mov dword [ebp - 0x18], edi
xor esi, dword [ecx + 4]
dec dword [ebp - 4]
je 0x40cfaf
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x42e7b0]
mov ebx, edx
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x42ebb0]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42efb0]
mov ebx, dword [ebp - 0x1c]
and ebx, eax
xor edi, dword [ebx*4 + 0x42e3b0]
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 + 0x42e7b0]
and ebx, eax
xor edi, dword [ebx*4 + 0x42ebb0]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42efb0]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x42e3b0]
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 + 0x42ebb0]
and ebx, eax
xor edi, dword [ebx*4 + 0x42e7b0]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42efb0]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edi, dword [ebx*4 + 0x42e3b0]
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 + 0x42ebb0]
shr ebx, 8
and esi, eax
and ebx, eax
xor edi, dword [ebx*4 + 0x42e7b0]
add ecx, 0x20
xor edi, dword [edx*4 + 0x42efb0]
mov edx, dword [ebp - 8]
xor edi, dword [esi*4 + 0x42e3b0]
mov esi, dword [ebp - 0x14]
xor edi, dword [ecx - 0xc]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x42e7b0]
shr esi, 0x10
and esi, eax
xor edx, dword [esi*4 + 0x42ebb0]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x42efb0]
mov esi, dword [ebp - 0xc]
and esi, eax
xor edx, dword [esi*4 + 0x42e3b0]
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 + 0x42ebb0]
shr esi, 8
and esi, eax
xor edx, dword [esi*4 + 0x42e7b0]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
shr esi, 0x18
xor edx, dword [esi*4 + 0x42efb0]
mov esi, dword [ebp - 0x14]
and esi, eax
xor edx, dword [esi*4 + 0x42e3b0]
shr ebx, 8
and ebx, eax
mov esi, edi
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + 0x42ebb0]
xor esi, dword [ebx*4 + 0x42e7b0]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x42efb0]
mov ebx, dword [ebp - 8]
and ebx, eax
xor esi, dword [ebx*4 + 0x42e3b0]
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 + 0x42ebb0]
shr esi, 8
and esi, eax
xor ebx, dword [esi*4 + 0x42e7b0]
mov esi, dword [ebp - 0x14]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x42efb0]
and edi, eax
xor ebx, dword [edi*4 + 0x42e3b0]
mov edi, dword [ebp - 0x18]
xor ebx, dword [ecx + 4]
mov esi, ebx
jmp 0x40cdd0
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
mov edi, dword [ebp + 8]
add ecx, 0x10
xor ebx, dword [ecx]
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 + 4]
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 + 8]
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]
shl esi, 8
or ebx, esi
shr edx, 8
shl ebx, 8
and edx, eax
movzx edx, byte [edx + str.cw]
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 + 0xc]
mov dword [edi + 0xc], ebx
pop edi
pop esi
pop ebx
leave
ret 4