Function at 0x4c9cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov esi, dword [ecx]
test esi, esi
je 0x4c9cfc
test eax, eax
je 0x4c9cfc
nop word cs:[eax + eax]
movzx ecx, byte [edx + esi]
xor cl, byte [ebx]
inc ebx
mov byte [edi], cl
inc edi
lea ecx, [eax - 1]
inc esi
and esi, 0xf
je 0x4c9cfe
cmp eax, 1
mov eax, ecx
jne 0x4c9ce0
jmp 0x4c9cfe
mov ecx, eax
mov dword [esp + 8], esi
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
bswap eax
mov dword [esp + 4], eax
mov ebp, edi
cmp ecx, 0x10
jae 0x4c9e19
test ecx, ecx
je 0x4c9ee8
mov dword [esp], ecx
xorps xmm0, xmm0
mov edi, dword [esp + 0x34]
movups xmmword [edi], xmm0
push edx
push dword [esp + 0x30]
push 1
push edi
push edi
call dword [esp + 0x50]
mov edx, dword [esp + 0x44]
add esp, 0x14
mov eax, dword [esp + 4]
inc eax
bswap eax
mov dword [edx + 0xc], eax
mov esi, dword [esp + 8]
jne 0x4c9dd9
movzx eax, byte [edx + 0xb]
inc eax
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
mov edx, dword [esp]
test dl, 1
jne 0x4c9eee
mov eax, edx
cmp edx, 1
jne 0x4c9f10
jmp 0x4c9f32
shl ebx, 4
sub esi, ebx
add ebp, ebx
mov eax, dword [esp]
add eax, ebx
cmp esi, 0xf
mov ecx, esi
mov ebx, eax
jbe 0x4c9d1a
mov dword [esp], ebx
mov eax, ecx
shr eax, 4
mov edi, dword [esp + 4]
mov ebx, edi
neg ebx
add edi, eax
mov esi, ebp
mov ebp, 0
cmovb edi, ebp
mov ebp, esi
cmovae ebx, eax
push edx
push dword [esp + 0x30]
push ebx
push esi
push dword [esp + 0x10]
mov esi, ecx
call dword [esp + 0x50]
mov edx, dword [esp + 0x44]
add esp, 0x14
mov eax, edi
bswap eax
mov dword [edx + 0xc], eax
mov dword [esp + 4], edi
test edi, edi
jne 0x4c9e00
movzx eax, byte [edx + 0xb]
inc eax
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
jmp 0x4c9e00
mov ecx, dword [esp + 8]
jmp 0x4c9f32
movzx ecx, byte [edi + esi]
xor cl, byte [ebx + esi]
lea eax, [edx - 1]
mov byte [ebp + esi], cl
inc esi
mov ecx, esi
cmp edx, 1
je 0x4c9f32
nop word cs:[eax + eax]
movzx ecx, byte [edi + esi]
xor cl, byte [ebx + esi]
mov byte [ebp + esi], cl
movzx edx, byte [edi + esi + 1]
xor dl, byte [ebx + esi + 1]
lea ecx, [esi + 2]
mov byte [ebp + esi + 1], dl
mov esi, ecx
add eax, 0xfffffffe
jne 0x4c9f10
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret