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

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
mov ebx, edx
mov ecx, esi
sub esp, 0x20
mov dword [esp + 0x1c], eax
lea eax, [eax + 0x10]
mov dword [esp + 0x10], eax
mov edi, eax
xor eax, eax
mov ebp, edx
movzx edx, byte [ebx + eax]
xor byte [ecx + eax], dl
add eax, 1
cmp eax, 4
jne 0x4570be
add ecx, 4
add ebx, 4
mov edx, ebp
cmp ecx, edi
jne 0x4570ba
lea eax, [ebp + 0x10]
mov dword [esp], eax
lea eax, [ebp + 0xa0]
mov dword [esp + 0xc], eax
lea eax, [esi + 2]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x12]
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp + 0x14], eax
nop
mov edi, dword [esp + 0x14]
mov ecx, esi
lea ebx, [ecx + 0x10]
mov eax, ecx
movzx edx, byte [eax]
add eax, 4
movzx edx, byte [edx + 0x484d00]
mov byte [eax - 4], dl
cmp eax, ebx
jne 0x45710b
add ecx, 1
cmp ecx, edi
jne 0x457106
movzx edx, byte [esi + 9]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 5]
movzx ebx, byte [esi + 0xa]
movzx edi, byte [esi + 3]
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], esi
mov byte [esi + 5], dl
movzx edx, byte [esi + 0xd]
mov byte [esi + 0xd], al
movzx eax, byte [esi + 2]
mov byte [esi + 1], cl
mov byte [esi + 2], bl
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xe]
mov byte [esi + 0xa], al
movzx eax, byte [esi + 6]
mov byte [esi + 6], dl
movzx edx, byte [esi + 0xb]
mov byte [esi + 0xe], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xf], dl
movzx edx, byte [esi + 7]
mov byte [esi + 3], al
mov byte [esi + 0xb], dl
mov edx, edi
mov byte [esi + 7], dl
mov edx, eax
movzx eax, byte [ebp - 2]
xor ebx, edx
add ebp, 4
xor ecx, eax
mov edx, ecx
xor ebx, ecx
add ecx, ecx
shr dl, 7
mov esi, ebx
lea edi, [edx + edx]
xor esi, eax
add edx, edi
lea edx, [edx + edx*8]
xor ecx, edx
xor ecx, esi
movzx esi, byte [ebp - 4]
mov byte [ebp - 6], cl
movzx ecx, byte [ebp - 5]
xor esi, ecx
xor ecx, ebx
mov edx, esi
add esi, esi
shr dl, 7
lea edi, [edx + edx]
add edx, edi
lea edx, [edx + edx*8]
xor edx, esi
movzx esi, byte [ebp - 3]
xor ecx, edx
mov byte [ebp - 5], cl
movzx ecx, byte [ebp - 4]
xor esi, ecx
xor ecx, ebx
mov edx, esi
add esi, esi
shr dl, 7
lea edi, [edx + edx]
add edx, edi
lea edx, [edx + edx*8]
xor edx, esi
xor ecx, edx
movzx edx, byte [ebp - 3]
mov byte [ebp - 4], cl
xor eax, edx
xor ebx, edx
mov ecx, eax
add eax, eax
shr cl, 7
lea edx, [ecx + ecx]
add edx, ecx
lea edx, [edx + edx*8]
xor eax, edx
xor ebx, eax
mov byte [ebp - 3], bl
cmp ebp, dword [esp + 4]
je 0x457230
movzx ecx, byte [ebp - 1]
movzx ebx, byte [ebp]
movzx edx, byte [ebp + 1]
jmp 0x457186
mov esi, dword [esp + 8]
mov ecx, dword [esp]
mov edi, dword [esp + 0x10]
mov edx, esi
xor eax, eax
movzx ebx, byte [ecx + eax]
xor byte [edx + eax], bl
add eax, 1
cmp eax, 4
jne 0x45723f
add edx, 4
add ecx, 4
cmp edi, edx
jne 0x45723d
add dword [esp], 0x10
mov eax, dword [esp]
cmp eax, dword [esp + 0xc]
jne 0x457100
mov edi, dword [esp + 0x14]
mov ecx, esi
lea ebx, [ecx + 0x10]
mov eax, ecx
movzx edx, byte [eax]
add eax, 4
movzx edx, byte [edx + 0x484d00]
mov byte [eax - 4], dl
cmp ebx, eax
jne 0x457274
add ecx, 1
cmp ecx, edi
jne 0x45726f
movzx eax, byte [esi + 5]
movzx edx, byte [esi + 1]
mov ebx, dword [esp + 0xc]
mov byte [esi + 1], al
movzx eax, byte [esi + 9]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 0xd], dl
movzx edx, byte [esi + 2]
mov byte [esi + 9], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xa], dl
movzx edx, byte [esi + 6]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xe], dl
movzx edx, byte [esi + 3]
mov byte [esi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xf], al
movzx eax, byte [esi + 7]
mov byte [esi + 7], dl
mov edx, dword [esp + 0x1c]
mov byte [esi + 0xb], al
mov esi, dword [esp + 0x10]
xor eax, eax
movzx ecx, byte [ebx + eax]
xor byte [edx + eax], cl
add eax, 1
cmp eax, 4
jne 0x4572f1
add edx, 4
add ebx, 4
cmp esi, edx
jne 0x4572ef
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret