Function at 0x41812c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, 0x4c9294
push ebx
push esi
push edi
call fcn.0049fef4
mov dl, 1
mov eax, dword [0x48919c]
call fcn.004035a8
mov dword [ebp - 0x34], eax
mov ecx, 4
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, 0x18
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
lea ecx, [edx + 0x1c]
mov dword [ebp - 0x40], ecx
jmp 0x4182f0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x40]
mov esi, dword [edx]
mov eax, dword [esi]
push eax
call fcn.0049fbf4
pop ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x3c]
inc eax
push eax
call fcn.0049f2bc
mov ebx, eax
mov eax, dword [ebp - 0x3c]
inc eax
pop ecx
push eax
push 0
push ebx
call fcn.0049fac0
add esp, 0xc
mov edx, dword [esi]
xor eax, eax
mov edi, edx
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [ebp - 0x3c]
push eax
push ebx
push esi
call fcn.004293a8
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 8]
push ebx
call fcn.0049f0f4
mov eax, dword [ebp - 0x38]
pop ecx
mov ecx, 4
lea edx, [esi + 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [esi + 0xc]
push eax
call fcn.0049fbf4
pop ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x3c]
inc eax
push eax
call fcn.0049f2bc
mov ebx, eax
mov eax, dword [ebp - 0x3c]
inc eax
pop ecx
push eax
push 0
push ebx
call fcn.0049fac0
add esp, 0xc
mov edx, dword [esi + 0xc]
xor eax, eax
mov edi, edx
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [ebp - 0x3c]
push eax
push ebx
push esi
call fcn.004293a8
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 8]
push ebx
call fcn.0049f0f4
pop ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x3c]
mov ecx, 4
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x3c]
inc eax
push eax
call fcn.0049f2bc
mov ebx, eax
mov eax, dword [ebp - 0x3c]
inc eax
pop ecx
push eax
push 0
push ebx
call fcn.0049fac0
add esp, 0xc
mov edx, dword [esi + 0x18]
push edx
mov ecx, dword [esi + 0x14]
push ecx
push ebx
call fcn.0049fa50
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 8]
push ebx
call fcn.0049f0f4
pop ecx
inc dword [ebp - 0x30]
add dword [ebp - 0x40], 4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp - 0x30]
jg 0x418174
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov esi, dword [ecx + 4]
call fcn.0048c04c
mov edx, eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, esi
cmp edx, dword [ebp - 0x30]
jle 0x418328
xor bl, byte [eax]
inc dword [ebp - 0x30]
inc eax
cmp edx, dword [ebp - 0x30]
jg 0x41831d
mov esi, dword [ebp - 0x34]
mov dword [ebp - 8], esi
test esi, esi
je 0x418350
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov word [ebp - 0x1c], 0x14
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1c], 8
mov eax, dword [ebp + 8]
movsx ecx, bl
movsx edx, byte [eax + 0x4c]
sub ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 0x2c]
cdq
xor eax, edx
sub eax, edx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret