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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
push edi
mov edi, dword [edx + 8]
lea ecx, [ebp - 4]
mov edx, dword [edx + 0xc]
xor eax, dword [ebx + 4]
xor edx, dword [ebx + 0x10]
xor esi, dword [ebx + 8]
xor edi, dword [ebx + 0xc]
push 0x486490
push 0x486690
push 0x486590
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str.cw
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push eax
lea edx, [ebp - 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call fcn.00418e70
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00418d00
mov eax, dword [ebx + 0x14]
lea edx, [ebp - 8]
xor dword [ebp - 4], eax
lea ecx, [ebp - 4]
mov eax, dword [ebx + 0x18]
mov esi, 2
xor dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
xor dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x20]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x486590
push str.cw
push 0x486490
push 0x486690
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418e70
movzx eax, byte [ebx]
add esp, 0x38
mov dword [ebp - 0x20], eax
cmp eax, esi
jbe 0x4195a2
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 0x30]
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x24]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00418d00
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x486490
push 0x486690
mov eax, dword [edx]
add edx, 0x10
xor dword [ebp - 4], eax
mov eax, dword [ecx]
add ecx, 0x10
xor dword [ebp - 8], eax
mov eax, dword [ebx]
xor dword [ebp - 0xc], eax
mov eax, dword [edi]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x486590
push str.cw
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00418e70
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00418d00
mov edx, dword [ebp - 0x14]
lea ebx, [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
lea edi, [edi + 0x20]
push 0x486590
push str.cw
mov eax, dword [edx]
add esi, 2
xor dword [ebp - 4], eax
add edx, 0x10
mov eax, dword [ecx]
add ecx, 0x10
xor dword [ebp - 8], eax
mov eax, dword [ebx - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [edi - 0x10]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x486490
push 0x486690
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00418e70
add esp, 0x40
cmp esi, dword [ebp - 0x20]
jl 0x4194c8
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl esi, 4
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
xor edi, dword [esi + ebx + 4]
mov esi, dword [ebp - 8]
xor esi, dword [eax + ebx + 8]
xor edx, dword [eax + ebx + 0xc]
xor ecx, dword [eax + ebx + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret