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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4027bc
cmp dword [ebp + 0xc], 0
je 0x4027bc
test edi, edi
je 0x4027bc
mov edx, dword [ebx]
mov ebx, dword [ebx + 4]
push esi
mov esi, edx
ror esi, 8
mov ecx, 0xff00ff00
and esi, ecx
rol edx, 8
mov eax, 0xff00ff
and edx, eax
or esi, edx
xor esi, dword [edi]
mov edx, ebx
ror edx, 8
and edx, ecx
rol ebx, 8
and ebx, eax
or edx, ebx
xor edx, dword [edi + 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
mov edx, ebx
ror edx, 8
and edx, ecx
rol ebx, 8
and ebx, eax
or edx, ebx
xor edx, dword [edi + 8]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
ror ebx, 8
and ebx, ecx
mov ecx, dword [ebp + 8]
rol ecx, 8
and ecx, eax
or ebx, ecx
xor ebx, dword [edi + 0xc]
mov ecx, edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x10
mov eax, 0xff
and ebx, eax
shr ecx, 8
and ecx, eax
mov ecx, dword [ecx*4 + 0x430cb8]
xor ecx, dword [ebx*4 + 0x4308b8]
mov ebx, esi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x4304b8]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp - 4]
xor ecx, dword [edi + 0x10]
shr ebx, 8
mov dword [ebp - 0x10], edx
and ebx, eax
shr edx, 0x10
and edx, eax
mov dword [ebp + 8], edx
mov edx, dword [ebx*4 + 0x430cb8]
mov ebx, dword [ebp + 8]
xor edx, dword [ebx*4 + 0x4308b8]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4304b8]
mov ebx, esi
and ebx, eax
xor edx, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp - 4]
xor edx, dword [edi + 0x14]
shr ebx, 0x10
shr esi, 8
and ebx, eax
and esi, eax
mov dword [ebp + 8], esi
mov esi, dword [ebx*4 + 0x4308b8]
mov ebx, dword [ebp + 8]
xor esi, dword [ebx*4 + 0x430cb8]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4304b8]
mov ebx, dword [ebp - 8]
and ebx, eax
xor esi, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp - 0xc]
xor esi, dword [edi + 0x18]
mov edi, dword [ebp - 8]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x430cb8]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x4308b8]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4304b8]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx + 0x1c]
mov dword [ebp - 4], edi
lea edi, [ebx + 0x20]
mov dword [ebp + 8], edi
mov edi, dword [ebx + 0xf0]
sar edi, 1
dec edi
mov dword [ebp - 0x14], edi
je 0x402607
mov edi, esi
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x430cb8]
mov ebx, edx
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x4308b8]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4304b8]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp + 8]
xor edi, dword [ebx]
mov ebx, esi
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x430cb8]
xor edi, dword [ebx*4 + 0x4308b8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4304b8]
mov ebx, ecx
and ebx, eax
xor edi, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp + 8]
xor edi, dword [ebx + 4]
mov ebx, ecx
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
shr ebx, 8
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4308b8]
xor edi, dword [ebx*4 + 0x430cb8]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4304b8]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4310b8]
mov ebx, dword [ebp + 8]
xor edi, dword [ebx + 8]
shr edx, 8
and edx, eax
mov ebx, dword [edx*4 + 0x430cb8]
shr ecx, 0x10
and ecx, eax
xor ebx, dword [ecx*4 + 0x4308b8]
mov ecx, dword [ebp - 4]
and esi, eax
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x4304b8]
mov ecx, dword [ebp + 8]
xor ebx, dword [esi*4 + 0x4310b8]
mov esi, dword [ebp - 8]
xor ebx, dword [ecx + 0xc]
shr esi, 0x10
mov edx, edi
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x430cb8]
and esi, eax
xor edx, dword [esi*4 + 0x4308b8]
mov esi, dword [ebp - 0xc]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4304b8]
mov esi, ebx
and esi, eax
xor edx, dword [esi*4 + 0x4310b8]
mov dword [ebp - 0x10], edi
xor edx, dword [ecx + 0x10]
mov dword [ebp - 4], ebx
mov ecx, edx
mov edx, ebx
mov esi, edi
shr esi, 0x10
and esi, eax
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x430cb8]
xor edx, dword [esi*4 + 0x4308b8]
mov esi, dword [ebp - 8]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4304b8]
mov esi, dword [ebp - 0xc]
and esi, eax
xor edx, dword [esi*4 + 0x4310b8]
mov esi, dword [ebp + 8]
xor edx, dword [esi + 0x14]
mov esi, dword [ebp - 0xc]
shr ebx, 0x10
and ebx, eax
mov ebx, dword [ebx*4 + 0x4308b8]
shr edi, 0x18
shr esi, 8
and esi, eax
xor ebx, dword [esi*4 + 0x430cb8]
xor ebx, dword [edi*4 + 0x4304b8]
mov edi, dword [ebp - 8]
mov esi, edi
and esi, eax
xor ebx, dword [esi*4 + 0x4310b8]
mov esi, dword [ebp + 8]
xor ebx, dword [esi + 0x18]
shr edi, 8
mov esi, ebx
mov ebx, dword [ebp - 0xc]
and edi, eax
mov edi, dword [edi*4 + 0x430cb8]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x4308b8]
mov ebx, edi
mov edi, dword [ebp - 4]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4304b8]
mov edi, dword [ebp - 0x10]
and edi, eax
xor ebx, dword [edi*4 + 0x4310b8]
mov edi, dword [ebp + 8]
xor ebx, dword [edi + 0x1c]
add dword [ebp + 8], 0x20
dec dword [ebp - 0x14]
mov dword [ebp - 4], ebx
jne 0x40241e
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4310b8]
and edi, 0xff0000
mov ebx, esi
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x4304b8]
and ebx, 0xff00
xor edi, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x430cb8]
and ebx, 0xff000000
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x4308b8]
xor edi, ebx
mov ebx, dword [ebp + 8]
xor edi, dword [ebx]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
mov ebx, dword [ebp - 4]
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x4304b8]
and ebx, 0xff00
mov edi, esi
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4310b8]
and edi, 0xff0000
xor edi, ebx
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x430cb8]
and ebx, 0xff000000
xor edi, ebx
mov ebx, ecx
and ebx, eax
movzx ebx, byte [ebx*4 + 0x4308b8]
xor edi, ebx
mov ebx, dword [ebp + 8]
xor edi, dword [ebx + 4]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4310b8]
mov ebx, ecx
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x4304b8]
and ebx, 0xff00
and edi, 0xff0000
xor edi, ebx
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x430cb8]
and ebx, 0xff000000
xor edi, ebx
mov ebx, edx
and ebx, eax
movzx ebx, byte [ebx*4 + 0x4308b8]
xor edi, ebx
mov ebx, dword [ebp + 8]
xor edi, dword [ebx + 8]
shr ecx, 0x10
mov ebx, edi
ror ebx, 8
and ecx, eax
and ebx, 0xff00ff00
shr edx, 8
and edx, eax
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + 8], ebx
mov ecx, dword [ecx*4 + 0x4310b8]
mov edx, dword [edx*4 + 0x4304b8]
and ecx, 0xff0000
and edx, 0xff00
xor ecx, edx
mov edx, dword [ebp - 4]
and esi, eax
movzx eax, byte [esi*4 + 0x4308b8]
shr edx, 0x18
mov edx, dword [edx*4 + 0x430cb8]
and edx, 0xff000000
xor ecx, edx
xor ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0xc]
pop esi
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 0xc], eax
xor eax, eax
jmp 0x4027bf
or eax, 0xffffffff
pop edi
pop ebx
leave
ret