Function at 0x4d4500
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 1
call fcn.0047b650
push 0xffffffffffffffff
push 2
mov ebp, eax
call fcn.0047b650
mov esi, eax
push ebp
mov dword [esp + 0x24], esi
call fcn.00473ac0
push esi
mov ebx, eax
call fcn.00473ac0
add esp, 0x18
mov edi, eax
test ebp, ebp
je 0x4d483c
test esi, esi
je 0x4d483c
mov ecx, dword [ebp]
mov eax, ecx
and eax, 0x1a
je 0x4d45d7
test byte [esi], 0x1a
jne 0x4d455a
cmp edi, 1
jne 0x4d45d7
push ebp
call fcn.00473d00
add esp, 4
mov dword [esp + 0x10], edx
mov ebx, eax
cmp edi, 1
jne 0x4d457a
push ebp
call fcn.00473ae0
movzx eax, byte [eax]
cdq
jmp 0x4d4580
push esi
call fcn.00473d00
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4d45bf
sub eax, 1
mov eax, dword [esp + 0x10]
je 0x4d45ab
xor eax, edx
xor ebx, ecx
push eax
push ebx
call fcn.0047c610
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
or eax, edx
or ebx, ecx
push eax
push ebx
call fcn.0047c610
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
and ebx, ecx
and eax, edx
push eax
push ebx
call fcn.0047c610
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ecx, 0x400
je 0x4d478b
mov ecx, dword [esi]
test ecx, 0x400
je 0x4d46d1
mov eax, edi
or eax, ebx
push ebp
je 0x4d46c3
call fcn.00473ae0
push dword [esp + 0x14]
mov esi, eax
call fcn.00473ae0
add esp, 8
lea ecx, [ebx + 1]
mov ebp, eax
push ecx
push esi
push ecx
call fcn.0048bf00
add esp, 4
push eax
call fcn.0050a630
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4d4693
sub eax, 1
je 0x4d4663
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x4d46b3
mov al, byte [ecx + ebp]
inc ecx
xor byte [edx + esi], al
xor eax, eax
cmp ecx, edi
cmove ecx, eax
inc edx
cmp edx, ebx
jb 0x4d4640
push ebx
push esi
call fcn.0047c330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x4d46b3
nop dword [eax + eax]
mov al, byte [ecx + ebp]
inc ecx
or byte [edx + esi], al
xor eax, eax
cmp ecx, edi
cmove ecx, eax
inc edx
cmp edx, ebx
jb 0x4d4670
push ebx
push esi
call fcn.0047c330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x4d46b3
nop dword [eax + eax]
mov al, byte [ecx + ebp]
inc ecx
and byte [edx + esi], al
xor eax, eax
cmp ecx, edi
cmove ecx, eax
inc edx
cmp edx, ebx
jb 0x4d46a0
push ebx
push esi
call fcn.0047c330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00475720
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test cl, 0x1a
jne 0x4d46df
cmp edi, 1
jne 0x4d478b
push ebp
test ebx, ebx
je 0x4d46c3
call fcn.00473ae0
add esp, 4
lea ecx, [ebx + 1]
push ecx
push eax
push ecx
call fcn.0048bf00
add esp, 4
push eax
call fcn.0050a630
add esp, 0xc
mov esi, eax
push dword [esp + 0x10]
cmp edi, 1
jne 0x4d4717
call fcn.00473ae0
mov dl, byte [eax]
jmp 0x4d471e
call fcn.00473cd0
mov dl, al
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, ebx
sub eax, 0
je 0x4d4770
sub eax, 1
je 0x4d4750
dec ecx
xor byte [esi + ecx], dl
lea eax, [esi + ecx]
test ecx, ecx
jne 0x4d4731
push ebx
push esi
call fcn.0047c330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
dec ecx
or byte [esi + ecx], dl
lea eax, [esi + ecx]
test ecx, ecx
jne 0x4d4750
push ebx
push esi
call fcn.0047c330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
dec ecx
and byte [esi + ecx], dl
lea eax, [esi + ecx]
test ecx, ecx
jne 0x4d4770
push ebx
push esi
call fcn.0047c330
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test eax, eax
jne 0x4d4798
cmp ebx, 1
jne 0x4d483c
test dword [esi], 0x400
je 0x4d483c
push esi
call fcn.00473ae0
add esp, 4
mov esi, eax
push ebp
cmp ebx, 1
jne 0x4d47bf
call fcn.00473ae0
movsx ecx, byte [eax]
jmp 0x4d47c6
call fcn.00473cd0
mov ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 4
sub eax, 0
je 0x4d481c
sub eax, 1
je 0x4d47fc
test edi, edi
je 0x4d482c
nop dword [eax + eax]
movzx eax, byte [esi + edi - 1]
dec edi
xor ecx, eax
test edi, edi
jne 0x4d47e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp fcn.0047c560
test edi, edi
je 0x4d482c
movzx eax, byte [esi + edi - 1]
dec edi
or ecx, eax
test edi, edi
jne 0x4d4800
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp fcn.0047c560
test edi, edi
je 0x4d482c
movzx eax, byte [esi + edi - 1]
dec edi
and ecx, eax
test edi, edi
jne 0x4d4820
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp fcn.0047c560
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4d484b
mov eax, 0x74fde4
jmp 0x4d485b
cmp ecx, 1
mov eax, 0x765df8
mov edx, 0x765dfc
cmovne eax, edx
push esi
push ebp
push 2
push eax
push 0
push 0x440
push 1
call fcn.0044a900
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret