Function at 0x419490
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov edx, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x18]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 0x14]
xor edx, dword [eax + 4]
xor ebx, dword [eax + 8]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 0x1c]
xor edx, dword [eax + 0xc]
lea eax, [ecx + 0x20]
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ecx]
mov ecx, edx
sar ecx, 0x18
movzx edx, cl
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x435e20]
xor edx, dword [ecx*4 + 0x435a20]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435620]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax]
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x435a20]
xor edx, dword [ecx*4 + 0x435620]
mov ecx, dword [ebp - 8]
sar ecx, 0x18
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435e20]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
mov dword [ebp + 0x10], edx
movzx edx, cl
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
mov edx, dword [edx*4 + 0x435620]
xor edx, dword [ecx*4 + 0x435e20]
mov ecx, dword [ebp - 8]
sar ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435a20]
movzx ecx, bl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax + 8]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
mov dword [ebp + 8], edx
movzx ecx, cl
movzx edx, bl
mov edx, dword [edx*4 + 0x435e20]
xor edx, dword [ecx*4 + 0x435a20]
mov ecx, dword [ebp - 8]
sar ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435620]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax + 0xc]
sub edi, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], edi
je 0x4197dd
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov ebx, dword [ebp - 0x10]
mov edx, dword [edx*4 + 0x435e20]
xor edx, dword [ecx*4 + 0x435a20]
mov ecx, dword [ebp + 0x10]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435620]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax + 0x10]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [ebp - 0xc], edx
movzx edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x435a20]
xor edx, dword [ecx*4 + 0x435620]
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x435e20]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax + 0x14]
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x435620]
xor ebx, dword [edx*4 + 0x435e20]
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
xor ebx, dword [ecx*4 + 0x435a20]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x435220]
xor ebx, dword [eax + 0x18]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x435e20]
xor ebx, dword [ecx*4 + 0x435a20]
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x435620]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x435220]
mov ecx, dword [ebp - 8]
xor ebx, dword [eax + 0x1c]
add eax, 0x20
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x435620]
xor edx, dword [ecx*4 + 0x435a20]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x435e20]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435220]
mov ecx, ebx
xor edx, dword [eax]
mov dword [ebp - 0x10], edx
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x435a20]
xor edx, dword [ecx*4 + 0x435620]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x435e20]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435220]
mov ecx, ebx
xor edx, dword [eax + 4]
shr ecx, 8
mov dword [ebp + 0x10], edx
movzx edx, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x435620]
xor edx, dword [ecx*4 + 0x435a20]
mov ecx, dword [ebp - 8]
sar ecx, 0x18
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435e20]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
movzx ecx, dl
sar edx, 0x18
movzx edx, dl
xor esi, dword [ecx*4 + 0x435220]
mov ecx, esi
mov dword [ebp + 8], esi
xor ecx, dword [eax + 8]
mov edx, dword [edx*4 + 0x435e20]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 8]
sar ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435a20]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x435620]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x435220]
xor edx, dword [eax + 0xc]
sub dword [ebp - 0x18], 1
mov dword [ebp - 4], edx
jne 0x4195d2
mov ecx, edx
mov ebx, dword [ebp - 0x10]
shr ecx, 0x18
mov esi, dword [ebp + 0xc]
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 0x10]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, ebx
xor edx, dword [eax + 0x10]
shr ecx, 0x18
mov dword [esi], edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 0x10]
xor edx, dword [eax + 0x14]
shr ecx, 0x18
mov dword [esi + 4], edx
movzx edx, byte [ecx + str.cw]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
shr ebx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp + 8]
xor edx, dword [eax + 0x18]
shr ecx, 0x18
mov dword [esi + 8], edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
movzx ecx, cl
shl edx, 8
pop edi
movzx ecx, byte [ecx + str.cw]
or edx, ecx
xor edx, dword [eax + 0x1c]
mov dword [esi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret