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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xc], 4
push edi
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x4707e0
lea esi, [edi + 0xa4]
mov edx, eax
add esi, eax
mov ebx, 4
nop
mov ecx, dword [edi]
lea esi, [esi + 1]
mov al, byte [esi - 1]
lea edx, [edx + 1]
xor byte [ecx + edx - 1], al
dec ebx
jne 0x4707f0
mov eax, dword [ebp - 8]
add eax, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], eax
jne 0x4707e0
lea eax, [edi + 0x94]
mov byte [ebp - 1], 9
mov dword [ebp - 8], eax
lea ecx, [ecx]
mov ecx, dword [edi]
xor ebx, ebx
mov dword [ebp - 0xc], 4
movzx eax, byte [ecx + 9]
mov dl, byte [ecx + 0xd]
mov byte [ecx + 0xd], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 5]
mov byte [ecx + 9], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 1]
mov byte [ecx + 5], al
mov eax, dword [edi]
mov byte [eax + 1], dl
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xa]
mov dl, byte [ecx + 2]
mov byte [ecx + 2], al
mov eax, dword [edi]
mov byte [eax + 0xa], dl
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xe]
mov dl, byte [ecx + 6]
mov byte [ecx + 6], al
mov eax, dword [edi]
mov byte [eax + 0xe], dl
mov ecx, dword [edi]
movzx eax, byte [ecx + 7]
mov dl, byte [ecx + 3]
mov byte [ecx + 3], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xb]
mov byte [ecx + 7], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xf]
mov byte [ecx + 0xb], al
mov eax, dword [edi]
mov byte [eax + 0xf], dl
mov edx, ebx
mov esi, 4
jmp 0x4708a0
mov ecx, dword [edi]
lea edx, [edx + 4]
movzx eax, byte [ecx + edx - 4]
mov al, byte [eax + 0x54dd20]
mov byte [ecx + edx - 4], al
dec esi
jne 0x4708a0
inc ebx
dec dword [ebp - 0xc]
jne 0x470891
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], 4
mov ebx, 4
lea esp, [esp]
mov edx, dword [edi]
mov cl, byte [eax]
inc eax
xor byte [edx + esi], cl
inc esi
dec ebx
jne 0x4708d0
dec dword [ebp - 0xc]
jne 0x4708c7
mov ecx, edi
call fcn.004709f0
mov dh, byte [ebp - 1]
sub dword [ebp - 8], 0x10
dec dh
mov byte [ebp - 1], dh
test dh, dh
jne 0x470820
mov ecx, dword [edi]
mov dword [ebp - 0xc], 4
movzx eax, byte [ecx + 9]
mov dl, byte [ecx + 0xd]
mov byte [ecx + 0xd], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 5]
mov byte [ecx + 9], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 1]
mov byte [ecx + 5], al
mov eax, dword [edi]
mov byte [eax + 1], dl
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xa]
mov dl, byte [ecx + 2]
mov byte [ecx + 2], al
mov eax, dword [edi]
mov byte [eax + 0xa], dl
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xe]
mov dl, byte [ecx + 6]
mov byte [ecx + 6], al
mov eax, dword [edi]
mov byte [eax + 0xe], dl
mov ecx, dword [edi]
movzx eax, byte [ecx + 7]
mov dl, byte [ecx + 3]
mov byte [ecx + 3], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xb]
mov byte [ecx + 7], al
mov ecx, dword [edi]
movzx eax, byte [ecx + 0xf]
mov byte [ecx + 0xb], al
mov eax, dword [edi]
mov byte [eax + 0xf], dl
jmp 0x470970
mov edx, ebx
mov esi, 4
jmp 0x470980
mov ecx, dword [edi]
lea edx, [edx + 4]
movzx eax, byte [ecx + edx - 4]
mov al, byte [eax + 0x54dd20]
mov byte [ecx + edx - 4], al
dec esi
jne 0x470980
inc ebx
dec dword [ebp - 0xc]
jne 0x470970
xor eax, eax
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], eax
lea esp, [esp]
lea esi, [edi + 4]
mov edx, eax
add esi, eax
mov ebx, 4
lea esp, [esp]
mov ecx, dword [edi]
lea edx, [edx + 1]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx + edx - 1], al
dec ebx
jne 0x4709c0
mov eax, dword [ebp - 0xc]
add eax, 4
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
jne 0x4709b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret