Function at 0x4dae30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c914f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
jmp 0x4dae62
xor esi, esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0040deb0
add esp, 8
mov edi, eax
push 0x67c1b0
mov ecx, 0x691178
mov dword [ebp - 4], esi
call fcn.00408b40
lea ecx, [eax + 0x44]
mov dword [ebp - 0x20], ecx
cmp dword [ecx + 0x10], esi
jne 0x4dae95
xor eax, eax
jmp 0x4daef1
mov edx, dword [edi + 0x14]
cmp edx, 0x10
jb 0x4daea1
mov eax, dword [edi]
jmp 0x4daea3
mov eax, edi
mov esi, dword [edi + 0x10]
add esi, eax
cmp edx, 0x10
jb 0x4daeb4
mov edx, dword [edi]
mov dword [ebp - 0x1c], edx
jmp 0x4daeb9
mov edx, edi
mov dword [ebp - 0x1c], edi
xor eax, eax
cmp dword [ebp - 0x1c], esi
je 0x4daee0
mov ecx, eax
mov ebx, eax
shl ecx, 6
shr ebx, 2
add ecx, ebx
movsx ebx, byte [edx]
lea ecx, [ecx + ebx - 0x61c88647]
inc edx
xor eax, ecx
cmp edx, esi
jne 0x4daec0
mov ecx, dword [ebp - 0x20]
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx]
push edi
lea eax, [eax + edx*4]
push eax
call fcn.004099c0
test eax, eax
setne bl
or edi, 0xffffffff
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 4], edi
jb 0x4daf0e
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0052d217
add esp, 4
test bl, bl
je 0x4daf84
mov edx, dword [0x68b4dc]
add dword [ebp - 0x18], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0040deb0
add esp, 8
mov esi, eax
push 0x67c1b0
mov ecx, 0x691178
mov dword [ebp - 4], 1
call fcn.00408b40
push esi
lea ecx, [eax + 0x44]
call fcn.004086f0
mov ecx, dword [eax + 0x2c]
mov eax, dword [0x68b8b8]
imul eax, ecx
shr eax, 1
add eax, 0x14
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
jl 0x4daf6a
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x48], 0x10
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edi
jb 0x4daf84
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0052d217
add esp, 4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x10
jl 0x4dae60
mov eax, dword [0x68b4d8]
cmp dword [ebp - 0x10], eax
jge 0x4dafa1
mov dword [ebp - 0x10], eax
mov eax, dword [0x68a6f4]
sub eax, dword [ebp - 0x10]
mov ecx, dword [0x68d3c0]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x4dafc4
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
jmp 0x4dafcf
mov eax, dword [0x68a6f8]
sub eax, dword [0x68b198]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
nop
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040deb0
add esp, 8
push 0x67c1b0
mov ecx, 0x691178
mov dword [ebp - 4], 2
call fcn.00408b40
cmp dword [eax + 0x54], 0
lea ecx, [eax + 0x44]
je 0x4db128
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
mov esi, edx
cmp eax, 0x10
jae 0x4db023
lea esi, [ebp - 0x40]
add esi, dword [ebp - 0x30]
cmp eax, 0x10
jae 0x4db02e
lea edx, [ebp - 0x40]
xor eax, eax
cmp edx, esi
je 0x4db054
mov edi, eax
mov ebx, eax
shl edi, 6
shr ebx, 2
add edi, ebx
movsx ebx, byte [edx]
lea edi, [edi + ebx - 0x61c88647]
inc edx
xor eax, edi
cmp edx, esi
jne 0x4db034
mov ebx, dword [ebp - 0x14]
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx]
lea eax, [eax + edx*4]
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.004099c0
test eax, eax
je 0x4db128
push 0x3b8
call fcn.0052d4ce
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x4db0fd
test byte [0x689708], 1
jne 0x4db0b9
or dword [0x689708], 1
mov ecx, 0x6896c0
mov byte [ebp - 4], 4
call fcn.00466b50
push 0x5f1950
call fcn.0052e444
add esp, 4
mov byte [ebp - 4], 3
push 0x67c1b0
mov ecx, 0x691178
call fcn.00408b40
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [eax + 0x44]
call fcn.004086f0
push ebx
mov ecx, 0x6896c0
lea esi, [eax + 0x1c]
call fcn.0046d460
mov ecx, dword [ebp - 0x18]
movzx edx, al
mov eax, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x20]
push eax
push ecx
push edx
push esi
push ebx
mov ecx, edi
call fcn.004d9890
jmp 0x4db0ff
xor eax, eax
mov esi, dword [ebp - 0x24]
mov ecx, dword [0x68a3ec]
push eax
push esi
mov byte [ebp - 4], 2
call fcn.004cefa0
push eax
lea ecx, [esi + ebx*8 + 0x1a4]
call fcn.00480390
mov eax, dword [0x68b4dc]
add dword [ebp - 0x18], eax
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4db141
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0052d217
add esp, 4
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, 0x10
jl 0x4dafe0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret