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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ebp + 8]
lea edx, [esi + 2]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [ebp + 8]
shl edx, 4
mov edx, dword [edx + ecx]
xor edx, dword [edi]
mov edi, dword [esi + 0x24]
xor edi, dword [ebx + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [esi + 0x28]
xor edi, dword [ebx + 8]
mov esi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
mov edi, ebx
xor esi, dword [edi + 0xc]
mov ebx, esi
mov dword [ebp - 4], esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + 0x5adee8]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx edi, bl
xor esi, dword [edi*4 + 0x5ae2e8]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
shr edi, 0x18
xor esi, dword [edi*4 + 0x5ae6e8]
shr ebx, 0x10
movzx edi, dl
xor esi, dword [edi*4 + 0x5adae8]
mov edi, dword [ebp - 8]
mov dword [eax], esi
movzx esi, bl
mov esi, dword [esi*4 + 0x5ae2e8]
shr edi, 0x18
xor esi, dword [edi*4 + 0x5ae6e8]
mov ebx, edx
shr ebx, 8
movzx edi, bl
xor esi, dword [edi*4 + 0x5adee8]
movzx edi, byte [ebp - 0xc]
xor esi, dword [edi*4 + 0x5adae8]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 4], esi
mov esi, dword [ebp - 4]
shr esi, 0x18
mov esi, dword [esi*4 + 0x5ae6e8]
shr ebx, 8
movzx edi, bl
xor esi, dword [edi*4 + 0x5adee8]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
xor esi, dword [edi*4 + 0x5ae2e8]
mov ebx, dword [ebp - 8]
movzx edi, bl
xor esi, dword [edi*4 + 0x5adae8]
shr ebx, 8
mov dword [eax + 8], esi
movzx esi, bl
mov ebx, dword [ebp - 0xc]
mov esi, dword [esi*4 + 0x5adee8]
shr ebx, 0x10
movzx edi, bl
xor esi, dword [edi*4 + 0x5ae2e8]
shr edx, 0x18
xor esi, dword [edx*4 + 0x5ae6e8]
movzx edx, byte [ebp - 4]
xor esi, dword [edx*4 + 0x5adae8]
mov dword [eax + 0xc], esi
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jle 0x5256f5
mov esi, edx
shl esi, 4
lea esi, [esi + ecx + 0x24]
dec edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov edx, dword [esi - 4]
mov edi, dword [ebp - 0x14]
mov esi, dword [eax + 4]
xor esi, dword [edi]
xor edx, dword [eax]
mov dword [ebp - 0xc], esi
mov esi, edi
mov edi, dword [esi + 4]
xor edi, dword [eax + 8]
sub esi, 0x10
mov dword [ebp - 8], edi
mov edi, dword [esi + 0x18]
xor edi, dword [eax + 0xc]
mov dword [ebp - 0x14], esi
mov ebx, edi
shr ebx, 8
mov dword [ebp - 4], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x5adee8]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5ae2e8]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ae6e8]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x5adae8]
mov ebx, dword [ebp - 4]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x5ae2e8]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ae6e8]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5adee8]
movzx ebx, byte [ebp - 0xc]
xor edi, dword [ebx*4 + 0x5adae8]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov edi, dword [ebp - 4]
shr ebx, 8
shr edi, 0x18
mov edi, dword [edi*4 + 0x5ae6e8]
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5adee8]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5ae2e8]
movzx ebx, byte [ebp - 8]
xor edi, dword [ebx*4 + 0x5adae8]
mov ebx, dword [ebp - 8]
shr ebx, 8
mov dword [eax + 8], edi
movzx edi, bl
mov ebx, dword [ebp - 0xc]
mov edi, dword [edi*4 + 0x5adee8]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5ae2e8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x5ae6e8]
movzx edx, byte [ebp - 4]
xor edi, dword [edx*4 + 0x5adae8]
dec dword [ebp - 0x18]
mov dword [eax + 0xc], edi
jne 0x5255de
mov esi, dword [ecx + 0x34]
xor esi, dword [eax + 4]
mov edx, dword [ecx + 0x30]
xor edx, dword [eax]
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 0x38]
xor esi, dword [eax + 8]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 0x3c]
xor esi, dword [eax + 0xc]
mov dword [ebp - 4], esi
movzx esi, dl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 1], bl
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov esi, dword [ebp - 0xc]
mov byte [eax + 2], bl
shr esi, 0x18
mov bl, byte [esi + 0x5aeae8]
movzx esi, byte [ebp - 0xc]
mov byte [eax + 3], bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 4], bl
mov ebx, edx
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 5], bl
mov ebx, dword [ebp - 4]
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov esi, dword [ebp - 8]
mov byte [eax + 6], bl
shr esi, 0x18
mov bl, byte [esi + 0x5aeae8]
movzx esi, byte [ebp - 8]
mov byte [eax + 7], bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 8], bl
mov ebx, dword [ebp - 0xc]
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 9], bl
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov esi, dword [ebp - 4]
mov byte [eax + 0xa], bl
shr esi, 0x18
mov bl, byte [esi + 0x5aeae8]
movzx esi, byte [ebp - 4]
mov byte [eax + 0xb], bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 0xc], bl
mov ebx, dword [ebp - 8]
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
mov byte [eax + 0xd], bl
mov ebx, dword [ebp - 0xc]
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x5aeae8]
shr edx, 0x18
mov byte [eax + 0xe], bl
mov dl, byte [edx + 0x5aeae8]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x20]
xor dword [eax], edx
mov edx, dword [ecx + 0x24]
xor dword [eax + 4], edx
mov edx, dword [ecx + 0x28]
xor dword [eax + 8], edx
mov ecx, dword [ecx + 0x2c]
xor dword [eax + 0xc], ecx
pop edi
pop esi
pop ebx
leave
ret 8