Function at 0x4c03b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
mov eax, 0x56d7d0
push ebx
push esi
push edi
call fcn.00535f7c
mov word [ebp - 0x24], 8
push 0x14
push 0x30
mov edx, dword [ebp + 0xc]
push edx
call fcn.00535b48
add esp, 0xc
lea ecx, [ebp - 0x50]
push 0x14
push 0
push ecx
call fcn.00535b48
add esp, 0xc
lea eax, [ebp - 0x64]
push 0x14
push 0
push eax
call fcn.00535b48
add esp, 0xc
mov dl, 1
mov eax, dword [0x51ef78]
call fcn.00406edc
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004067f4
add esp, 8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x4c0467
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004067f4
add esp, 8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x4c0467
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4c0640
mov word [ebp - 0x24], 0x14
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 4], 0
je 0x4c048d
mov eax, dword [ebp - 4]
jmp 0x4c0492
mov eax, 0x5686ec
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 4]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x18]
call fcn.00543cd4
mov word [ebp - 0x24], 0x20
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
inc dword [ebp - 0x18]
mov edx, 1
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 8], 0
je 0x4c04ed
mov eax, dword [ebp - 8]
jmp 0x4c04f2
mov eax, 0x5686ed
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 8]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x18]
call fcn.00543cd4
lea ecx, [ebp - 0x50]
push ecx
call fcn.00535c7c
pop ecx
mov edx, eax
cmp edx, 0x14
jle 0x4c053a
mov edx, 0x14
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x50]
cmp edx, eax
jle 0x4c0553
mov bl, byte [ecx]
mov byte [esi], bl
inc eax
inc esi
inc ecx
cmp edx, eax
jg 0x4c0548
lea eax, [ebp - 0x64]
push eax
call fcn.00535c7c
pop ecx
mov edx, eax
cmp edx, 0x14
jle 0x4c0569
mov edx, 0x14
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x64]
cmp edx, eax
jle 0x4c0582
mov bl, byte [ecx]
xor byte [esi], bl
inc eax
inc esi
inc ecx
cmp edx, eax
jg 0x4c0577
cmp dword [ebp - 0x3c], 0
jne 0x4c05a6
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], 0x17
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x11], 0x16
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x12], 0x15
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x13], 0x14
jmp 0x4c05c8
cmp dword [ebp - 0x3c], 1
jne 0x4c05c8
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x10], 0x16
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x11], 0x17
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x12], 0x14
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x13], 0x15
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4c05f0
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x24], 0x38
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x24], 0x2c
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x14], 0
push 0x14
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00406f30
mov word [ebp - 0x24], 0
add esp, 0xc
jmp 0x4c0631
mov eax, 1
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret