Function at 0x4c638c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
mov eax, dword [esi + 8]
mov ebx, eax
test eax, eax
jge 0x4c63aa
neg ebx
mov dword [ebp - 4], ebx
jmp 0x4c63ad
mov dword [ebp - 4], eax
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c63e1
push ebx
call fcn.004c10cc
mov esi, eax
add esp, 4
test esi, esi
je 0x4c6420
mov edx, dword [ebp + 8]
add edx, 0xc
lea eax, [esi + 0xc]
mov ecx, ebx
call fcn.004c633c
mov dword [ebp + 8], esi
jmp 0x4c63e3
inc dword [esi]
mov eax, dword [edi + 8]
mov esi, eax
test eax, eax
jge 0x4c63ee
neg esi
xor ebx, ebx
test eax, eax
setl bl
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4c643b
push esi
call fcn.004c10cc
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c6429
mov eax, dword [ebp + 8]
add dword [eax], 0xffffffff
jne 0x4c6420
mov edx, dword [eax + 4]
push eax
mov eax, dword [edx + 0x18]
call eax
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0xc]
add eax, 0xc
mov ecx, esi
call fcn.004c633c
mov edi, dword [ebp - 8]
jmp 0x4c643d
inc dword [edi]
mov ecx, dword [ebp - 4]
cmp ecx, esi
jge 0x4c6462
mov eax, dword [ebp + 8]
mov dword [ebp + 8], edi
mov edi, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov esi, eax
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov ebx, ecx
mov ecx, dword [ebp - 4]
jmp 0x4c6465
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
cmp edx, 0x26
je 0x4c64ae
cmp edx, 0x5e
je 0x4c64a4
cmp edx, 0x7c
je 0x4c6494
mov ecx, dword [0x1e23ac1c]
push 0x1e208a04
push ecx
call fcn.0052338c
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
or edx, eax
mov dword [ebp - 0xc], edx
test ebx, ebx
jne 0x4c64bc
mov dword [ebp - 4], ecx
jmp 0x4c64bf
xor ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
jmp 0x4c64bf
mov edx, ebx
and edx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4c64bf
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, eax
push edx
call fcn.004c10cc
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x4c650b
mov eax, dword [ebp + 8]
add dword [eax], 0xffffffff
jne 0x4c64ed
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
add dword [edi], 0xffffffff
jne 0x4c6420
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x26
je 0x4c6679
cmp eax, 0x5e
je 0x4c6608
cmp eax, 0x7c
je 0x4c6533
call fcn.005238fc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
jle 0x4c6565
mov ecx, dword [ebp + 8]
sub ecx, edi
mov edx, ebx
mov dword [ebp - 0x14], ecx
lea eax, [edi + 0xc]
sub edx, edi
mov dword [ebp - 0x10], esi
mov ecx, esi
mov esi, dword [ebp - 0x14]
mov si, word [esi + eax]
or si, word [eax]
add eax, 2
sub dword [ebp - 0x10], 1
mov word [edx + eax - 2], si
jne 0x4c654d
cmp ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
jge 0x4c6587
mov edx, dword [ebp - 4]
sub edx, ecx
add edx, edx
push edx
lea eax, [esi + ecx*2 + 0xc]
push eax
lea ecx, [ebx + ecx*2 + 0xc]
push ecx
call fcn.0054be8c
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4c65ad
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 4]
neg edx
mov dword [ebx + 8], edx
mov eax, 0x7fff
mov word [ebx + ecx*2 + 0xc], ax
lea eax, [ebx + 0xc]
inc ecx
mov edx, eax
call fcn.004c633c
add dword [esi], 0xffffffff
jne 0x4c65be
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x18]
push esi
call edx
add esp, 4
add dword [edi], 0xffffffff
jne 0x4c65cf
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
mov esi, dword [ebx + 8]
mov edx, esi
test esi, esi
jge 0x4c65da
neg edx
mov eax, edx
test edx, edx
jle 0x4c65ff
lea ecx, [ebx + edx*2 + 0xa]
cmp word [ecx], 0
jne 0x4c65f2
dec eax
sub ecx, 2
test eax, eax
jg 0x4c65e4
cmp eax, edx
je 0x4c65ff
test esi, esi
jge 0x4c65fc
neg eax
mov dword [ebx + 8], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
jle 0x4c6635
mov edx, dword [ebp + 8]
sub edx, edi
lea eax, [edi + 0xc]
sub ebx, edi
mov dword [ebp - 0x14], esi
mov ecx, esi
mov si, word [eax + edx]
xor si, word [eax]
add eax, 2
sub dword [ebp - 0x14], 1
mov word [eax + ebx - 2], si
jne 0x4c661d
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x10], 0
je 0x4c6565
mov edx, dword [ebp - 4]
cmp ecx, edx
mov esi, dword [ebp + 8]
jge 0x4c6587
sub esi, ebx
lea eax, [ebx + ecx*2 + 0xc]
sub edx, ecx
lea esp, [esp]
mov ecx, 0x7fff
xor cx, word [esi + eax]
add eax, 2
sub edx, 1
mov word [eax - 2], cx
jne 0x4c665c
mov esi, dword [ebp + 8]
jmp 0x4c6587
xor ecx, ecx
test esi, esi
jle 0x4c6565
mov edx, dword [ebp + 8]
sub edx, edi
lea eax, [edi + 0xc]
sub ebx, edi
mov dword [ebp - 0x14], esi
mov ecx, esi
mov si, word [eax + edx]
and si, word [eax]
add eax, 2
sub dword [ebp - 0x14], 1
mov word [eax + ebx - 2], si
jne 0x4c6692
mov ebx, dword [ebp - 8]
jmp 0x4c6565