Function at 0x47ef70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
push esi
mov esi, dword [eax + 0x14]
push edi
mov edi, ecx
xor ebx, dword [edi + 0xc]
xor edx, dword [edi + 8]
xor esi, dword [edi + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x10]
xor ecx, dword [edi]
mov edi, edx
mov ebx, esi
shr ebx, 8
and ebx, 0xff
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4dbf80]
xor edi, dword [ebx*4 + 0x4dbb80]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dc380]
mov dword [ebp - 0x20], edx
shr edx, 8
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4db780]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x10
and edx, 0xff
and ebx, 0xff
mov dword [ebp - 8], edx
mov edx, dword [ebx*4 + 0x4dbf80]
mov ebx, dword [ebp - 8]
xor edx, dword [ebx*4 + 0x4dbb80]
mov ebx, ecx
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dc380]
mov ebx, esi
and ebx, 0xff
xor edx, dword [ebx*4 + 0x4db780]
add eax, 0x20
xor edx, dword [eax + 4]
mov ebx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x1c]
shr ebx, 0x10
shr edx, 8
xor edi, dword [eax]
and ebx, 0xff
and edx, 0xff
mov dword [ebp - 8], ebx
mov ebx, dword [edx*4 + 0x4dbb80]
mov edx, dword [ebp - 8]
xor ebx, dword [edx*4 + 0x4dbf80]
mov edx, esi
shr esi, 0x10
shr ecx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x4dbf80]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4dbb80]
mov ecx, dword [ebp - 0x20]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x4dc380]
mov edx, dword [ebp - 0x20]
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4dc380]
mov ecx, dword [ebp - 0x1c]
and edx, 0xff
xor ebx, dword [edx*4 + 0x4db780]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4db780]
xor ebx, dword [eax + 8]
xor esi, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
dec dword [ebp - 4]
je 0x47f2fb
mov edx, dword [ebp - 0x14]
mov ecx, ebx
shr edx, 8
and edx, 0xff
shr ebx, 8
shr ecx, 0x10
and ebx, 0xff
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4dbf80]
xor ecx, dword [edx*4 + 0x4dbb80]
mov edx, esi
shr edx, 0x18
xor ecx, dword [edx*4 + 0x4dc380]
mov edx, edi
and edx, 0xff
xor ecx, dword [edx*4 + 0x4db780]
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4dbf80]
xor edx, dword [ebx*4 + 0x4dbb80]
mov ebx, edi
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dc380]
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
xor edx, dword [ebx*4 + 0x4db780]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x4dbb80]
xor esi, dword [ebx*4 + 0x4dbf80]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4dc380]
mov ebx, dword [ebp - 0x10]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x4db780]
mov ebx, dword [ebp - 0x14]
shr edi, 8
and edi, 0xff
xor esi, dword [eax + 0x18]
shr ebx, 0x10
mov dword [ebp - 8], edi
and ebx, 0xff
mov edi, dword [ebx*4 + 0x4dbf80]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x4dbb80]
mov ebx, dword [ebp - 0x10]
xor edx, dword [eax + 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dc380]
mov ebx, dword [ebp - 0xc]
xor ecx, dword [eax + 0x10]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4db780]
mov ebx, edx
xor edi, dword [eax + 0x1c]
shr ebx, 8
mov dword [ebp - 0x1c], edi
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4dbf80]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4dbb80]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dc380]
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4db780]
add eax, 0x20
xor edi, dword [eax]
mov ebx, esi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x1c]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4dbf80]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4dbb80]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dc380]
mov ebx, edx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4db780]
mov ebx, ecx
xor edi, dword [eax + 4]
shr ebx, 0x10
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x1c]
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x4dbb80]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4dbf80]
mov ebx, edx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4dbf80]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dc380]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4dbb80]
mov ecx, dword [ebp - 0x1c]
mov ebx, esi
shr esi, 0x18
xor edx, dword [esi*4 + 0x4dc380]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4db780]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4db780]
xor edi, dword [eax + 8]
xor edx, dword [eax + 0xc]
dec dword [ebp - 4]
mov ebx, edi
mov edi, dword [ebp - 0x18]
mov esi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
jne 0x47f0c5
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, esi
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl edx, 8
or edx, ecx
shl edx, 8
mov ecx, edi
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
or edx, ecx
xor edx, dword [eax + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, esi
shr edx, 0x10
and edx, 0xff
movzx ecx, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or ecx, edx
shl ecx, 8
mov edx, ebx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
or ecx, edx
mov edx, dword [ebp - 0x14]
shl ecx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
or ecx, edx
xor ecx, dword [eax + 0x14]
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl edx, 8
or ecx, edx
shl ecx, 8
mov edx, esi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
or ecx, edx
mov edx, ebx
shl ecx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
or ecx, edx
xor ecx, dword [eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl ebx, 8
or ecx, ebx
shr edi, 8
shl ecx, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
and esi, 0xff
movzx esi, byte [esi + str.cw]
or ecx, edi
shl ecx, 8
or ecx, esi
xor ecx, dword [eax + 0x1c]
pop edi
pop esi
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret