Function at 0x41c140
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
movzx ebp, byte [eax + 8]
movzx esi, byte [eax]
shl esi, 8
xor esi, ecx
movzx ecx, byte [eax + 3]
shl esi, 8
xor esi, edx
movzx edx, byte [eax + 4]
shl esi, 8
xor esi, ecx
movzx ecx, byte [eax + 5]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 6]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 7]
mov ebx, dword [esp + 0x24]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 9]
shl ebp, 8
xor ebp, ecx
movzx ecx, byte [eax + 0xa]
movzx edi, byte [eax + 0xc]
shl ebp, 8
xor ebp, ecx
movzx ecx, byte [eax + 0xb]
xor esi, dword [ebx]
shl edi, 8
xor edx, dword [ebx + 4]
shl ebp, 8
xor ebp, ecx
movzx ecx, byte [eax + 0xd]
xor ebp, dword [ebx + 8]
xor edi, ecx
movzx ecx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edi, 8
xor edi, ecx
shl edi, 8
xor edi, eax
xor edi, dword [ebx + 0xc]
mov eax, ebp
shr eax, 8
mov ecx, edi
and eax, 0xff
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a48c8]
xor ecx, dword [eax*4 + 0x4a4cc8]
mov eax, esi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4a44c8]
mov dword [esp + 0x10], edi
mov eax, edx
and eax, 0xff
xor ecx, dword [eax*4 + 0x4a50c8]
shr edi, 8
xor ecx, dword [ebx + 0x10]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a4cc8]
mov eax, esi
shr eax, 0x10
and eax, 0xff
xor edi, dword [eax*4 + 0x4a48c8]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x4a44c8]
mov eax, ebp
and eax, 0xff
xor edi, dword [eax*4 + 0x4a50c8]
mov dword [esp + 0x1c], ecx
xor edi, dword [ebx + 0x14]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov ebx, esi
shr ebx, 8
and ebx, 0xff
mov dword [esp + 0x14], ebx
mov ebx, dword [eax*4 + 0x4a48c8]
mov eax, dword [esp + 0x14]
xor ebx, dword [eax*4 + 0x4a4cc8]
mov eax, ebp
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x4a48c8]
shr edx, 8
and edx, 0xff
xor ebp, dword [edx*4 + 0x4a4cc8]
mov edx, dword [esp + 0x10]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4a44c8]
mov eax, dword [esp + 0x10]
shr edx, 0x18
xor ebp, dword [edx*4 + 0x4a44c8]
and eax, 0xff
xor ebx, dword [eax*4 + 0x4a50c8]
mov eax, dword [esp + 0x24]
xor ebx, dword [eax + 0x18]
and esi, 0xff
xor ebp, dword [esi*4 + 0x4a50c8]
lea edx, [eax + 0x20]
xor ebp, dword [eax + 0x1c]
mov eax, dword [eax + 0xf0]
sar eax, 1
sub eax, 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
je 0x41c538
mov esi, ebx
shr esi, 8
and esi, 0xff
mov eax, ebp
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x4a48c8]
xor edx, dword [esi*4 + 0x4a4cc8]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4a44c8]
mov eax, edi
and eax, 0xff
xor edx, dword [eax*4 + 0x4a50c8]
mov eax, dword [esp + 0x24]
xor edx, dword [eax]
mov eax, ebp
mov esi, ecx
shr esi, 0x10
and esi, 0xff
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x4a4cc8]
xor eax, dword [esi*4 + 0x4a48c8]
mov esi, edi
shr esi, 0x18
xor eax, dword [esi*4 + 0x4a44c8]
mov esi, ebx
and esi, 0xff
xor eax, dword [esi*4 + 0x4a50c8]
mov esi, dword [esp + 0x24]
xor eax, dword [esi + 4]
mov esi, edi
shr esi, 0x10
and esi, 0xff
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x14], ecx
mov ecx, dword [esi*4 + 0x4a48c8]
mov esi, dword [esp + 0x14]
xor ecx, dword [esi*4 + 0x4a4cc8]
mov esi, ebx
shr esi, 0x18
xor ecx, dword [esi*4 + 0x4a44c8]
mov esi, ebp
shr ebx, 0x10
and esi, 0xff
xor ecx, dword [esi*4 + 0x4a50c8]
mov esi, dword [esp + 0x24]
xor ecx, dword [esi + 8]
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4a48c8]
shr edi, 8
shr ebp, 0x18
and edi, 0xff
xor esi, dword [edi*4 + 0x4a4cc8]
mov edi, dword [esp + 0x1c]
xor esi, dword [ebp*4 + 0x4a44c8]
and edi, 0xff
xor esi, dword [edi*4 + 0x4a50c8]
mov edi, dword [esp + 0x24]
xor esi, dword [edi + 0xc]
mov ebp, ecx
shr ebp, 8
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a48c8]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a4cc8]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4a44c8]
mov ebp, eax
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a50c8]
xor ebx, dword [edi + 0x10]
mov dword [esp + 0x1c], ebx
mov ebx, esi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a4cc8]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a48c8]
mov ebp, eax
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4a44c8]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a50c8]
mov ebp, edx
xor ebx, dword [edi + 0x14]
shr ebp, 8
mov edi, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a48c8]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a4cc8]
mov ebp, ecx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a48c8]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4a44c8]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4a4cc8]
mov ebp, esi
shr esi, 0x18
xor ecx, dword [esi*4 + 0x4a44c8]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a50c8]
mov ebp, dword [esp + 0x24]
xor ebx, dword [ebp + 0x18]
add dword [esp + 0x24], 0x20
and edx, 0xff
xor ecx, dword [edx*4 + 0x4a50c8]
xor ecx, dword [ebp + 0x1c]
sub dword [esp + 0x10], 1
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
jne 0x41c303
mov edx, ebp
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x4a54c8]
mov esi, dword [esp + 0x20]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x4a54c8]
shl edx, 8
xor eax, edx
shl eax, 8
mov edx, ebx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x4a54c8]
xor eax, edx
shl eax, 8
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + 0x4a54c8]
xor eax, edx
mov edx, dword [esp + 0x24]
xor eax, dword [edx]
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 1], dl
mov edx, eax
shr edx, 8
mov byte [esi + 2], dl
mov byte [esi + 3], al
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x4a54c8]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + 0x4a54c8]
shl edx, 8
xor eax, edx
shl eax, 8
mov edx, ebp
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x4a54c8]
xor eax, edx
shl eax, 8
mov edx, ebx
and edx, 0xff
movzx edx, byte [edx + 0x4a54c8]
xor eax, edx
mov edx, dword [esp + 0x24]
xor eax, dword [edx + 4]
mov edx, eax
shr edx, 0x18
mov byte [esi + 4], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 5], dl
mov edx, eax
shr edx, 8
mov byte [esi + 7], al
mov byte [esi + 6], dl
mov eax, edi
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x4a54c8]
mov edx, ebx
shr edx, 0x18
movzx edx, byte [edx + 0x4a54c8]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x4a54c8]
shl eax, 8
xor eax, edx
shl eax, 8
mov edx, ebp
and edx, 0xff
movzx edx, byte [edx + 0x4a54c8]
xor eax, edx
mov edx, dword [esp + 0x24]
xor eax, dword [edx + 8]
shr ebx, 0x10
mov edx, eax
shr edx, 0x18
mov byte [esi + 8], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 9], dl
mov edx, eax
mov byte [esi + 0xb], al
shr edx, 8
mov byte [esi + 0xa], dl
shr ebp, 0x18
movzx edx, byte [ebp + 0x4a54c8]
and ebx, 0xff
movzx eax, byte [ebx + 0x4a54c8]
shl edx, 8
xor eax, edx
shr edi, 8
and edi, 0xff
movzx edx, byte [edi + 0x4a54c8]
shl eax, 8
xor eax, edx
mov edx, dword [esp + 0x24]
and ecx, 0xff
movzx ecx, byte [ecx + 0x4a54c8]
shl eax, 8
xor eax, ecx
xor eax, dword [edx + 0xc]
pop edi
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0xc], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], al
pop esi
pop ebp
pop ebx
add esp, 8
ret