Function at 0x4167b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebp, edx
mov edx, dword [ecx + 4]
push edi
mov dword [esp + 0x10], ebp
xor eax, dword [esi]
xor edx, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
xor eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, edx
shr eax, 8
xor ebx, dword [esi + 0xc]
movzx ecx, al
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x4b00d0]
xor edi, dword [eax*4 + 0x4aefd0]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*4 + 0x4b0cd0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor edi, dword [eax*4 + 0x4aebd0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
mov dword [ebp], edi
mov esi, dword [ecx*4 + 0x4aefd0]
xor esi, dword [eax*4 + 0x4b00d0]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor esi, dword [eax*4 + 0x4b0cd0]
movzx eax, dl
xor esi, dword [eax*4 + 0x4aebd0]
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov dword [ebp + 4], esi
mov ebp, dword [ecx*4 + 0x4aefd0]
xor ebp, dword [eax*4 + 0x4b00d0]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebp, dword [eax*4 + 0x4b0cd0]
mov eax, dword [esp + 0x18]
movzx eax, al
xor ebp, dword [eax*4 + 0x4aebd0]
mov eax, dword [esp + 0x10]
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx*4 + 0x4aefd0]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b00d0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4b0cd0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4aebd0]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [0x4b4304]
dec eax
cmp eax, 1
jle 0x416a27
mov ebx, dword [esp + 0x28]
add ebx, 0x18
dec eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebx - 8]
xor eax, edi
mov edx, dword [ebx - 4]
mov dword [esp + 0x18], eax
xor edx, esi
mov eax, dword [ebx]
xor eax, ebp
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], eax
xor ebx, ecx
mov eax, edx
mov ebp, dword [esp + 0x10]
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x4b00d0]
xor edi, dword [eax*4 + 0x4aefd0]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*4 + 0x4b0cd0]
mov eax, dword [esp + 0x18]
movzx eax, al
xor edi, dword [eax*4 + 0x4aebd0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov dword [ebp], edi
mov esi, dword [ecx*4 + 0x4aefd0]
xor esi, dword [eax*4 + 0x4b00d0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor esi, dword [eax*4 + 0x4b0cd0]
movzx eax, dl
xor esi, dword [eax*4 + 0x4aebd0]
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov dword [ebp + 4], esi
mov ebp, dword [ecx*4 + 0x4aefd0]
xor ebp, dword [eax*4 + 0x4b00d0]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebp, dword [eax*4 + 0x4b0cd0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ebp, dword [eax*4 + 0x4aebd0]
mov eax, dword [esp + 0x10]
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx*4 + 0x4aefd0]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b00d0]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4b0cd0]
movzx eax, bl
mov ebx, dword [esp + 0x1c]
add ebx, 0x10
mov dword [esp + 0x1c], ebx
xor ecx, dword [eax*4 + 0x4aebd0]
sub dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
jne 0x4168f8
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4b4304]
mov eax, dword [esp + 0x28]
shl ecx, 4
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx + eax - 0x10]
mov ebx, dword [ecx + eax - 0xc]
xor edx, edi
mov eax, dword [ecx + eax - 8]
xor ebx, esi
xor eax, ebp
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x28]
movzx eax, dl
mov ecx, dword [ecx + ebp - 4]
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi], al
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [esp + 0x20]
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 1], al
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 3], al
movzx eax, bl
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 4], al
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 7], al
mov eax, dword [esp + 0x18]
movzx eax, al
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 8], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 0xa], al
mov eax, ebx
shr eax, 0x18
shr ebx, 0x10
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 0xb], al
movzx eax, cl
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 0xc], al
movzx eax, dl
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 0xd], al
movzx eax, bl
movzx eax, byte [eax*4 + 0x4aebd1]
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x18]
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4aebd1]
mov edx, dword [esp + 0x1c]
mov byte [edi + 0xf], al
mov eax, dword [edx + ebp]
xor dword [edi], eax
mov eax, dword [edx + ebp + 4]
xor dword [edi + 4], eax
mov eax, dword [edx + ebp + 8]
xor dword [edi + 8], eax
mov eax, dword [edx + ebp + 0xc]
xor dword [edi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret