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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0040103f
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040103f
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103f
add esi, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040103f
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
shl eax, 4
add eax, edi
xor ebx, ebx
mov esi, 0xff
add esp, 0x20
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor ecx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov dword [ebp + 0x10], ecx
mov bl, ch
mov dword [ebp - 4], eax
xor eax, eax
mov al, byte [ebp - 2]
mov ecx, edx
shr ecx, 0x18
mov eax, dword [eax*4 + 0x410550]
xor eax, dword [ebx*4 + 0x410950]
xor ebx, ebx
mov bl, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x410150]
mov ecx, dword [ebp + 8]
and ecx, esi
xor eax, dword [ecx*4 + 0x410d50]
xor ecx, ecx
mov cl, byte [ebp - 3]
mov ecx, dword [ecx*4 + 0x410950]
xor ecx, dword [ebx*4 + 0x410550]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x410150]
mov ebx, dword [ebp + 0x10]
and ebx, esi
xor ecx, dword [ebx*4 + 0x410d50]
xor ebx, ebx
mov bl, dh
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov cl, byte [ebp + 0xa]
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x410550]
xor ecx, dword [ebx*4 + 0x410950]
xor ecx, dword [edx*4 + 0x410150]
mov edx, dword [ebp - 4]
and edx, esi
xor ecx, dword [edx*4 + 0x410d50]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov cl, byte [ebp + 0x12]
mov ecx, dword [ecx*4 + 0x410550]
xor edx, edx
mov dl, byte [ebp + 9]
xor ecx, dword [edx*4 + 0x410950]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x410150]
mov edx, dword [ebp - 8]
and edx, esi
xor ecx, dword [edx*4 + 0x410d50]
mov edx, dword [ebp + 0x14]
lea ebx, [edx - 1]
cmp ebx, 1
jle 0x401b60
mov edx, ebx
shl edx, 4
dec ebx
lea edx, [edx + edi + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x14], edx
mov ebx, dword [edx - 8]
xor ebx, eax
mov eax, dword [edx - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
xor eax, dword [ebp - 0x10]
xor edx, ecx
xor ecx, ecx
mov dword [ebp - 4], edx
xor edx, edx
mov cl, byte [ebp - 2]
mov dword [ebp + 0x10], eax
mov dl, ah
mov eax, dword [ecx*4 + 0x410550]
mov ecx, ebx
xor eax, dword [edx*4 + 0x410950]
xor edx, edx
shr ecx, 0x18
mov dl, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x410150]
mov ecx, dword [ebp + 8]
and ecx, esi
xor eax, dword [ecx*4 + 0x410d50]
xor ecx, ecx
mov cl, byte [ebp - 3]
mov ecx, dword [ecx*4 + 0x410950]
xor ecx, dword [edx*4 + 0x410550]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x410150]
mov edx, dword [ebp + 0x10]
and edx, esi
xor ecx, dword [edx*4 + 0x410d50]
xor edx, edx
mov dl, bh
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov cl, byte [ebp + 0xa]
mov ebx, dword [ecx*4 + 0x410550]
mov ecx, dword [ebp + 0x10]
xor ebx, dword [edx*4 + 0x410950]
xor edx, edx
shr ecx, 0x18
mov dl, byte [ebp + 9]
xor ebx, dword [ecx*4 + 0x410150]
mov ecx, dword [ebp - 4]
and ecx, esi
xor ebx, dword [ecx*4 + 0x410d50]
xor ecx, ecx
mov cl, byte [ebp + 0x12]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ecx*4 + 0x410550]
mov ecx, dword [ebp - 4]
xor ebx, dword [edx*4 + 0x410950]
mov edx, dword [ebp + 0x14]
shr ecx, 0x18
sub edx, 0x10
xor ebx, dword [ecx*4 + 0x410150]
mov ecx, dword [ebp - 8]
and ecx, esi
mov dword [ebp + 0x14], edx
xor ebx, dword [ecx*4 + 0x410d50]
dec dword [ebp - 0x14]
mov ecx, ebx
jne 0x401a64
mov edx, dword [edi + 0x10]
xor ebx, ebx
xor edx, eax
mov eax, dword [edi + 0x14]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x18]
xor eax, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [edi + 0x1c]
xor eax, ecx
xor ecx, ecx
mov cl, byte [ebp - 6]
mov dword [ebp - 4], eax
mov bl, byte [ecx + 0x411150]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
mov bh, byte [ecx + 0x411150]
xor ecx, ecx
mov cl, ah
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
mov ecx, dword [ebp + 0x10]
and ecx, esi
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
xor ecx, ecx
xor ebx, dword [edi + 4]
mov cl, byte [ebp + 0xa]
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x411150]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
mov bh, byte [ecx + 0x411150]
xor ecx, ecx
mov cl, dh
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
mov ecx, eax
and ecx, esi
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
xor ecx, ecx
xor ebx, dword [edi + 8]
mov cl, byte [ebp + 0x12]
shr eax, 0x18
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x411150]
xor ecx, ecx
mov bh, byte [eax + 0x411150]
mov eax, dword [ebp + 8]
mov cl, ah
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
mov ecx, edx
and ecx, esi
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
xor ecx, ecx
xor ebx, dword [edi + 0xc]
mov cl, byte [ebp - 2]
shr edx, 0x18
mov dword [ebp + 0x14], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x411150]
xor ecx, ecx
mov cl, byte [ebp + 0x11]
mov bh, byte [edx + 0x411150]
shl ebx, 8
movzx ecx, byte [ecx + 0x411150]
or ebx, ecx
shl ebx, 8
and eax, esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [eax + 0x411150]
or ebx, eax
xor ebx, dword [edi]
push ebx
push esi
call fcn.004013fd
push dword [ebp - 0xc]
lea eax, [esi + 4]
push eax
call fcn.004013fd
push dword [ebp - 0x10]
lea eax, [esi + 8]
push eax
call fcn.004013fd
push dword [ebp + 0x14]
add esi, 0xc
push esi
call fcn.004013fd
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret