Function at 0x4107fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp]
mov dword [esp + 8], eax
mov ebx, dword [edx]
mov eax, dword [esp + 8]
xor ebx, dword [eax]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 8]
xor eax, dword [ecx + 4]
mov ecx, dword [edx + 8]
mov esi, dword [esp + 8]
xor ecx, dword [esi + 8]
mov edx, dword [edx + 0xc]
mov esi, dword [esp + 8]
xor edx, dword [esi + 0xc]
add dword [esp + 8], 0x10
mov esi, dword [esp]
movzx esi, word [esi + 0x112]
dec esi
test esi, esi
jle 0x410982
mov edi, ebx
and edi, 0xff
mov edi, dword [edi*4 + 0x42cab4]
mov ebp, eax
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42ceb4]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42d2b4]
mov ebp, edx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x42d6b4]
mov ebp, dword [esp + 8]
xor edi, dword [ebp]
mov dword [esp + 0xc], edi
mov edi, eax
and edi, 0xff
mov edi, dword [edi*4 + 0x42cab4]
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42ceb4]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42d2b4]
mov ebp, ebx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x42d6b4]
mov ebp, dword [esp + 8]
xor edi, dword [ebp + 4]
mov dword [esp + 0x10], edi
mov edi, ecx
and edi, 0xff
mov edi, dword [edi*4 + 0x42cab4]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42ceb4]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42d2b4]
mov ebp, eax
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x42d6b4]
mov ebp, dword [esp + 8]
xor edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
and edx, 0xff
mov edx, dword [edx*4 + 0x42cab4]
shr ebx, 8
and ebx, 0xff
xor edx, dword [ebx*4 + 0x42ceb4]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x42d2b4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x42d6b4]
mov eax, dword [esp + 8]
xor edx, dword [eax + 0xc]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add dword [esp + 8], 0x10
dec esi
jne 0x41084f
mov esi, ebx
and esi, 0xff
mov edi, dword [0x42e188]
movzx esi, byte [edi + esi]
mov edi, eax
shr edi, 8
and edi, 0xff
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 0x10
xor esi, edi
mov edi, edx
shr edi, 0x18
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 8]
xor esi, dword [edi]
mov edi, dword [esp + 4]
mov dword [edi], esi
mov esi, eax
and esi, 0xff
mov edi, dword [0x42e188]
movzx esi, byte [edi + esi]
mov edi, ecx
shr edi, 8
and edi, 0xff
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 8
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 0x18
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 8]
xor esi, dword [edi + 4]
mov edi, dword [esp + 4]
mov dword [edi + 4], esi
mov esi, ecx
and esi, 0xff
mov edi, dword [0x42e188]
movzx esi, byte [edi + esi]
mov edi, edx
shr edi, 8
and edi, 0xff
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 8
xor esi, edi
mov edi, ebx
shr edi, 0x10
and edi, 0xff
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 0x10
xor esi, edi
mov edi, eax
shr edi, 0x18
mov ebp, dword [0x42e188]
movzx edi, byte [ebp + edi]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 8]
xor esi, dword [edi + 8]
mov edi, dword [esp + 4]
mov dword [edi + 8], esi
and edx, 0xff
mov esi, dword [0x42e188]
movzx edx, byte [esi + edx]
shr ebx, 8
and ebx, 0xff
mov esi, dword [0x42e188]
movzx ebx, byte [esi + ebx]
shl ebx, 8
xor edx, ebx
shr eax, 0x10
and eax, 0xff
mov ebx, dword [0x42e188]
movzx eax, byte [ebx + eax]
shl eax, 0x10
xor edx, eax
shr ecx, 0x18
mov eax, dword [0x42e188]
movzx eax, byte [eax + ecx]
shl eax, 0x18
xor edx, eax
mov eax, dword [esp + 8]
xor edx, dword [eax + 0xc]
mov eax, dword [esp + 4]
mov dword [eax + 0xc], edx
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret