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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x10]
push ebx
xor edx, dword [eax]
mov ebx, dword [ecx + 0x14]
xor ebx, dword [eax + 4]
mov dword [esp + 8], edx
mov edx, dword [ecx + 0x18]
xor edx, dword [eax + 8]
mov dword [esp + 4], edx
mov edx, dword [ecx + 0x1c]
xor edx, dword [eax + 0xc]
mov eax, dword [esp + 4]
sar eax, 0x10
push ebp
mov ebp, dword [ecx]
push esi
lea esi, [ecx + 0x20]
mov dword [esp + 0x18], edx
movzx ecx, al
mov eax, ebx
sar eax, 8
movzx eax, al
push edi
mov ecx, dword [ecx*4 + 0x102002c0]
xor ecx, dword [eax*4 + 0x101ffec0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x102006c0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x101ffac0]
xor ecx, dword [esi]
mov eax, dword [esp + 0x10]
sar eax, 8
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx*4 + 0x101ffec0]
xor edx, dword [eax*4 + 0x102002c0]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor edx, dword [eax*4 + 0x102006c0]
movzx eax, bl
xor edx, dword [eax*4 + 0x101ffac0]
xor edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
sar eax, 0x10
mov dword [esp + 0x2c], edx
movzx edx, al
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x102002c0]
xor eax, dword [ecx*4 + 0x101ffec0]
mov ecx, ebx
shr ecx, 0x18
sar ebx, 0x10
xor eax, dword [ecx*4 + 0x102006c0]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101ffac0]
mov ecx, dword [esp + 0x14]
sar ecx, 8
xor eax, dword [esi + 8]
movzx edx, cl
movzx ecx, bl
mov edx, dword [edx*4 + 0x101ffec0]
xor edx, dword [ecx*4 + 0x102002c0]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x102006c0]
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x101ffac0]
xor edx, dword [esi + 0xc]
sub ebp, 1
mov dword [esp + 0x10], edx
je 0x10104507
nop
mov edi, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x2c]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x102002c0]
mov ebx, dword [esp + 0x20]
xor edx, dword [ecx*4 + 0x101ffec0]
mov ecx, edi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x102006c0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x101ffac0]
mov ecx, edi
xor edx, dword [esi + 0x10]
shr ecx, 0x10
mov dword [esp + 0x18], edx
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x102002c0]
xor edx, dword [ecx*4 + 0x101ffec0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x102006c0]
mov ecx, dword [esp + 0x2c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x101ffac0]
mov ecx, edi
xor edx, dword [esi + 0x14]
shr ecx, 8
mov dword [esp + 0x14], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
mov edx, dword [edx*4 + 0x101ffec0]
xor edx, dword [ecx*4 + 0x102002c0]
mov ecx, dword [esp + 0x2c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x102006c0]
movzx ecx, al
shr eax, 0x18
xor edx, dword [ecx*4 + 0x101ffac0]
xor edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x2c]
shr ecx, 0x10
mov dword [esp + 0x1c], edx
movzx edx, cl
movzx ecx, bl
mov ebx, dword [edx*4 + 0x102002c0]
xor ebx, dword [ecx*4 + 0x101ffec0]
xor ebx, dword [eax*4 + 0x102006c0]
mov eax, edi
movzx eax, al
xor ebx, dword [eax*4 + 0x101ffac0]
mov eax, dword [esp + 0x1c]
xor ebx, dword [esi + 0x1c]
add esi, 0x20
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x102002c0]
xor ecx, dword [eax*4 + 0x101ffec0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x102006c0]
mov eax, dword [esp + 0x18]
movzx eax, al
xor ecx, dword [eax*4 + 0x101ffac0]
mov eax, ebx
xor ecx, dword [esi]
shr eax, 0x10
mov dword [esp + 0x20], ecx
movzx ecx, al
mov edx, dword [ecx*4 + 0x102002c0]
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x101ffec0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor edx, dword [eax*4 + 0x102006c0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor edx, dword [eax*4 + 0x101ffac0]
mov eax, ebx
xor edx, dword [esi + 4]
shr eax, 8
mov dword [esp + 0x2c], edx
movzx edx, al
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, dword [edx*4 + 0x101ffec0]
mov edx, dword [esp + 0x14]
xor eax, dword [ecx*4 + 0x102002c0]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor eax, dword [ecx*4 + 0x102006c0]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx*4 + 0x102002c0]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101ffac0]
mov ecx, dword [esp + 0x18]
xor eax, dword [esi + 8]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x101ffec0]
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x102006c0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x101ffac0]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x10], edx
sub ebp, 1
jne 0x10104300
shr edx, 0x18
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [esp + 0x20]
movzx edx, byte [edx + str.cw]
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
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, dword [esp + 0x10]
xor edx, dword [esi + 0x10]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp], edx
movzx edx, byte [ecx + str.cw]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [esp + 0x2c]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, dword [esp + 0x2c]
xor edx, dword [esi + 0x14]
shr ecx, 0x18
mov dword [ebp + 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 [esp + 0x10]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
movzx ecx, al
shr eax, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
movzx ecx, byte [eax + str.cw]
mov eax, dword [esp + 0x2c]
xor edx, dword [esi + 0x18]
shr eax, 0x10
movzx eax, al
shl ecx, 8
mov dword [ebp + 8], edx
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
pop edi
or ecx, eax
xor ecx, dword [esi + 0x1c]
pop esi
mov dword [ebp + 0xc], ecx
pop ebp
pop ebx
add esp, 0x18
ret