Function at 0x4c1341
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [edx + 0x60]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov ebx, dword [edi + 0xc8]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], edi
lea eax, [ebx + 0x10]
cmp ecx, eax
je 0x4c1398
or eax, 0xffffffff
jmp 0x4c1692
lea eax, [ebp - 0xa4]
neg eax
lea ecx, [ebp - 0xa4]
and eax, 0xf
lea edx, [edi + 0xd0]
add eax, ecx
mov dword [ebp - 0xc4], edx
push esi
lea edx, [edi + 0xa8]
mov dword [ebp - 0xa8], eax
push 0x40
lea ecx, [eax + 0x30]
mov dword [ebp - 0xc0], edx
pop edx
mov dword [ebp - 0xb4], ecx
lea esi, [eax + 0x40]
lea ecx, [edi + 0x20]
mov dword [ebp - 0xc8], edx
and dword [ecx], 0
push ecx
push edi
cmp ebx, edx
ja 0x4c1516
add edx, 0x40
push edx
push 0x5db720
push eax
mov dword [ebp - 0xc8], edx
call fcn.004de1fa
push dword [ebp - 0xa8]
lea eax, [edi + 0xd0]
push eax
call fcn.004aee51
and dword [edi + 0x70], 0
lea esi, [edi + 0x94]
mov edi, dword [ebp - 0xb4]
add esp, 0x1c
mov eax, dword [ebp - 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [eax + 4], 0
xor edi, edi
mov dword [eax], 0xd
mov eax, dword [ebp - 0xcc]
and dword [eax + 0xb4], 0
mov dword [eax + 0xb0], ebx
mov eax, dword [ebp - 0xb8]
cmp dword [eax + 8], edi
je 0x4c1492
test ebx, ebx
je 0x4c14ea
mov ecx, dword [ebp - 0xa8]
mov edi, ebx
mov edx, dword [ebp - 0xac]
add ecx, 0x40
mov esi, dword [ebp - 0xb0]
sub edx, ecx
sub esi, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
mov al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
sub ebx, 1
jne 0x4c1480
jmp 0x4c14ea
test ebx, ebx
je 0x4c14ea
mov ecx, dword [ebp - 0xac]
sub ecx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0xd4], ecx
add esi, 0x40
mov ecx, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xd4]
sub ecx, esi
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xbc], ebx
mov al, byte [esi]
add ecx, esi
mov dl, byte [ecx + edi]
xor al, dl
mov byte [esi], dl
inc esi
mov byte [ecx], al
mov ecx, dword [ebp - 0xd8]
sub ebx, 1
jne 0x4c14cb
mov edi, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xa8]
mov esi, edi
neg esi
and esi, 0xf
push esi
lea eax, [ebx + 0x40]
add eax, edi
push 0
push eax
call fcn.0055f7f0
lea eax, [esi + edi]
add esp, 0xc
lea ecx, [eax + 0x20]
lea edx, [eax + ebx]
jmp 0x4c15fc
push edx
push 0x5db720
push eax
call fcn.004de1fa
push dword [ebp - 0xa8]
lea eax, [edi + 0xd0]
push eax
call fcn.004aee51
push 0x10
lea eax, [edi + 0x94]
mov dword [edi + 0x20], 1
and dword [edi + 0x70], 0
push eax
lea eax, [edi + 0xd0]
push eax
call fcn.004aeef5
lea eax, [edi + 0xa8]
mov dword [edi + 0xb0], ebx
xor ecx, ecx
mov dword [eax], 0xd
mov dword [eax + 4], ecx
add esp, 0x28
mov eax, dword [ebp - 0xb8]
mov dword [edi + 0xb4], ecx
mov dword [ebp - 0xb4], esi
cmp dword [eax + 8], ecx
je 0x4c15ad
mov esi, dword [ebp - 0xb0]
lea eax, [edi + 0x20]
push eax
push edi
push ebx
push dword [ebp - 0xac]
push esi
call fcn.004de1fa
push ebx
lea eax, [edi + 0xd0]
push esi
push eax
call fcn.004aeef5
jmp 0x4c15d3
mov esi, dword [ebp - 0xac]
lea eax, [edi + 0xd0]
push ebx
push esi
push eax
call fcn.004aeef5
lea eax, [edi + 0x20]
push eax
push edi
push ebx
push esi
push dword [ebp - 0xb0]
call fcn.004de1fa
add esp, 0x20
mov eax, ebx
neg eax
and eax, 0xf
push eax
push 0x5db720
push dword [ebp - 0xc4]
call fcn.004aeef5
mov edx, dword [ebp - 0xa8]
add esp, 0xc
mov edi, ebx
push 0x10
pop ecx
mov ebx, dword [ebp - 0xac]
mov esi, dword [ebp - 0xc0]
add ebx, edi
mov dword [ebp - 0xbc], ebx
mov ebx, dword [ebp - 0xb0]
add ebx, edi
lea edi, [edx + 0x40]
movsd dword es:[edi], dword [esi]
push ecx
push dword [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc4]
push esi
call fcn.004aeef5
push dword [ebp - 0xc8]
push dword [ebp - 0xa8]
call fcn.0045d09e
mov edx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xb4]
cmp dword [edx + 8], 0
lea ecx, [edi + 0x84]
cmovne eax, ecx
push eax
push esi
call fcn.004aede4
mov eax, dword [ebp - 0xb8]
add esp, 0x1c
or dword [edi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x4c16a0
lea esi, [edi + 0x84]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xd0]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret
push 0x10
push dword [ebp - 0xbc]
push dword [ebp - 0xb4]
call fcn.004888dd
add esp, 0xc
test eax, eax
je 0x4c168b
mov ecx, dword [ebp - 0xd0]
sub ebx, ecx
add ebx, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push ebx
call fcn.0055f7f0
add esp, 0xc
or eax, 0xffffffff
jmp 0x4c1691