Function at 0x4d4440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571833
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5f2100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xc0]
call fcn.0052de30
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call dword [0x5854fc]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call dword [0x585518]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call dword [0x5854d0]
lea ecx, [ebp - 0x1c]
test al, al
jne 0x4d467a
call dword [case.0x493226.0]
push eax
call dword [0x5835d8]
xor eax, eax
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0055057e
mov eax, dword [eax + 4]
cmp dword [eax + 0x218], 0
jne 0x4d46ab
call fcn.0055057e
mov ecx, dword [eax + 4]
lea ecx, [ecx + 0xfc]
call fcn.00553e50
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x18], eax
call fcn.005505a2
cmp eax, 1
jne 0x4d46dd
mov eax, dword [ebp + 0xc]
lea ecx, [eax + eax]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x2c]
call dword [0x58552c]
mov esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055053c
mov edi, eax
lea eax, [esi + esi + 2]
push eax
push 0
push edi
call fcn.00553048
add esp, 0x10
lea ecx, [ebp - 0x2c]
call dword [case.0x493226.0]
mov edx, edi
sub edx, eax
jmp 0x4d4560
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4d4560
xor edx, edx
xor eax, eax
test esi, esi
jle 0x4d4589
movzx ecx, word [ebp + edx*2 - 0x18]
lea esp, [esp]
xor word [edi + eax*2], cx
inc eax
cmp eax, esi
jl 0x4d4580
inc edx
cmp edx, 4
jl 0x4d4571
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov esi, edi
cmp eax, 4
jb 0x4d45b4
jmp 0x4d45a0
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x4d4607
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4d45a0
test eax, eax
je 0x4d45d8
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4d4607
cmp eax, 1
jbe 0x4d45d8
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4d4607
cmp eax, 2
jbe 0x4d45d8
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x4d4607
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d45e0
sub eax, edx
mov ecx, ebx
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4d45f4
sub ecx, esi
sar ecx, 1
cmp eax, ecx
je 0x4d466e
push edi
call fcn.00550536
add esp, 4
push 0x5988dc
lea ecx, [ebp - 0x2c]
call dword [0x5854e0]
test eax, eax
je 0x4d4677
lea ecx, [ebp - 0x28]
call dword [0x5854fc]
push 0xf956
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call dword [0x585434]
lea ecx, [ebp - 0x28]
push 0
push ecx
call fcn.004aa290
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call dword [0x585524]
lea ecx, [ebp - 0xc0]
call fcn.005505a2
cmp eax, 1
je 0x4d4514
jmp 0x4d46dd
push edi
call fcn.00550536
add esp, 4
lea ecx, [ebp - 0x1c]
call dword [0x585524]
lea ecx, [ebp - 0x20]
call dword [0x585524]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call dword [0x585524]
lea ecx, [ebp - 0xc0]
call fcn.0055055a
mov eax, 1
jmp 0x4d470c
lea ecx, [ebp - 0x24]
call dword [0x5854fc]
push 0xf955
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call dword [0x585434]
lea edx, [ebp - 0x24]
push 0
push edx
call fcn.004aa290
add esp, 8
lea ecx, [ebp - 0x24]
call dword [0x585524]
lea ecx, [ebp - 0x1c]
call dword [0x585524]
lea ecx, [ebp - 0x20]
call dword [0x585524]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call dword [0x585524]
lea ecx, [ebp - 0xc0]
call fcn.0055055a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553038
mov esp, ebp
pop ebp
ret