Function at 0x4c80cb
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [eax], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], esi
je 0x4c80fc
mov eax, 0xfffff445
jmp 0x4c8310
push eax
call fcn.004d04e5
dec eax
js 0x4c82fe
push edi
jmp 0x4c810e
xor esi, esi
lea ecx, [eax + 1]
cmp ecx, dword [ebp + 0x18]
jge 0x4c8119
mov dword [ebp + 0x18], ecx
cmp dword [ebp - 8], esi
je 0x4c812b
cmp dword [ebp - 8], 0xa
mov dword [ebp - 0x14], 1
jne 0x4c812e
mov dword [ebp - 0x14], esi
mov edi, eax
sub edi, dword [ebp + 0x18]
lea esi, [edi + 1]
cmp eax, esi
jl 0x4c8163
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
mov ebx, eax
sar ebx, 5
mov ebx, dword [edx + ebx*4]
mov ecx, eax
and ecx, 0x1f
shr ebx, cl
mov ecx, dword [ebp - 0x10]
and ebx, 1
xor ebx, dword [ebp - 0x14]
dec eax
cmp eax, esi
lea ebx, [ebx + ecx*2]
mov dword [ebp - 0x10], ebx
jge 0x4c8140
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 0xc]
mov eax, edi
mov edx, eax
sar edx, 5
mov edx, dword [esi + edx*4]
mov ecx, eax
and ecx, 0x1f
shr edx, cl
xor ecx, ecx
inc ecx
sub ecx, dword [ebp - 0x14]
and edx, 1
cmp edx, ecx
jne 0x4c8198
test eax, eax
jl 0x4c8198
xor ecx, ecx
inc ebx
inc ecx
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
jne 0x4c81ab
cmp dword [ebp - 0x14], 1
jne 0x4c8237
inc ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
cmp eax, edi
jl 0x4c8239
xor ecx, ecx
inc ecx
cmp edx, ecx
jne 0x4c81f2
cmp dword [ebp - 8], edi
je 0x4c81ce
cmp dword [ebp - 8], 0xa
mov dword [ebp - 8], 0xb
jne 0x4c81d1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
test eax, eax
jl 0x4c81db
inc dword [ebp - 0xc]
dec eax
mov edx, eax
sar edx, 5
mov edx, dword [esi + edx*4]
mov ecx, eax
and ecx, 0x1f
shr edx, cl
test dl, 1
jne 0x4c81d4
jmp 0x4c8228
cmp dword [ebp - 8], edi
je 0x4c8202
push 0xa
pop ecx
cmp dword [ebp - 8], ecx
mov dword [ebp - 8], ecx
jne 0x4c8205
mov dword [ebp - 8], edi
cmp edx, edi
mov dword [ebp - 0xc], edi
jne 0x4c8228
test eax, eax
jl 0x4c8213
inc dword [ebp - 0xc]
dec eax
mov edx, eax
sar edx, 5
mov edx, dword [esi + edx*4]
mov ecx, eax
and ecx, 0x1f
shr edx, cl
test dl, 1
je 0x4c820c
xor edi, edi
cmp eax, edi
jge 0x4c824c
mov dword [ebp - 0x1c], 1
jmp 0x4c824c
xor edi, edi
cmp dword [ebp - 8], edi
je 0x4c8249
push 0xa
pop ecx
cmp dword [ebp - 8], ecx
mov dword [ebp - 8], ecx
jne 0x4c824c
mov dword [ebp - 8], edi
mov ecx, dword [ebp + 0x18]
mov edx, ebx
shr edx, cl
cmp ebx, edi
je 0x4c826e
xor esi, esi
test bl, 1
jne 0x4c8269
shr ebx, 1
inc esi
test bl, 1
je 0x4c825e
mov dword [ebp - 0x10], ebx
add esi, dword [ebp - 0xc]
jmp 0x4c8271
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jle 0x4c8295
cmp ebx, edx
mov ecx, ebx
jle 0x4c8292
inc dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 4]
inc dword [ebp - 0x18]
sar ecx, 1
cmp ecx, edx
mov byte [ebx + edi], 0
jg 0x4c827c
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 8], 0xa
je 0x4c82af
cmp dword [ebp - 8], 0xb
je 0x4c82af
inc dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], bl
jmp 0x4c82c1
inc dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
not bl
inc bl
mov byte [edx + ecx], bl
mov edx, ecx
xor ebx, ebx
cmp esi, ebx
jle 0x4c82d9
add dword [ebp - 0x18], esi
mov ecx, esi
inc dword [ebp - 4]
dec ecx
mov esi, dword [ebp - 4]
mov byte [esi + edx], 0
jne 0x4c82cc
cmp dword [ebp - 0x1c], 1
jne 0x4c82ef
cmp dword [ebp - 0x14], 1
jne 0x4c82ef
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], 0xff
cmp eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jge 0x4c810c
pop edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor eax, eax
pop esi
pop ebx
leave
ret 0x14