Function at 0x47da80
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
xor edx, edx
mov ch, byte [esi]
mov dl, byte [esi + 1]
xor ecx, edx
xor eax, eax
mov al, byte [esi + 2]
xor edx, edx
mov dl, byte [esi + 3]
push edi
shl ecx, 8
xor ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dword [eax], ecx
mov dl, byte [esi + 5]
xor ecx, ecx
mov edi, dword [esp + 0x1c]
mov ch, byte [esi + 4]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 6]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 7]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dword [eax + 4], ecx
mov dl, byte [esi + 9]
xor ecx, ecx
mov ch, byte [esi + 8]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0xa]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0xb]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dword [eax + 8], ecx
mov dl, byte [esi + 0xd]
xor ecx, ecx
mov ch, byte [esi + 0xc]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0xe]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0xf]
shl ecx, 8
xor ecx, edx
cmp edi, 0x80
mov dword [eax + 0xc], ecx
jne 0x47dc3d
mov edi, ecx
xor ecx, ecx
mov edx, edi
xor ebx, ebx
mov dword [esp + 0x18], edx
mov cl, dh
mov bl, byte [esp + 0x1a]
mov ebp, dword [eax + 4]
mov ecx, dword [ecx*4 + 0x48fc40]
mov esi, dword [ebx*4 + 0x48fc40]
and ecx, 0xff0000
and esi, 0xff000000
mov ebx, dword [eax + 8]
xor ecx, esi
mov esi, edx
shr esi, 0x18
and edx, 0xff
mov esi, dword [esi*4 + 0x48fc40]
mov edx, dword [edx*4 + 0x48fc40]
and esi, 0xff
xor ecx, esi
mov esi, dword [eax]
and edx, 0xff00
xor ecx, edx
mov edx, dword [0x491440]
xor ecx, esi
lea esi, [eax + 0x10]
xor ecx, edx
mov dword [esi], ecx
xor ecx, ebp
mov dword [eax + 0x14], ecx
xor ecx, ebx
xor edi, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
mov edi, 0x491444
mov ecx, esi
xor eax, eax
xor ebx, ebx
add edi, 4
mov ebp, dword [ecx + 0xc]
mov edx, ebp
mov dword [esp + 0x18], edx
mov al, dh
mov bl, byte [esp + 0x1a]
mov eax, dword [eax*4 + 0x48fc40]
mov esi, dword [ebx*4 + 0x48fc40]
and eax, 0xff0000
and esi, 0xff000000
xor eax, esi
mov esi, edx
shr esi, 0x18
and edx, 0xff
mov esi, dword [esi*4 + 0x48fc40]
mov edx, dword [edx*4 + 0x48fc40]
and esi, 0xff
xor eax, esi
mov esi, dword [ecx]
and edx, 0xff00
xor eax, edx
mov edx, dword [edi - 4]
xor eax, esi
lea esi, [ecx + 0x10]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [esi], eax
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], edx
xor eax, edx
mov dword [ecx + 0x18], eax
xor eax, ebp
cmp edi, 0x491468
mov dword [ecx + 0x1c], eax
jne 0x47dba8
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
ret
xor ecx, ecx
xor edx, edx
mov ch, byte [esi + 0x10]
mov dl, byte [esi + 0x11]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x12]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x13]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dl, byte [esi + 0x15]
xor ecx, ecx
mov ch, byte [esi + 0x14]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x16]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x17]
shl ecx, 8
xor ecx, edx
cmp edi, 0xc0
mov dword [eax + 0x14], ecx
jne 0x47ddb9
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x18], edx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov cl, dh
mov ebp, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [ecx*4 + 0x48fc40]
mov esi, dword [ebx*4 + 0x48fc40]
and ecx, 0xff0000
and esi, 0xff000000
xor ecx, esi
mov esi, edx
shr esi, 0x18
and edx, 0xff
mov ebx, dword [0x491440]
mov esi, dword [esi*4 + 0x48fc40]
mov edx, dword [edx*4 + 0x48fc40]
and esi, 0xff
xor ecx, esi
and edx, 0xff00
xor ecx, edx
mov esi, dword [eax + 8]
xor ecx, ebp
mov edx, dword [eax + 0xc]
xor ecx, ebx
mov dword [eax + 0x18], ecx
xor ecx, edi
mov dword [eax + 0x1c], ecx
xor ecx, esi
mov dword [eax + 0x20], ecx
xor ecx, edx
mov dword [eax + 0x24], ecx
mov esi, 0x491444
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 0x24]
mov edx, dword [eax + 0x14]
xor ecx, edi
mov dword [eax + 0x28], ecx
xor ecx, edx
mov dword [eax + 0x2c], ecx
mov edx, dword [eax + 0x2c]
add eax, 0x18
mov dword [esp + 0x18], edx
xor ecx, ecx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov cl, dh
add esi, 4
mov ecx, dword [ecx*4 + 0x48fc40]
mov edi, dword [ebx*4 + 0x48fc40]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
shr edi, 0x18
and edx, 0xff
mov edi, dword [edi*4 + 0x48fc40]
mov edx, dword [edx*4 + 0x48fc40]
and edi, 0xff
xor ecx, edi
mov edi, dword [esi - 4]
and edx, 0xff00
xor ecx, edx
mov edx, dword [eax]
xor ecx, edi
xor ecx, edx
mov edx, dword [eax + 4]
mov dword [eax + 0x18], ecx
xor edx, ecx
mov ecx, dword [eax + 8]
mov dword [eax + 0x1c], edx
xor ecx, edx
mov edx, dword [eax + 0xc]
xor edx, ecx
cmp esi, 0x491460
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
jne 0x47dd10
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
ret
xor ecx, ecx
xor edx, edx
mov ch, byte [esi + 0x18]
mov dl, byte [esi + 0x19]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x1a]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x1b]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dword [eax + 0x18], ecx
mov dl, byte [esi + 0x1d]
xor ecx, ecx
mov ch, byte [esi + 0x1c]
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x1e]
shl ecx, 8
xor ecx, edx
xor edx, edx
mov dl, byte [esi + 0x1f]
shl ecx, 8
xor ecx, edx
cmp edi, 0x100
mov dword [eax + 0x1c], ecx
jne 0x47df98
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x18], edx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov cl, dh
mov ebp, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [ecx*4 + 0x48fc40]
mov esi, dword [ebx*4 + 0x48fc40]
and ecx, 0xff0000
and esi, 0xff000000
xor ecx, esi
mov esi, edx
shr esi, 0x18
and edx, 0xff
mov ebx, dword [0x491440]
mov esi, dword [esi*4 + 0x48fc40]
mov edx, dword [edx*4 + 0x48fc40]
and esi, 0xff
xor ecx, esi
and edx, 0xff00
xor ecx, edx
mov esi, dword [eax + 8]
xor ecx, ebp
mov edx, dword [eax + 0xc]
xor ecx, ebx
mov dword [eax + 0x20], ecx
xor ecx, edi
mov dword [eax + 0x24], ecx
xor ecx, esi
mov dword [eax + 0x28], ecx
xor ecx, edx
mov dword [eax + 0x2c], ecx
mov edi, 0x491444
mov ecx, dword [eax + 0x2c]
xor edx, edx
mov dword [esp + 0x18], ecx
mov ebp, dword [eax + 0x10]
mov dl, byte [esp + 0x1a]
add eax, 0x20
xor ebx, ebx
add edi, 4
mov esi, dword [edx*4 + 0x48fc40]
xor edx, edx
mov dl, ch
and esi, 0xff0000
mov edx, dword [edx*4 + 0x48fc40]
and edx, 0xff00
xor esi, edx
mov edx, ecx
shr edx, 0x18
and ecx, 0xff
mov edx, dword [edx*4 + 0x48fc40]
mov ecx, dword [ecx*4 + 0x48fc40]
and edx, 0xff000000
xor esi, edx
mov edx, dword [eax - 0xc]
and ecx, 0xff
xor esi, ecx
mov ecx, dword [eax - 8]
xor esi, ebp
xor edx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edx
xor ecx, edx
mov edx, dword [eax - 4]
mov dword [eax + 0x18], ecx
xor ecx, edx
mov dword [eax + 0x1c], ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x18], edx
xor ecx, ecx
mov bl, byte [esp + 0x1a]
mov cl, dh
mov ecx, dword [ecx*4 + 0x48fc40]
mov esi, dword [ebx*4 + 0x48fc40]
and ecx, 0xff0000
and esi, 0xff000000
xor ecx, esi
mov esi, edx
shr esi, 0x18
and edx, 0xff
mov esi, dword [esi*4 + 0x48fc40]
mov edx, dword [edx*4 + 0x48fc40]
and esi, 0xff
xor ecx, esi
mov esi, dword [eax]
and edx, 0xff00
xor ecx, edx
mov edx, dword [edi - 4]
xor ecx, esi
xor ecx, edx
mov edx, dword [eax + 4]
mov dword [eax + 0x20], ecx
xor edx, ecx
mov ecx, dword [eax + 8]
mov dword [eax + 0x24], edx
xor ecx, edx
mov edx, dword [eax + 0xc]
xor edx, ecx
cmp edi, 0x49145c
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
jne 0x47de8c
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret