Function at 0x41cb10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x20]
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x41ccfb
mov ch, byte [eax + 1]
movzx ebp, byte [eax]
inc eax
movzx edx, byte [eax + 1]
or ebp, ecx
inc eax
movzx ecx, byte [eax + 1]
shl edx, 0x10
or ebp, edx
inc eax
movzx edx, byte [eax + 1]
shl ecx, 0x18
or ebp, ecx
xor ecx, ecx
inc eax
mov ch, byte [eax + 1]
inc eax
mov ebx, dword [esp + 0x24]
or edx, ecx
xor ecx, ecx
mov ch, byte [eax + 2]
inc eax
mov cl, byte [eax]
shl ecx, 0x10
or edx, ecx
add ebx, 0xfffffff8
js 0x41cc3b
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x24], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi]
xor ecx, ecx
mov ch, byte [esi + 1]
inc esi
xor ebx, ebx
push 1
or eax, ecx
movzx ecx, byte [esi + 1]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
mov bh, byte [esi + 1]
inc esi
xor eax, ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
or ecx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 0x18
or ecx, ebx
xor ecx, edx
mov edx, dword [esp + 0x2c]
push edx
push eax
inc esi
mov dword [esp + 0x20], ecx
call fcn.0041c5d0
mov eax, dword [esp + 0x1c]
mov byte [edi], al
add esp, 0xc
inc edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
mov ebp, eax
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x14]
mov byte [edi + 1], al
inc edi
mov ecx, eax
shr ecx, 8
inc edi
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 0x10
mov edx, eax
mov byte [edi], cl
shr eax, 0x18
inc edi
mov byte [edi], al
mov eax, dword [esp + 0x24]
inc edi
dec eax
mov dword [esp + 0x24], eax
jne 0x41cb88
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xfffffff8
je case.default.0x41cea0
lea ecx, [esi + ebx + 8]
add ebx, 7
xor esi, esi
xor eax, eax
cmp ebx, 7
ja case.default.0x41cc54
jmp dword [ebx*4 + 0x41cee8]
movzx esi, byte [ecx - 1]
dec ecx
shl esi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or esi, eax
dec ecx
xor eax, eax
mov ah, byte [ecx]
or esi, eax
movzx eax, byte [ecx - 1]
dec ecx
or esi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x10
or eax, ebx
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
movzx ecx, byte [ecx - 1]
or eax, ecx
xor eax, ebp
xor esi, edx
mov edx, dword [esp + 0x28]
push 1
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], esi
call fcn.0041c5d0
mov eax, dword [esp + 0x1c]
mov byte [edi], al
add esp, 0xc
inc edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x14]
inc edi
mov byte [edi], al
inc edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi + 1], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ch, byte [eax + 1]
movzx ebx, byte [eax]
inc eax
movzx edx, byte [eax + 1]
or ebx, ecx
inc eax
movzx ecx, byte [eax + 1]
shl edx, 0x10
or ebx, edx
inc eax
movzx ebp, byte [eax + 1]
shl ecx, 0x18
or ebx, ecx
inc eax
inc eax
xor edx, edx
mov dh, byte [eax]
xor ecx, ecx
mov ch, byte [eax + 2]
mov dword [esp + 0x1c], ebx
or ebp, edx
inc eax
mov cl, byte [eax]
mov eax, dword [esp + 0x24]
shl ecx, 0x10
or ebp, ecx
add eax, 0xfffffff8
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], eax
js 0x41ce25
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x24], ecx
neg ecx
lea edx, [eax + ecx*8]
mov dword [esp + 0x2c], edx
lea ecx, [ecx]
movzx ebp, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl ecx, 0x10
push 0
or ebp, eax
inc esi
movzx edx, byte [esi + 1]
or ebp, ecx
inc esi
movzx ebx, byte [esi + 1]
shl edx, 0x18
or ebp, edx
inc esi
xor eax, eax
mov ah, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl ecx, 0x10
mov dword [esp + 0x14], ebp
or ebx, eax
mov eax, dword [esp + 0x2c]
inc esi
movzx edx, byte [esi + 1]
or ebx, ecx
inc esi
shl edx, 0x18
or ebx, edx
push eax
lea ecx, [esp + 0x18]
push ecx
inc esi
mov dword [esp + 0x20], ebx
call fcn.0041c5d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
xor eax, ecx
mov ecx, dword [esp + 0x2c]
xor ecx, edx
mov byte [edi], al
add esp, 0xc
inc edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi + 1], al
inc edi
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x24]
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
jne 0x41cd60
mov eax, dword [esp + 0x2c]
mov ebx, ebp
mov ebp, dword [esp + 0x20]
cmp eax, 0xfffffff8
je case.default.0x41cea0
movzx eax, byte [esi]
xor ecx, ecx
mov ch, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl edx, 0x10
push 0
or eax, ecx
inc esi
movzx ecx, byte [esi + 1]
or eax, edx
inc esi
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [esp + 0x14], eax
movzx eax, byte [esi]
xor edx, edx
mov dh, byte [esi + 1]
inc esi
xor ecx, ecx
mov ch, byte [esi + 2]
or eax, edx
mov edx, dword [esp + 0x2c]
inc esi
mov cl, byte [esi]
push edx
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], ecx
call fcn.0041c5d0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
xor ebx, eax
mov eax, dword [esp + 0x38]
lea edi, [edi + eax + 8]
xor ebp, esi
add eax, 7
add esp, 0xc
cmp eax, 7
mov ecx, ebp
ja case.default.0x41cea0
jmp dword [eax*4 + 0x41cf08]
dec edi
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], cl
dec edi
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret