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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov edx, dword [eax + 0x10]
xor edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 4]
mov ebx, dword [eax + 0x1c]
xor ebx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 8]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
shr ecx, 8
mov dword [ebp - 8], edx
mov edx, esi
movzx ecx, cl
shr edx, 0x18
push edi
mov edi, dword [eax]
add eax, 0x20
mov ecx, dword [ecx*4 + 0x595fc0]
xor ecx, dword [edx*4 + 0x5967c0]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
xor edx, dword [eax + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], edx
mov edx, ebx
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov edx, dword [edx*4 + 0x5967c0]
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, esi
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
mov ecx, esi
xor edx, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov edx, dword [edx*4 + 0x5967c0]
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595fc0]
movzx ecx, bl
shr ebx, 0x10
xor edx, dword [ecx*4 + 0x595bc0]
xor edx, dword [eax + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], edx
shr ecx, 8
movzx ecx, cl
movzx edx, bl
mov edx, dword [edx*4 + 0x5963c0]
xor edx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5967c0]
mov ecx, esi
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
xor edx, dword [eax + 4]
mov dword [ebp - 8], edx
dec edi
je 0x407d66
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
shr edx, 0x18
mov edx, dword [edx*4 + 0x5967c0]
xor edx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
xor edx, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
xor ebx, dword [edx*4 + 0x5967c0]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x595bc0]
xor ebx, dword [eax + 0x10]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx edx, cl
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov ecx, ebx
shr ecx, 8
mov edx, dword [edx*4 + 0x5963c0]
movzx ecx, cl
shr ebx, 0x18
mov dword [ebp - 4], ebx
xor edx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5967c0]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [eax + 0x1c]
mov dword [ebp - 0x14], edx
mov ebx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx*4 + 0x5967c0]
mov ecx, dword [ebp + 0x10]
shr ecx, 8
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x595bc0]
mov ecx, edx
xor ebx, dword [eax + 0x14]
add eax, 0x20
shr ecx, 8
mov edx, ebx
movzx ecx, cl
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x595fc0]
xor ecx, dword [edx*4 + 0x5967c0]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
xor edx, dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 0x14]
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov edx, dword [edx*4 + 0x5967c0]
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595bc0]
mov ecx, ebx
xor edx, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov edx, dword [edx*4 + 0x5967c0]
xor edx, dword [ecx*4 + 0x5963c0]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595fc0]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
movzx ecx, dl
shr edx, 0x10
movzx edx, dl
xor esi, dword [ecx*4 + 0x595bc0]
mov ecx, esi
mov dword [ebp + 8], esi
xor ecx, dword [eax + 0xc]
mov edx, dword [edx*4 + 0x5963c0]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x595fc0]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5967c0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x595bc0]
xor edx, dword [eax + 4]
mov dword [ebp - 8], edx
dec edi
jne 0x407b57
mov ecx, dword [ebp + 8]
shr ecx, 0x18
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
movzx edx, byte [ecx + str.cw]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor edx, dword [eax + 0x10]
shr ecx, 0x18
mov dword [esi], edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 8]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 8]
xor edx, dword [eax + 0x14]
shr ecx, 0x18
mov dword [esi + 4], edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
movzx ecx, bl
shl edx, 8
shr ebx, 0x18
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 8]
xor edx, dword [eax + 0x18]
shr ecx, 0x10
movzx ecx, cl
mov dword [esi + 8], edx
movzx edx, byte [ebx + str.cw]
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, cl
shl edx, 8
pop edi
movzx ecx, byte [ecx + str.cw]
or edx, ecx
xor edx, dword [eax + 0x1c]
mov dword [esi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret