Function at 0x4d4b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x4d4b8a
push 0xffffffffffffff9a
pop eax
jmp 0x4d4d11
push esi
mov esi, dword [eax + 0x9c]
cmp esi, ebx
jne 0x4d4b99
push 0xffffffffffffff9a
jmp 0x4d4b9f
cmp dword [esi], ebx
jne 0x4d4ba5
push 0xffffffffffffff9c
pop eax
jmp 0x4d4d10
cmp ecx, ebx
jne 0x4d4bb0
xor eax, eax
jmp 0x4d4d10
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x14], ecx
cmp ecx, eax
jbe 0x4d4bcb
cmp dword [esi + 0x8c], ebx
jne 0x4d4bcb
mov dword [esi + 0x14], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x58]
add eax, edx
cmp ecx, eax
jbe 0x4d4be2
cmp dword [esi + 0x8c], ebx
je 0x4d4be2
mov dword [esi + 0x14], eax
push edi
cmp dword [esi + 0x14], ebx
ja 0x4d4bf2
mov eax, dword [ebp - 4]
jmp 0x4d4d0f
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x4d4cb1
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x4d4cb1
mov edi, 0x4000
mov dword [ebp + 0xc], edi
cmp eax, edi
jae 0x4d4c17
mov dword [ebp + 0xc], eax
mov edi, eax
mov eax, dword [esi + 0x88]
add eax, dword [esi + 0x3c]
push ebx
push eax
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x70]
add esp, 0x10
test eax, eax
jne 0x4d4d7d
push edi
push dword [esi]
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x64]
add esp, 0x10
cmp eax, edi
jne 0x4d4d7d
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], ebx
je 0x4d4ca3
test edi, edi
jbe 0x4d4ca1
mov eax, dword [esi]
mov edx, dword [ebp + 8]
lea edi, [eax + ebx]
add edx, 0xa4
mov eax, edx
call fcn.004d3edc
xor byte [edi], al
mov eax, dword [esi]
movsx eax, byte [eax + ebx]
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xb0]
mov ecx, edx
call fcn.004d3205
mov ecx, dword [esi]
add esp, 4
mov byte [ebx + ecx], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x4d4c62
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x84], ebx
je 0x4d4d16
cmp dword [esi + 0x8c], ebx
jne 0x4d4d16
mov eax, dword [esi + 0x18]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
lea eax, [esi + 4]
push eax
call fcn.004d6773
mov ebx, eax
test ebx, ebx
jl 0x4d4ce5
cmp dword [esi + 0x1c], 0
je 0x4d4ce5
push 0xfffffffffffffffd
pop ebx
mov edi, dword [esi + 0x18]
sub edi, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
push edi
push dword [esi + 0x50]
call fcn.004d4dfc
sub dword [esi + 0x5c], edi
add dword [ebp - 4], edi
mov dword [esi + 0x50], eax
cmp ebx, 1
je 0x4d4be8
test ebx, ebx
je 0x4d4d6e
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x4d4d26
cmp dword [esi + 0x58], ebx
je 0x4d4be8
mov edi, dword [esi + 0x14]
cmp edi, eax
jb 0x4d4d2f
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x4d4d46
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x4d4d35
mov ebx, dword [esi + 0x10]
push edi
push dword [esi + 0x50]
mov edx, ebx
call fcn.004d4dfc
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add ebx, edi
add dword [ebp - 4], edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0
ja 0x4d4bf0
jmp 0x4d4be8
or eax, 0xffffffff
jmp 0x4d4d0f