Function at 0x41a360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0xc], ebx
lea ecx, [eax + edi]
mov dword [ebp + 8], ecx
mov dword [esi], ecx
cmp ecx, 0x10
ja 0x41a3af
push edi
add eax, 0x28
push edx
add eax, ebx
push eax
call fcn.004202f0
add dword [ebx + 0x38], edi
add esp, 0xc
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, dword [ebp + 0xc]
jne 0x41a3c0
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x10
sub esi, eax
add eax, 0x28
push esi
push edx
add eax, ebx
push eax
call fcn.004202f0
mov edi, dword [ebp - 4]
lea ecx, [ebx + 0x3c]
mov eax, dword [ebp + 8]
add edi, esi
mov esi, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp + 8], eax
add esp, 0xc
mov eax, dword [ebx + 0x28]
mov edx, esi
mov dword [esi], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0xc], eax
call fcn.0041c2c0
mov eax, dword [ebx + 0x18]
xor dword [esi], eax
mov eax, dword [ebx + 0x1c]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x20]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x24]
xor dword [esi + 0xc], eax
cmp dword [ebp + 8], 0x10
ja 0x41a440
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x34]
jmp 0x41a501
mov eax, dword [edi]
lea edx, [esi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [ebx + 0x3c]
mov eax, dword [edi + 4]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x1c], eax
call fcn.0041c2c0
mov eax, dword [ebx + 0x28]
add edi, 0x10
xor dword [esi + 0x10], eax
mov eax, dword [ebx + 0x2c]
xor dword [esi + 0x14], eax
mov eax, dword [ebx + 0x30]
xor dword [esi + 0x18], eax
mov eax, dword [ebx + 0x34]
xor dword [esi + 0x1c], eax
add esi, 0x20
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp + 8], eax
cmp eax, 0x10
jbe 0x41a4ec
mov ebx, eax
lea eax, [ebx - 0x11]
shr eax, 4
inc eax
mov dword [ebp + 8], eax
nop word [eax + eax]
mov eax, dword [edi]
mov edx, esi
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
call fcn.0041c2c0
mov eax, dword [edi - 0x10]
sub ebx, 0x10
xor dword [esi], eax
mov eax, dword [edi - 0xc]
xor dword [esi + 4], eax
mov eax, dword [edi - 8]
xor dword [esi + 8], eax
mov eax, dword [edi - 4]
add edi, 0x10
xor dword [esi + 0xc], eax
add esi, 0x10
sub dword [ebp + 8], 1
jne 0x41a4a0
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [edi - 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi - 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi - 8]
mov dword [ebx + 0x20], eax
mov eax, dword [edi - 4]
mov esi, dword [ebp + 8]
push esi
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.004202f0
mov eax, dword [ebx + 0x38]
add esp, 0xc
and eax, 0xf0000000
add eax, esi
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x10]
pop edi
sub dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret