Function at 0x4e5130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63706d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00409430
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x18]
test al, 1
je 0x4e5185
lea esi, [edi + 2]
jmp 0x4e5309
xor ebx, ebx
test al, 2
jne 0x4e51c3
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, ebx
xor eax, ecx
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x4e51c0
nop dword [eax + eax]
cmp dword [eax + 4], ecx
jne 0x4e51ba
cmp dword [eax + 8], ebx
je 0x4e51ea
mov eax, dword [eax]
test eax, eax
jne 0x4e51b0
mov ebx, dword [ebp - 0x14]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x4e52bc
mov ebx, 2
lea ecx, [eax + eax]
cmp eax, ebx
cmovb ecx, ebx
cmp ecx, edx
jae 0x4e51f4
lea esi, [ebx + 1]
jmp 0x4e5309
mov esi, 1
jmp 0x4e5309
push dword [esi + 0x18]
mov eax, dword [esi]
push esi
push ecx
mov ecx, esi
call dword [eax + 8]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4e52d6
mov cl, byte [edi + 0x18]
not cl
test cl, 1
je 0x4e52d6
cmp dword [esi + 0x14], 0
je 0x4e5298
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x18], 0
jbe 0x4e5298
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 0x14]
mov ebx, dword [ecx + eax]
test ebx, ebx
je 0x4e5273
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebx]
xor edx, edx
dec dword [esi + 0xc]
mov eax, dword [ebx + 8]
xor eax, dword [ebx + 4]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebx], eax
mov dword [ecx], ebx
mov ebx, edi
mov ecx, dword [ebp - 0x14]
inc dword [ecx + 0xc]
test edi, edi
jne 0x4e5245
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x14]
add ecx, 4
mov dword [ebp - 0x1c], ecx
mov dword [edx + eax], 0
add edx, 4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x10]
jb 0x4e5238
mov edi, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ebx, [eax + edx*4]
push ecx
lea ecx, [esi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.004e6ee0
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4e52dd
lea esi, [eax + 2]
jmp 0x4e5309
mov edi, dword [ebp - 0x10]
mov esi, ebx
jmp 0x4e5309
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], ecx
mov al, byte [eax]
mov byte [edi + 0xc], al
xor edi, edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
inc dword [esi + 0xc]
xor esi, esi
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4e531b
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.004e6dd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc