Function at 0x4d7a60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.00536770
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [ebx + 0x174]
mov dword [esp + 0x1c], eax
mov eax, ebp
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x4d7cec
jb 0x4d7a9c
cmp eax, 0xffffffe0
ja 0x4d7cec
cmp dword [ebx + 0x16c], 0
lea edx, [ebx + 0x40]
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x60]
mov dword [ebx + 0x3c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
je 0x4d7ad2
push eax
push edx
call fcn.004d8520
add esp, 8
mov dword [ebx + 0x16c], 0
lea edx, [ebx + 0x40]
jmp 0x4d7ada
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
movzx ecx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xf]
push esi
mov esi, dword [esp + 0x30]
shl ecx, 8
push edi
mov edi, dword [ebx + 0x168]
or ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], esi
test edi, edi
je 0x4d7b6f
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
test ebp, ebp
je 0x4d7b50
mov cl, byte [edi + ebx + 0x10]
lea eax, [ebx + 0x40]
xor cl, byte [esi]
dec ebp
mov byte [edx], cl
inc esi
xor byte [eax + edi], cl
inc edx
inc edi
mov dword [esp + 0x1c], eax
and edi, 0xf
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], edi
jne 0x4d7b21
mov edx, eax
jmp 0x4d7b5c
mov edx, dword [esp + 0x1c]
test edi, edi
jne 0x4d7cdc
lea eax, [ebx + 0x60]
push eax
push edx
call fcn.004d8520
mov ecx, dword [esp + 0x44]
add esp, 8
jmp 0x4d7b77
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
cmp ebp, 0xc00
jb 0x4d7c0d
mov edi, dword [esp + 0x18]
mov eax, 0xaaaaaaab
mul ebp
shr edx, 0xb
mov dword [esp + 0x1c], edx
push ebx
push dword [esp + 0x28]
push 0xc0
push ecx
push esi
call dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
add ecx, 0xc0
mov eax, ecx
mov dword [esp + 0x28], ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
push 0xc00
push dword [esp + 0x54]
shr eax, 0x10
push dword [esp + 0x3c]
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
push edi
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], cl
call fcn.004d82f0
mov ecx, dword [esp + 0x60]
add esp, 0x24
add ecx, 0xc00
add esi, 0xc00
sub ebp, 0xc00
mov dword [esp + 0x3c], ecx
sub dword [esp + 0x1c], 1
jne 0x4d7b95
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov eax, ebp
and eax, 0xfffffff0
mov dword [esp + 0x28], eax
je 0x4d7c7a
push ebx
push dword [esp + 0x28]
mov esi, eax
shr esi, 4
push esi
push ecx
push dword [esp + 0x20]
call dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
add ecx, esi
mov esi, dword [esp + 0x24]
mov eax, ecx
mov dword [esp + 0x28], ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
mov eax, dword [esp + 0x3c]
add esi, eax
push eax
push dword [esp + 0x54]
mov byte [ebx + 0xf], cl
sub ebp, eax
push dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.004d82f0
mov eax, dword [esp + 0x4c]
add esp, 0x24
add dword [esp + 0x3c], eax
test ebp, ebp
je 0x4d7cdc
push dword [esp + 0x24]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
mov eax, dword [esp + 0x3c]
sub esi, eax
mov ebx, dword [esp + 0x18]
lea edx, [edi + eax]
nop
mov cl, byte [ebx + edi - 0x30]
lea eax, [ebx + edi]
xor cl, byte [esi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], cl
inc edi
xor byte [eax], cl
sub ebp, 1
jne 0x4d7cc0
mov ebx, dword [esp + 0x30]
mov dword [ebx + 0x168], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret