Function at 0x4d51c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x6521c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x64], ebx
mov ecx, dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edi + 0x10c]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], eax
call fcn.004d7930
test eax, eax
jne 0x4d522e
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffb
cmp eax, 0x1f
ja case.0x4d5217.6
movzx eax, byte [eax + 0x4d5554]
jmp dword [eax*4 + 0x4d5540]
cmp dword [edi + 0x40], 0
mov dword [edi + 0x3c], esi
je 0x4d524d
mov dword [edi + 0x40], 0
mov byte [ebx], 1
mov dword [ebx + 4], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056857d
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [edi + 0x48], 0
jne 0x4d522e
test esi, esi
jne 0x4d527f
mov eax, dword [edi + 0xe8]
cmp dword [eax + 4], 1
jne 0x4d527f
mov ecx, dword [edi + 0x74]
push 1
call fcn.004cf490
push dword [edi + 0x10]
call dword [0x5d23cc]
mov dword [edi + 0x24], 1
jmp 0x4d522e
mov eax, dword [edi + 0xe8]
cmp dword [eax + 4], 1
jne 0x4d522e
cmp dword [edi + 0x24], 1
jne 0x4d522e
push 1
push dword [edi + 0x10]
call dword [0x5d2368]
mov ecx, dword [edi + 0x74]
call fcn.004cee50
test eax, eax
jne 0x4d52bf
mov ecx, dword [edi + 0x74]
push 1
call fcn.004cf490
mov eax, dword [edi + 0xe8]
mov dword [eax + 4], 0
mov dword [edi + 0x24], 0
jmp 0x4d522e
push dword [edi + 0x10]
call dword [0x5d23c8]
test eax, eax
je 0x4d522e
push dword [edi + 0x10]
call dword [0x5d23c4]
test eax, eax
jne 0x4d522e
mov eax, dword [edi + 0xe8]
cmp dword [eax + 4], 0
jne 0x4d522e
mov eax, dword [edi + 0x30]
xorps xmm0, xmm0
mov esi, dword [edi + 0x34]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x10]
movups xmmword [ebp - 0x50], xmm0
call dword [0x5d2424]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jne 0x4d5333
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
cmp eax, esi
je 0x4d522e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x2c
push eax
push dword [edi + 0x10]
call dword [0x5d23e0]
push dword [edi + 0x20]
mov eax, dword [ebp - 0x54]
movups xmm0, xmmword [ebp - 0x24]
push 0
push dword [edi + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], esi
call dword [0x5d23dc]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
movups xmm1, xmmword [ebp - 0x78]
push 4
push eax
mov eax, dword [ebp - 0xc]
movaps xmm0, xmm1
sub eax, dword [ebp - 0x14]
push eax
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push dword [edi + 0x10]
call dword [0x5d236c]
jmp 0x4d522e
mov eax, dword [edi + 0xe8]
cmp dword [eax + 4], 0
jne 0x4d522e
push dword [edi + 0x20]
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
push 0
push dword [edi + 0x1c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ecx
call dword [0x5d23dc]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
jmp 0x4d522e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
cmp eax, 1
mov eax, dword [0x6588b0]
jne 0x4d5527
mov esi, dword [eax + 0x54]
mov dword [ebp - 0x54], esi
cmp dword [esi + 4], 0
je 0x4d550a
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
push ecx
push dword [eax + 0x10]
movups xmmword [ebp - 0x50], xmm0
call dword [0x5d2420]
mov eax, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [eax + 0x14]
mov ecx, eax
cmp esi, eax
je 0x4d5496
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
add eax, ecx
push dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x28]
push dword [ebp - 0x50]
add eax, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edx
call dword [0x5d2410]
test eax, eax
jne 0x4d54f6
mov edx, dword [ebp - 0x54]
add esi, 0x34
inc dword [ebp - 0x58]
mov eax, dword [edx + 0x14]
mov ecx, eax
cmp esi, eax
jne 0x4d5451
mov esi, dword [edx + 0x10]
or edx, 0xffffffff
mov dword [ebp - 0x5c], 0x7fffffff
mov dword [ebp - 0x54], 0
cmp esi, eax
je 0x4d54f9
lea edi, [esi + 0x20]
mov ebx, edx
mov eax, dword [ebp - 0x50]
lea edi, [edi + 0x34]
sub eax, dword [edi - 0x38]
cdq
mov esi, eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [edi - 0x34]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
lea edx, [esi + eax]
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x54]
cmp edx, esi
cmovge eax, ebx
inc dword [ebp - 0x54]
cmp edx, esi
mov ebx, eax
lea eax, [edi - 0x20]
cmovge edx, esi
mov dword [ebp - 0x5c], edx
cmp eax, ecx
jne 0x4d54b0
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x58]
cmp edx, 0xffffffff
je 0x4d550a
mov eax, dword [edi + 0xe8]
mov dword [eax + 0x388], edx
mov ecx, edi
call fcn.004d65e0
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x68]
mov dword [eax], 0
jmp 0x4d522e
mov ecx, dword [eax + 0x104]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x4d522e
mov byte [ebx], 0
jmp 0x4d5238