Function at 0x4039a0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, eax
test esi, esi
je 0x403f8d
cmp dword [ebp + 8], 0
je 0x403f8d
test ebx, ebx
je 0x403f8d
mov eax, dword [esi]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
xor edx, dword [ebx]
mov eax, dword [esi + 4]
push edi
mov edi, eax
ror edi, 8
and edi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edi, eax
xor edi, dword [ebx + 4]
mov eax, dword [esi + 8]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
xor ecx, dword [ebx + 8]
mov eax, dword [esi + 0xc]
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
xor esi, dword [ebx + 0xc]
mov eax, ecx
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x433a68]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
xor eax, dword [ebx*4 + 0x433668]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x433268]
mov ebx, esi
and ebx, 0xff
xor eax, dword [ebx*4 + 0x433e68]
mov ebx, dword [ebp + 0xc]
xor eax, dword [ebx + 0x10]
mov dword [ebp - 8], ecx
mov ebx, esi
shr ebx, 8
and ebx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx*4 + 0x433a68]
mov ebx, dword [ebp - 0x14]
xor ecx, dword [ebx*4 + 0x433668]
mov ebx, edi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x433268]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x433e68]
mov ebx, dword [ebp + 0xc]
xor ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], esi
shr esi, 0x10
and esi, 0xff
mov ebx, edx
shr ebx, 8
and ebx, 0xff
mov dword [ebp - 0x14], ebx
mov ebx, dword [esi*4 + 0x433668]
mov esi, dword [ebp - 0x14]
xor ebx, dword [esi*4 + 0x433a68]
mov esi, dword [ebp - 8]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x433268]
mov esi, edi
shr edi, 8
shr edx, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x433a68]
and edx, 0xff
xor edi, dword [edx*4 + 0x433668]
mov edx, dword [ebp - 0x10]
shr edx, 0x18
xor edi, dword [edx*4 + 0x433268]
mov edx, dword [ebp - 8]
and esi, 0xff
xor ebx, dword [esi*4 + 0x433e68]
mov esi, dword [ebp + 0xc]
xor ebx, dword [esi + 0x18]
and edx, 0xff
xor edi, dword [edx*4 + 0x433e68]
lea edx, [esi + 0x20]
xor edi, dword [esi + 0x1c]
mov esi, dword [esi + 0xf0]
sar esi, 1
dec esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
je 0x403dac
lea ecx, [ecx]
mov edx, ebx
mov esi, ecx
shr esi, 0x10
and esi, 0xff
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x433a68]
xor edx, dword [esi*4 + 0x433668]
mov esi, eax
shr esi, 0x18
xor edx, dword [esi*4 + 0x433268]
mov esi, edi
and esi, 0xff
xor edx, dword [esi*4 + 0x433e68]
mov esi, dword [ebp - 4]
xor edx, dword [esi]
mov esi, edi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x433a68]
xor esi, dword [ebx*4 + 0x433668]
mov ebx, ecx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x433268]
mov ebx, eax
and ebx, 0xff
xor esi, dword [ebx*4 + 0x433e68]
mov ebx, dword [ebp - 4]
xor esi, dword [ebx + 4]
mov ebx, eax
shr edi, 0x10
and edi, 0xff
shr ebx, 8
and ebx, 0xff
mov dword [ebp - 8], ebx
mov ebx, dword [edi*4 + 0x433668]
mov edi, dword [ebp - 8]
xor ebx, dword [edi*4 + 0x433a68]
mov edi, dword [ebp - 0xc]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x433268]
mov edi, ecx
shr eax, 0x10
shr ecx, 8
and edi, 0xff
xor ebx, dword [edi*4 + 0x433e68]
mov edi, dword [ebp - 4]
xor ebx, dword [edi + 8]
and eax, 0xff
and ecx, 0xff
mov edi, dword [ecx*4 + 0x433a68]
xor edi, dword [eax*4 + 0x433668]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 0x18
xor edi, dword [eax*4 + 0x433268]
mov eax, dword [ebp - 4]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x433e68]
mov ecx, ebx
xor edi, dword [eax + 0xc]
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x433a68]
mov eax, esi
shr eax, 0x10
and eax, 0xff
xor ecx, dword [eax*4 + 0x433668]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x433268]
mov eax, edi
and eax, 0xff
xor ecx, dword [eax*4 + 0x433e68]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
mov eax, ecx
shr ebx, 0x10
and ebx, 0xff
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x433a68]
xor ecx, dword [ebx*4 + 0x433668]
mov ebx, esi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x433268]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x433e68]
mov ebx, dword [ebp - 4]
xor ecx, dword [ebx + 0x14]
shr edi, 0x10
mov ebx, edx
shr ebx, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x433668]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433a68]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433268]
mov ebx, esi
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x433a68]
shr edx, 0x10
and edx, 0xff
xor esi, dword [edx*4 + 0x433668]
mov edx, dword [ebp - 0x10]
shr edx, 0x18
xor esi, dword [edx*4 + 0x433268]
mov edx, dword [ebp - 8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x433e68]
and edx, 0xff
xor esi, dword [edx*4 + 0x433e68]
mov ebx, edi
mov edi, dword [ebp - 4]
xor esi, dword [edi + 0x1c]
xor ebx, dword [edi + 0x18]
add dword [ebp - 4], 0x20
dec dword [ebp - 0x14]
mov edi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jne 0x403b70
mov edx, ecx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x433e68]
and edx, 0xff0000
mov esi, ebx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x433268]
and esi, 0xff00
xor edx, esi
mov esi, eax
shr esi, 0x18
mov esi, dword [esi*4 + 0x433a68]
and esi, 0xff000000
xor edx, esi
mov esi, edi
and esi, 0xff
movzx esi, byte [esi*4 + 0x433668]
xor edx, esi
mov esi, dword [ebp - 4]
xor edx, dword [esi]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov edx, dword [ebp + 8]
mov dword [edx], esi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x433e68]
and edx, 0xff0000
mov esi, edi
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x433268]
and esi, 0xff00
xor edx, esi
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x433a68]
and esi, 0xff000000
xor edx, esi
mov esi, eax
and esi, 0xff
movzx esi, byte [esi*4 + 0x433668]
xor edx, esi
mov esi, dword [ebp - 4]
xor edx, dword [esi + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], esi
mov edx, edi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x433e68]
mov esi, eax
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x433268]
and esi, 0xff00
and edx, 0xff0000
xor edx, esi
mov esi, ebx
shr esi, 0x18
mov esi, dword [esi*4 + 0x433a68]
and esi, 0xff000000
xor edx, esi
mov esi, ecx
and esi, 0xff
movzx esi, byte [esi*4 + 0x433668]
xor edx, esi
mov esi, dword [ebp - 4]
xor edx, dword [esi + 8]
shr ecx, 8
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
shr eax, 0x10
and ecx, 0xff
rol edx, 8
and eax, 0xff
and edx, 0xff00ff
or esi, edx
mov edx, dword [ebp + 8]
mov dword [edx + 8], esi
mov ecx, dword [ecx*4 + 0x433268]
mov eax, dword [eax*4 + 0x433e68]
and ecx, 0xff00
and eax, 0xff0000
xor eax, ecx
shr edi, 0x18
mov ecx, dword [edi*4 + 0x433a68]
and ecx, 0xff000000
xor eax, ecx
and ebx, 0xff
movzx ecx, byte [ebx*4 + 0x433668]
xor eax, ecx
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0xc]
pop edi
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
pop esi
mov dword [edx + 0xc], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret