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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebx]
mov dword [ebp - 0x20], ebx
cmp ebx, 0x10
jb 0x4197d7
pop edi
mov eax, 0xffffffa4
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x419a2a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], ecx
nop
dec eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x419a05
mov esi, dword [ebp + 0xc]
push 0x486490
push 0x486690
push 0x486590
mov eax, dword [esi]
xor eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [esi + 0xc]
xor esi, dword [edi + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str.cw
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 8]
mov dword [ebp - 0x10], esi
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 [edi + 0x14]
lea edx, [ebp - 8]
xor dword [ebp - 4], eax
lea ecx, [ebp - 4]
mov eax, dword [edi + 0x18]
lea esi, [ebx + 2]
xor dword [ebp - 8], eax
mov eax, dword [edi + 0x1c]
xor dword [ebp - 0xc], eax
mov eax, dword [edi + 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 [edi]
add esp, 0x38
mov dword [ebp - 0x28], eax
cmp eax, esi
jbe 0x4199a4
lea eax, [edi + 0x30]
mov dword [ebp - 0x24], eax
lea ebx, [edi + 0x2c]
lea eax, [edi + 0x28]
mov dword [ebp - 0x18], eax
lea eax, [edi + 0x24]
mov edi, dword [ebp - 0x24]
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 - 0x28]
jl 0x4198c7
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shl esi, 4
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
xor esi, dword [eax + edi + 4]
xor edx, dword [eax + edi + 8]
xor ecx, dword [eax + edi + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x18]
xor eax, dword [esi + edi + 0x10]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x28]
mov dword [edi], esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov edx, 1
mov dword [esi + 0xc], eax
sub edx, ecx
lea eax, [ecx + 0xf]
add byte [eax], 1
jne 0x4199ff
dec eax
lea ecx, [edx + eax]
test ecx, ecx
jg 0x4199f2
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov al, byte [ebx + esi]
inc ebx
movzx ecx, byte [ecx + edx]
and ebx, 0xf
xor al, cl
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0x14]
mov byte [edx], al
inc edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x18], edx
test eax, eax
jne 0x4197f0
pop esi
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret