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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 4]
movzx ebx, byte [eax]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 7]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 8]
shl ecx, 8
movzx esi, byte [eax + 9]
or ecx, esi
movzx esi, byte [eax + 0xa]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xb]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xd]
mov edi, dword [ebp + 8]
xor ecx, dword [edi + 0xc]
xor edx, dword [edi + 8]
xor ebx, dword [edi + 4]
mov dword [ebp - 4], ecx
movzx ecx, byte [eax + 0xc]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, eax
xor ecx, dword [edi + 0x10]
mov eax, dword [edi]
dec eax
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], 4
mov dword [ebp - 8], eax
mov esi, 0xff
test eax, eax
jle 0x403297
sar edx, 0x18
and edx, esi
movzx eax, byte [edx + str.cw]
mov edx, dword [ebp - 4]
sar edx, 0x10
and edx, esi
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
shl eax, 8
mov edx, ecx
sar edx, 8
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
shl eax, 8
mov edx, ebx
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sar eax, 0x18
and eax, esi
movzx eax, byte [eax + str.cw]
shl eax, 8
mov edx, ecx
sar edx, 0x10
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
shl eax, 8
mov edx, ebx
sar edx, 8
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
mov edx, dword [ebp + 0xc]
and edx, esi
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
mov dword [ebp - 0xc], eax
mov eax, ecx
sar eax, 0x18
and eax, esi
movzx eax, byte [eax + str.cw]
shl eax, 8
mov edx, ebx
sar edx, 0x10
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
mov edx, dword [ebp + 0xc]
sar edx, 8
and edx, esi
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
mov edx, dword [ebp - 4]
and edx, esi
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
mov edx, dword [ebp + 0xc]
sar edx, 0x10
mov dword [ebp - 0x14], eax
sar ebx, 0x18
and edx, esi
movzx edx, byte [edx + str.cw]
and ebx, esi
movzx eax, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov edx, dword [ebp - 4]
sar edx, 8
and edx, esi
movzx edx, byte [edx + str.cw]
shl eax, 8
or eax, edx
shl eax, 8
and ecx, esi
movzx ecx, byte [ecx + str.cw]
or eax, ecx
call fcn.00402cf5
mov ecx, dword [ebp + 8]
xor eax, dword [edi + ecx*4 + 4]
inc dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00402cf5
mov ecx, dword [ebp + 8]
xor eax, dword [edi + ecx*4 + 4]
inc dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402cf5
mov ecx, dword [ebp + 8]
xor eax, dword [edi + ecx*4 + 4]
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
call fcn.00402cf5
mov ecx, dword [ebp + 8]
xor eax, dword [edi + ecx*4 + 4]
inc dword [ebp + 8]
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
mov edx, dword [ebp + 0xc]
mov ecx, eax
jg 0x40311e
sar edx, 0x10
and edx, esi
movzx edx, byte [edx + str.cw]
mov eax, ebx
sar eax, 0x18
and eax, esi
movzx eax, byte [eax + str.cw]
shl eax, 8
or eax, edx
mov edx, dword [ebp - 4]
shl eax, 8
sar edx, 8
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
shl eax, 8
mov edx, ecx
and edx, esi
movzx edx, byte [edx + str.cw]
or eax, edx
mov edx, dword [ebp + 8]
xor eax, dword [edi + edx*4 + 4]
inc dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
sar eax, 0x18
and eax, esi
movzx edx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
sar eax, 0x10
and eax, esi
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, eax
mov eax, ecx
sar eax, 8
and eax, esi
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, eax
mov eax, ebx
and eax, esi
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
xor edx, dword [edi + eax*4 + 4]
lea eax, [edi + eax*4 + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
sar eax, 0x18
and eax, esi
movzx edi, byte [eax + str.cw]
mov eax, ecx
sar eax, 0x10
and eax, esi
movzx eax, byte [eax + str.cw]
shl edi, 8
or edi, eax
mov eax, ebx
sar eax, 8
and eax, esi
movzx eax, byte [eax + str.cw]
shl edi, 8
or edi, eax
mov eax, dword [ebp + 0xc]
and eax, esi
movzx eax, byte [eax + str.cw]
sar ecx, 0x18
shl edi, 8
or edi, eax
mov eax, dword [ebp + 8]
xor edi, dword [eax]
and ecx, esi
movzx ecx, byte [ecx + str.cw]
sar ebx, 0x10
and ebx, esi
movzx eax, byte [ebx + str.cw]
shl ecx, 8
mov dword [ebp - 0xc], edi
or ecx, eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
sar eax, 8
and eax, esi
movzx eax, byte [eax + str.cw]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 4]
sar ebx, 0x18
and eax, esi
movzx eax, byte [eax + str.cw]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
mov ebx, dword [ebp - 8]
sar ebx, 0x10
mov byte [eax + 1], bl
mov ebx, dword [ebp - 8]
sar ebx, 8
mov byte [eax + 2], bl
mov bl, byte [ebp - 8]
mov byte [eax + 3], bl
mov ebx, edx
sar ebx, 0x18
mov byte [eax + 4], bl
mov ebx, edx
sar ebx, 0x10
mov byte [eax + 5], bl
mov ebx, edx
sar ebx, 8
mov byte [eax + 7], dl
mov byte [eax + 6], bl
mov edx, edi
mov ebx, edx
sar ebx, 0x18
mov byte [eax + 8], bl
mov ebx, edx
sar ebx, 0x10
mov byte [eax + 0xb], dl
mov byte [eax + 9], bl
mov ebx, edx
mov edx, ecx
sar edx, 0x18
mov byte [eax + 0xc], dl
mov edx, ecx
sar edx, 0x10
mov byte [eax + 0xd], dl
sar ebx, 8
pop edi
mov edx, ecx
sar edx, 8
pop esi
mov byte [eax + 0xa], bl
mov byte [eax + 0xe], dl
mov byte [eax + 0xf], cl
pop ebx
leave
ret