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

Disassembly:
sub esp, 0x28
push ebp
mov ebp, ecx
mov al, byte [ebp + 4]
test al, al
jne 0x401a5a
push 0x4370c0
lea ecx, [esp + 0x24]
call fcn.00408322
lea eax, [esp + 0x20]
push 0x432670
push eax
call fcn.00408411
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [edi + 4]
mov cl, byte [eax]
mov dl, byte [eax + 1]
shl ecx, 0x18
inc eax
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax]
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
or ecx, edx
mov edx, dword [edi]
inc eax
xor ecx, edx
xor edx, edx
mov dword [esp + 0x18], ecx
mov dl, byte [eax]
mov esi, edx
xor edx, edx
mov dl, byte [eax + 1]
shl esi, 0x18
inc eax
shl edx, 0x10
or esi, edx
inc eax
xor edx, edx
mov dh, byte [eax]
or esi, edx
inc eax
xor edx, edx
mov dl, byte [eax]
or esi, edx
inc eax
xor edx, edx
xor esi, ebx
mov dl, byte [eax]
xor ebx, ebx
mov bl, byte [eax + 1]
mov dword [esp + 0x3c], esi
shl edx, 0x18
inc eax
mov esi, dword [edi + 8]
shl ebx, 0x10
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
or edx, ebx
inc eax
xor ebx, ebx
mov bl, byte [eax]
or edx, ebx
inc eax
xor ebx, ebx
xor edx, esi
mov bl, byte [eax]
mov dword [esp + 0x1c], edx
mov esi, ebx
xor ebx, ebx
mov bl, byte [eax + 1]
shl esi, 0x18
inc eax
shl ebx, 0x10
or esi, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov bl, byte [eax + 1]
mov eax, dword [edi + 0xc]
or ebx, esi
mov esi, dword [ebp + 0x18]
xor eax, ebx
cmp esi, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
jle 0x401c71
mov edi, dword [esp + 0x24]
add edi, 4
dec esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], esi
xor ebx, ebx
mov bl, ah
xor eax, eax
mov al, byte [esp + 0x3f]
mov esi, dword [ebx*4 + 0x42d590]
mov ebx, dword [eax*4 + 0x42cd90]
xor eax, eax
mov al, byte [esp + 0x1a]
xor esi, ebx
mov edi, dword [eax*4 + 0x42d190]
mov eax, edx
and eax, 0xff
xor esi, edi
mov ebx, dword [eax*4 + 0x42d990]
mov eax, dword [esp + 0x14]
xor esi, ebx
xor ebx, ebx
mov eax, dword [eax]
mov bl, byte [esp + 0x3e]
mov edi, dword [eax + 4]
xor eax, eax
mov al, byte [esp + 0x1f]
xor esi, edi
mov edi, dword [eax*4 + 0x42cd90]
mov eax, dword [ebx*4 + 0x42d190]
xor edi, eax
xor eax, eax
mov al, ch
and ecx, 0xff
mov ebp, dword [eax*4 + 0x42d590]
mov eax, dword [esp + 0x10]
and eax, 0xff
xor edi, ebp
mov ebp, dword [eax*4 + 0x42d990]
mov eax, dword [esp + 0x14]
xor edi, ebp
mov eax, dword [eax]
mov ebx, dword [eax + 8]
xor eax, eax
mov al, byte [esp + 0x13]
xor edi, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1e]
mov ebp, dword [eax*4 + 0x42cd90]
mov eax, dword [ebx*4 + 0x42d190]
xor ebp, eax
xor eax, eax
mov al, byte [esp + 0x3d]
mov ebx, dword [eax*4 + 0x42d590]
mov eax, dword [ecx*4 + 0x42d990]
mov ecx, dword [esp + 0x14]
xor ebp, ebx
xor ebp, eax
mov eax, dword [ecx]
xor ecx, ecx
mov cl, byte [esp + 0x12]
mov ebx, dword [eax + 0xc]
mov ecx, dword [ecx*4 + 0x42d190]
xor ebp, ebx
xor ebx, ebx
mov bl, dh
mov edx, dword [ebx*4 + 0x42d590]
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x1b]
mov ebx, dword [edx*4 + 0x42cd90]
mov edx, dword [esp + 0x3c]
and edx, 0xff
xor ecx, ebx
mov dword [esp + 0x3c], esi
mov ebx, dword [edx*4 + 0x42d990]
mov edx, edi
mov edi, dword [esp + 0x14]
xor ecx, ebx
mov ebx, dword [eax]
mov eax, ebp
xor ecx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
add edi, 4
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edi
dec esi
mov dword [esp + 0x20], esi
jne 0x401b30
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edi, dword [eax + esi*4]
xor eax, eax
mov al, byte [esp + 0x1b]
mov esi, dword [edi]
mov al, byte [eax + 0x42bc90]
mov ebx, esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x40]
sar ebx, 0x18
xor al, bl
mov ebx, dword [esp + 0x14]
mov byte [esi], al
xor eax, eax
mov al, byte [esp + 0x12]
sar ebx, 0x10
mov al, byte [eax + 0x42bc90]
xor al, bl
mov ebx, dword [esp + 0x14]
mov byte [esi + 1], al
xor eax, eax
mov al, dh
and edx, 0xff
sar ebx, 8
mov al, byte [eax + 0x42bc90]
xor al, bl
mov bl, byte [esp + 0x14]
mov byte [esi + 2], al
mov eax, dword [esp + 0x3c]
and eax, 0xff
mov al, byte [eax + 0x42bc90]
xor al, bl
mov byte [esi + 3], al
mov ebp, dword [edi + 4]
xor eax, eax
mov ebx, ebp
mov al, byte [esp + 0x3f]
mov dword [esp + 0x14], ebp
sar ebx, 0x18
mov al, byte [eax + 0x42bc90]
xor al, bl
mov ebx, ebp
mov byte [esi + 4], al
xor eax, eax
mov al, byte [esp + 0x1a]
sar ebx, 0x10
mov al, byte [eax + 0x42bc90]
xor al, bl
mov ebx, ebp
mov byte [esi + 5], al
xor eax, eax
mov al, byte [esp + 0x11]
sar ebx, 8
mov al, byte [eax + 0x42bc90]
xor al, bl
mov byte [esi + 6], al
mov dl, byte [edx + 0x42bc90]
xor dl, byte [esp + 0x14]
mov byte [esi + 7], dl
mov eax, dword [edi + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esp + 0x1f]
sar ebx, 0x18
mov dl, byte [edx + 0x42bc90]
xor dl, bl
mov ebx, eax
mov byte [esi + 8], dl
xor edx, edx
mov dl, byte [esp + 0x3e]
sar ebx, 0x10
mov dl, byte [edx + 0x42bc90]
xor dl, bl
mov ebx, eax
mov byte [esi + 9], dl
xor edx, edx
mov dl, ch
sar ebx, 8
mov dl, byte [edx + 0x42bc90]
xor dl, bl
mov ebp, dword [esp + 0x10]
mov byte [esi + 0xa], dl
and ebp, 0xff
and ecx, 0xff
mov dl, byte [ebp + 0x42bc90]
xor dl, al
mov byte [esi + 0xb], dl
mov eax, dword [edi + 0xc]
xor edx, edx
mov ebx, eax
mov dl, byte [esp + 0x13]
pop edi
sar ebx, 0x18
mov dl, byte [edx + 0x42bc90]
xor dl, bl
mov ebx, eax
mov byte [esi + 0xc], dl
xor edx, edx
mov dl, byte [esp + 0x1a]
sar ebx, 0x10
mov dl, byte [edx + 0x42bc90]
xor dl, bl
mov ebx, eax
mov byte [esi + 0xd], dl
xor edx, edx
mov dl, byte [esp + 0x39]
sar ebx, 8
mov dl, byte [edx + 0x42bc90]
xor dl, bl
mov byte [esi + 0xe], dl
mov cl, byte [ecx + 0x42bc90]
xor cl, al
mov byte [esi + 0xf], cl
pop esi
pop ebx
pop ebp
add esp, 0x28
ret 8